Self-hosted Grafana
To build custom dashboards from CoreWeave's Prometheus metrics, deploy a Grafana instance with CoreWeave Apps and connect to CoreWeave Cloud's Prometheus service. Our Prometheus scraping service offers many useful billing metrics for use in self-hosted Grafana instances.
Search for
Grafana
, then click the application.
Grafana
Click Deploy in the upper-right corner and give it a meaningful name.
In most cases, leave Expose to the Public via Ingress selected.
Click Deploy.
Wait for the Pods to deploy, then click the Ingress URL to log in with the username and password in the upper-right corner.

Deployment screen
These steps apply to both Grafana deployed from CoreWeave Apps, and on-premise instances.
In the Grafana instance, go to Configuration -> Data Sources in the lower left menu.

Data sources menu
Click Add New Datasource and select Prometheus.
Set the Name to something meaningful, such as CoreWeave.
Set the URL to
https://prometheus.ord1.coreweave.com
.Click Add Header in the Custom HTTP Headers section.

Connection settings
Set the following values for Custom HTTP Header.
- Header:
Authorization
- Value:
Bearer [my-token]
Replace
[my-token]
with the API access token from kubeconfig for the desired Namespace, or generate a new one on the API Access page. The API access token is REDACTED
in the previous screenshot. Click Save & Test at the bottom of the page to verify and save the new datasource.

Successful connection
You can now choose the new
CoreWeave
Datasource in a dashboard to visualize Prometheus metrics hosted on CoreWeave. Tip
There's no need to filter the
namespace
label to the namespace for any metric. It will be automatically inserted on all queries received.
Billing metrics
Build your first dashboard at Grafana Labs is a good quickstart guide for Grafana. For more information about the Prometheus scraping service, refer to the Metrics article.
The procedure to connect a CoreWeave Apps Grafana instance to Loki is the same as described in the previous section, except using the Loki data source. To summarize:
In the Grafana instance, go to Configuration -> Data Sources in the lower left menu.

Data sources menu
Click Add New Datasource and select Loki.
Set the Name to something meaningful, such as CoreWeave Loki.
Set the URL to
https://prometheus.ord1.coreweave.com
.Click Add Header in the Custom HTTP Headers section.
Set the following values for Custom HTTP Header.
- Header:
Authorization
- Value:
Bearer [my-token]
Replace
[my-token]
with the API access token from kubeconfig for the desired Namespace, or generate a new one on the API Access page. Click Save & Test at the bottom of the page to verify and save the new datasource.

Successful Loki connection test
Choose the new Datasource in a dashboard to query the Loki logs for your CoreWeave Namespace.
Last modified 24d ago