Metrics and Logs API
This page describes the available API endpoints for querying logs and metrics in groundcover, including how to authenticate and structure requests for general data retrieval.
Authentication
Authentication is performed using an API key generated in the API Keys section of the Groundcover console.
All API requests must include the API key in the Authorization header using the following format:
Authorization: Bearer <YOUR_API_KEY>Raw Prometheus API for Metrics
Use the following endpoint to query the groundcover Prometheus API:
https://app.groundcover.com/api/prometheus/api/v1/queryTo see usage example on how to query metrics in groundcover see: Query metrics examples
For a complete Prometheus REST API documentation, and available operations, see: Prometheus HTTP API
Logs API
Use the following endpoint to query the groundcover logs API:
https://app.groundcover.com/api/logs/v2/queryTo see usage examples on how to query logs in groundcover see: Query logs examples
Legacy API (Clickhouse)
The following configurations are deprecated but may still be in use in older setups.
The legacy datasources us using a different API key than described above. The API key can be obtained by running: groundcover auth get-datasources-api-key
You can query the legacy API to execute SQL statements directly on the Clickhouse database.
Try the following structure:
Last updated
