Monitoring
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.
当前内容版权归 Open Policy Agent 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Open Policy Agent .