Raw Prometheus and Clickhouse API
Use raw prometheus api calls
Raw Prometheus API
You can obtain your API key from the API Keys page in the groundcover console.
You can query the Prometheus API directly using curl:
# Query current metrics
curl -H "Authorization: Bearer <YOUR_API_KEY>" \
"https://app.groundcover.com/api/prometheus/api/v1/query?query=up"For complete Prometheus REST API documentation, see: Prometheus HTTP API
Legacy API
The following configurations are deprecated but may still be in use in older setups.
The legacy datasources API key can be obtained by running: groundcover auth get-datasources-api-key
You can query the legacy Prometheus API directly using curl:
# Query current logs (legacy endpoint)
curl https://ds.groundcover.com/ -H "X-ClickHouse-Key: DS-API-KEY-VALUE" --data "SELECT count() FROM groundcover.logs LIMIT 1 FORMAT JSON" Last updated
