These are the docs for an older version of OPA. Latest stable release is v0.46.1
Monitoring Edit



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:

  scrape_interval: 15s
  - job_name: "opa"
    metrics_path: "/metrics"
    - 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.