Files
releases/docs/book/monitoring.md
T
Torin Sandall 20831e9e69 Mark diagnostics feature as deprecated
In a later release we will remove the feature entirely.

Ref: #1052

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-11-01 13:12:47 -07:00

619 B

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_config:
  scrape_interval: 15s
scrape_configs:
  - job_name: "opa"
    metrics_path: "/metrics"
    static_configs:
    - targets:
      - "localhost:8181"

Diagnostics (Deprecated)

The diagnostics feature is deprecated. If you need to monitor OPA decisions, see the Decision Log API.