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/query

To 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/query

To 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.

You can query the legacy API to execute SQL statements directly on the Clickhouse database.

Try the following structure:

Last updated