CoreWeave
Search
K
Comment on page

Metrics

Fully managed Prometheus metrics available for your cloud environment.
On CoreWeave, a wide range of Prometheus metrics are made available by default. The following guides presume that you already have an active CoreWeave account including a functioning API Access Token.
Once logged in to your CoreWeave Cloud account, visit the Prometheus dashboard at https://prometheus.ord1.coreweave.com.

API key authentication

To authenticate using HTTP, access the Prometheus server by sending your Access Token as the Authorization Header value in the HTTP request.
Methods
GET or POST
Header
Authorization
Value
Bearer <TOKEN>
URL
https://prometheus.ord1.coreweave.com
Note
Replace <TOKEN> with your CoreWeave API Access Token.
post
https://prometheus.ord1.coreweave.com
/api/v1/query
Example Prometheus query using an Access Token

Custom metric scraping

CoreWeave's hosted Prometheus service may be used to scrape custom targets using a ServiceMonitor. Annotations from the ServiceMonitor must match the Service hosting the Prometheus exporter endpoint, usually at the path /metrics.
Below is an example of a Prometheus exporter scraped by the Prometheus service.
Important
The value of .endpoints.port must be the literal string http, and may not be replaced with a port number integer (e.g., 80).
servicemonitor.yaml
deployment.yaml
service.yaml
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: example
namespace: tenant-example
labels:
app: example
spec:
jobLabel: example-scraping
selector:
matchLabels:
app: example
namespaceSelector:
matchNames:
- tenant-example
endpoints:
- port: http
scheme: http
path: /metrics
interval: 15s
scrapeTimeout: 15s
apiVersion: apps/v1
kind: Deployment
metadata:
name: example
namespace: tenant-example
labels:
app: example
spec:
replicas: 1
selector:
matchLabels:
app: example
template:
metadata:
labels:
app: example
spec:
containers:
- name: example
image: "infinityworks/docker-hub-exporter:latest"
imagePullPolicy: Always
env:
- name: ORG
value: coreweave #replace with your org
ports:
- name: http
containerPort: 9170
protocol: TCP
apiVersion: v1
kind: Service
metadata:
name: example
namespace: tenant-example
labels:
app: example
spec:
type: ClusterIP
ports:
- port: 8080
targetPort: 9170
protocol: TCP
name: http
selector:
app: example