Skip to content
Branch: master
Find file History
Latest commit 5e4e2da Feb 4, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md Updated media paths Feb 4, 2019
metrics.md Updated media paths Feb 4, 2019

README.md

Metrics

Prometheus is used to scrape metrics from the pod. You have to add Prometheus in your NAIS manifest to enable scrape.

Each app that have scraping enabled can use the default Grafana dashboard nais-app-dashboard, or create theire own.

NAIS manifest config

prometheus:
  enabled: false # if true the pod will be scraped for metrics by prometheus
  path: /metrics # Path to prometheus-metrics

PS: Prometheus is optional

JVM Application

If you are building an app on the JVM you can use Prometheus' own Java client library. Make sure to enable scraping in the NAIS manifest.

We also recommend to export the default metrics.

DefaultExports.initialize();

Push metrics

If you don't want to just relie on pull metrics, you can push data directly to InfluxDB via Sensu.

This is easily done by writing to the Sensu socket.

sensu.nais:3030

Remember to format the data as Influxdb syntax.

Overview

overview

You can’t perform that action at this time.