Files
releases/docs/content/monitoring.md
T
Torin Sandall 6ff4af4e80 docs: Fix example prometheus config
The 'global_scrape' key was renamed to 'global' at some point.

Fixes #2277

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2020-04-16 12:46:57 -04:00

821 B

title, kind, weight, restrictedtoc
title kind weight restrictedtoc
Monitoring operations 30 true

Monitoring

Prometheus

OPA exposes an HTTP endpoint that can be used to collect performance metrics for all API calls. The Prometheus endpoint is enabled by default when you run OPA as a server.

You can enable metric collection from OPA with the following prometheus.yml config:

global:
  scrape_interval: 15s
scrape_configs:
  - job_name: "opa"
    metrics_path: "/metrics"
    static_configs:
    - targets:
      - "localhost:8181"

Health Checks

OPA exposes a /health API endpoint that can be used to perform health checks. See Health API for details.

Status API

OPA provides a plugin which can push status to a remote service. See Status API for details.