CoreWeave
Search…
Metrics
CoreWeave manages the Prometheus cluster that will host your metrics.
To access CoreWeave's Prometheus server you'll first need a CoreWeave account and an Access Token. If you don't have an account yet, follow the steps on the Getting Started guide.
You'll be able to access the Prometheus Dashboard once you're logged into CoreWeave.
Access the Prometheus Dashboard at https://prometheus.ord1.coreweave.com

API Key Authentication

You can access the Prometheus server by sending your Access Token as the Authorization Header during your request.
  • Header: Authorization Value: Bearer <TOKEN>
  • URL: https://prometheus.ord1.coreweave.com
  • Methods: GET or POST
Replace <TOKEN> with your CoreWeave Access Token generated from https://cloud.coreweave.com/api-access.
post
https://prometheus.ord1.coreweave.com
/v1/api/query
Prometheus Query using Access Token

Metric Scraping

CoreWeave's hosted Prometheus cluster will scrape your targets using a ServiceMonitor. Annotations from the ServiceMonitor must match the Service hosting the Prometheus exporter endpoint. Usually /metrics
Below is an example of a Prometheus exporter that will be scraped by our Prometheus clusters.
servicemonitor.yaml
deployment.yaml
service.yaml
1
apiVersion: monitoring.coreos.com/v1
2
kind: ServiceMonitor
3
metadata:
4
name: example
5
namespace: tenant-example
6
labels:
7
app: example
8
spec:
9
jobLabel: example-scraping
10
selector:
11
matchLabels:
12
app: example
13
namespaceSelector:
14
matchNames:
15
- tenant-example
16
endpoints:
17
- port: http
18
scheme: http
19
path: /metrics
20
interval: 15s
21
scrapeTimeout: 15s
Copied!
1
apiVersion: apps/v1
2
kind: Deployment
3
metadata:
4
name: example
5
namespace: tenant-example
6
labels:
7
app: example
8
spec:
9
replicas: 1
10
selector:
11
matchLabels:
12
app: example
13
template:
14
metadata:
15
labels:
16
app: example
17
spec:
18
containers:
19
- name: example
20
image: "infinityworks/docker-hub-exporter:latest"
21
imagePullPolicy: Always
22
ports:
23
- name: http
24
containerPort: 9170
25
protocol: TCP
26
Copied!
1
apiVersion: v1
2
kind: Service
3
metadata:
4
name: example
5
namespace: tenant-example
6
labels:
7
app: example
8
spec:
9
type: ClusterIP
10
ports:
11
- port: 8080
12
targetPort: 8080
13
protocol: TCP
14
name: http
15
selector:
16
app: example
17
Copied!
Last modified 3mo ago