Metrics
Fully managed Prometheus metrics available for your cloud environment.
CoreWeave makes a wide range of Prometheus metrics available out of the box. To access CoreWeave's Prometheus metrics service you'll 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 Cloud.
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
orPOST
Replace
<TOKEN>
with your CoreWeave Access Token generated from https://cloud.coreweave.com/api-access.post
https://prometheus.ord1.coreweave.com
/api/v1/query
Prometheus Query using Access Token
CoreWeave's hosted Prometheus service will scrape your custom 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 service.
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
Last modified 11mo ago