Skip to content

Monitoring

Prometheus

1.0.0

PlugNPiN optionally exposes runtime and application metrics in Prometheus format
by using the METRICS environment variable (Configuration → Environment Variables).

By default the metrics endpoint is available at http://<plugnpin-host>:9100/metrics
and the port can be set with the METRICS_SERVER_PORT environment variable.

Example Prometheus Scrape Configuration

scrape_configs:
  - job_name: "plugnpin"
    static_configs:
      - targets: ["<plugnpin-host>:9100"]