doc/operations/observability/api_access.md
{{< details >}}
{{< /details >}}
Use the GitLab Observability API to query traces, metrics, and logs, and to manage dashboards and alerts programmatically.
Use this key in the SIGNOZ-API-KEY header when you make API requests.
The API endpoint depends on your GitLab offering.
Your API base URL follows this pattern:
https://<group_id>.gitlab-o11y.com
Replace <group_id> with your GitLab group ID.
Your API base URL is the same URL you configured as the
o11y_service_url for your group. For example:
http://<your-instance-ip>:8080
Include your API key in the SIGNOZ-API-KEY header with every request.
The following example queries the health endpoint:
curl --header "SIGNOZ-API-KEY: <your_api_key>" \
https://<group_id>.gitlab-o11y.com/api/v1/health
Replace <your_api_key> with the key from the API Keys page, and
<group_id> with your GitLab group ID (or your self-managed instance URL).
GitLab Observability uses the SigNoz API. For the complete list of available endpoints, request and response formats, and usage examples, see the SigNoz API reference.