Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt

Use this file to discover all available pages before exploring further.

Programmatic access to metrics and logs lets you integrate CoreWeave observability data into custom dashboards, alerting pipelines, and automation workflows. Query the Prometheus-compatible and Loki-compatible HTTP APIs directly when you need capabilities beyond what CoreWeave Grafana or self-hosted Grafana provide. To efficiently export metrics and logs at scale, consider setting up telemetry forwarding with CoreWeave Telemetry Relay to an external system. For more information about metric and log data sources, see Data sources.

Authentication and access

Use a CoreWeave API access token for HTTP requests to the observability query endpoints. Pass the token in the Authorization header as a Bearer token. Replace [API-ACCESS-TOKEN] in the examples below with your API access token secret from the Access Tokens page in the Cloud Console. Authorization for observability data is evaluated through IAM Access Policies. For read-only access to metrics and logs through the APIs and CoreWeave Grafana, principals typically need the Observability Viewer role. In the legacy group-based model, membership in the metrics group granted equivalent access. See Legacy User Permissions for details.
The secret for a CoreWeave API access token is the same value whether you pass it in Authorization headers or embed it in a kubeconfig as users[].user.token for kubectl. The difference is which service you call: use observability hostnames such as observe.coreweave.com for metrics and logs APIs, and use your cluster Kubernetes API server URL from the kubeconfig for the Kubernetes API.

Query metrics

You can query metrics through the Prometheus-compatible HTTP API.

Global and Super Regional endpoints

Metrics are available from the Global hostname and from Super Regional hostnames. Super Regional endpoints can return more complete results for large or detailed queries and offer lower latency when your data is stored in that Super Region. For the authoritative list of metrics hostnames, see Metrics data locations on the Data sources page. The examples below use the Global hostname observe.coreweave.com. To send the same request to a Super Regional endpoint, swap the hostname and keep the path (for example https://observe.us-east.coreweave.com/api/v1/query). The following paths are supported:
Supported paths
/api/v1/query
/api/v1/labels
/api/v1/query_range
/api/v1/series
/api/v1/label/<label_name>/values
/api/v1/query_exemplars
/api/v1/metadata
/api/v1/rules

Instant metric query

The following example uses curl to run an instant query that returns the total time GPUs spent in idle mode (in seconds):
curl -G "https://observe.coreweave.com/api/v1/query" \
  -H "Authorization: Bearer [API-ACCESS-TOKEN]" \
  --data-urlencode 'query=node_gpu_seconds_total{mode="idle"}'

Range metric query

For a time range, use query_range with start, end, and step as Unix timestamps in seconds:
curl -G "https://observe.coreweave.com/api/v1/query_range" \
  -H "Authorization: Bearer [API-ACCESS-TOKEN]" \
  --data-urlencode 'query=node_gpu_seconds_total{mode="idle"}' \
  --data-urlencode 'start=[START-TIMESTAMP]' \
  --data-urlencode 'end=[END-TIMESTAMP]' \
  --data-urlencode 'step=60'
Replace [START-TIMESTAMP] and [END-TIMESTAMP] with the range you need. For more information about querying Prometheus metrics, see the Prometheus HTTP API documentation.
CoreWeave does not support the Prometheus Federation API.

Legacy metrics

In October 2024, CoreWeave migrated its metrics backend. The new backend reliably contains data from October 21, 2024 onward. If you need metrics collected before that date, query the Legacy Prometheus host in addition to the primary endpoints above. The Legacy service exposes the same Prometheus HTTP API paths (for example /api/v1/query and /api/v1/query_range).
HostUse
prometheus-legacy.ord1.coreweave.comHistorical metrics data collected before October 21, 2024
Query the current endpoint first (for example observe.coreweave.com), because it is faster. If the result has significant gaps for dates before October 21, 2024, run the same PromQL query against https://prometheus-legacy.ord1.coreweave.com using the same Authorization: Bearer [API-ACCESS-TOKEN] header.

Query logs

You can query logs through the Loki-compatible HTTP API.

Global, Super Regional, and legacy log endpoints

At the Global host, application, platform, and audit logs share one Loki-compatible API. In Super Regions, application and platform logs use observe.<super-region>.coreweave.com, while CKS audit logs use the dedicated audit host observe-audit.<super-region>.coreweave.com in that Super Region. For the full matrix and Grafana data source names, see Logs data locations. Some log types expire after two weeks.
LocationApplication and platform logsCKS audit logs
Globalobserve.coreweave.comobserve.coreweave.com (audit logs are included in the same dataset)
US Eastobserve.us-east.coreweave.comobserve-audit.us-east.coreweave.com
US Westobserve.us-west.coreweave.comobserve-audit.us-west.coreweave.com
EU Southobserve.eu-south.coreweave.comobserve-audit.eu-south.coreweave.com
Legacy (Global)observe-legacy.coreweave.comobserve-legacy.coreweave.com (includes audit logs)
The following paths are supported:
Supported paths
/loki/api/v1/query
/loki/api/v1/query_range
/loki/api/v1/labels
/loki/api/v1/label/<name>/values
/loki/api/v1/series
/loki/api/v1/index/stats
/loki/api/v1/index/volume
/loki/api/v1/index/volume_range
/loki/api/v1/format_query

Log query format

The following example returns Kubernetes audit logs for a cluster:
curl -G "https://observe.coreweave.com/loki/api/v1/query_range" \
  -H "Authorization: Bearer [API-ACCESS-TOKEN]" \
  --data-urlencode 'query={logging_component="unicaster", app="kube-apiserver", stream="", cluster="[CLUSTER-NAME]"} | json | apiVersion="audit.k8s.io/v1" | json sourceIPs="sourceIPs" | json user_groups="user.groups"'
Replace [CLUSTER-NAME] with your cluster name.

Legacy logs

In March 2025, CoreWeave introduced Super Regional log endpoints. If you need logs collected before that date, query the Legacy logs endpoint in addition to the primary endpoints above. The Legacy service exposes the same Loki API paths (for example /loki/api/v1/query and /loki/api/v1/query_range).
HostUse
observe-legacy.coreweave.comHistorical log data collected before the March 2025 Super Regional migration
For background, see Legacy logs on the Data sources page.

Grafana Explore

In addition to the HTTP APIs described in the preceding sections, you can run ad hoc queries directly in the Grafana UI. Grafana Explore is available in CoreWeave Grafana and supports the full range of PromQL and LogQL for ad hoc queries on metrics and logs. You can also view metadata such as which metrics are available or which labels you can use to filter PromQL queries. While CoreWeave’s default dashboards offer curated views of specific logs and metrics, you can use the Explore tab to investigate metrics more deeply. Screenshot of Grafana Explore
Last modified on April 16, 2026