mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-16 13:22:53 -06:00
b107ef2618
* Move the integration guide into the core docs. This is one of the most common questions when people get started. * Split the configuration and monitoring sections into their own pages. This prepares the management page for an introduction that explains the control plane concept. * Move bundle section up to the top of the page since basic policy distribution is usually the first concern. Signed-off-by: Torin Sandall <torinsandall@gmail.com>
695 B
695 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_config:
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.