Prometheus Public API
Sysdig has a Prometheus-compatible API, giving users programmatic access to their metrics outside the UI.
Prometheus API Endpoint Support in Sysdig Monitor
Sysdig Monitor exposes a subset of the Prometheus HTTP API, allowing users to query and ingest metrics using familiar Prometheus-compatible endpoints. The table below outlines which endpoints are currently supported, along with their required permissions.
Endpoint | Path | Supported | Required Permission |
---|---|---|---|
Instant Query | /prometheus/api/v1/query | ✅ | metrics-data.read |
Range Query | /prometheus/api/v1/query_range | ✅ | metrics-data.read |
Series Query | /prometheus/api/v1/series | ✅ | metrics-data.read |
Labels Query | /prometheus/api/v1/labels | ✅ | metrics-data.read |
Label Values Query | /prometheus/api/v1/label/{labelName}/values | ✅ | metrics-data.read |
Metric Metadata | /prometheus/api/v1/metadata | ✅ | metrics-data.read |
Rules | /prometheus/api/v1/rules | ✅ | alerts.read |
Alerts | /prometheus/api/v1/alerts | ✅ | alerts.read |
Remote Write Ingestion | /prometheus/api/v1/write | ✅ | ingest.prws |
Format Query | /prometheus/api/v1/format_query | ❌ | – |
Parse Query | /prometheus/api/v1/parse_query | ❌ | – |
Query Exemplars | /prometheus/api/v1/query_exemplars | ❌ | – |
Targets | /prometheus/api/v1/targets | ❌ | – |
Target Metadata | /prometheus/api/v1/targets/metadata | ❌ | – |
Alertmanagers | /prometheus/api/v1/alertmanagers | ❌ | – |
Config | /prometheus/api/v1/status/config | ❌ | – |
Flags | /prometheus/api/v1/status/flags | ❌ | – |
Runtime Information | /prometheus/api/v1/status/runtimeinfo | ❌ | – |
Build Information | /prometheus/api/v1/status/buildinfo | ❌ | – |
TSDB Stats | /prometheus/api/v1/status/tsdb | ❌ | – |
WAL Replay | /prometheus/api/v1/status/walreplay | ❌ | – |
Snapshot | /prometheus/api/v1/admin/tsdb/snapshot | ❌ | – |
Delete Series | /prometheus/api/v1/admin/tsdb/delete_series | ❌ | – |
Clean Tombstones | /prometheus/api/v1/admin/tsdb/clean_tombstones | ❌ | – |
Active Notifications | /prometheus/api/v1/notifications | ❌ | – |
Live Notifications | /prometheus/api/v1/notifications/live | ❌ | – |
Access Next Gen API Docs
For further detail regarding API usage, Access Next Gen API docs.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.