GPU Observability.
Every machine of your jobs and clusters runs NVIDIA DCGM Exporter. GPU.ai keeps its readings in Prometheus and charts utilization, memory, power, and temperature for each GPU, in the console, the API, the CLI, and your own Grafana.
§ 27.1What is collected¶
One reading every 15 seconds per GPU, kept for 150 days. Only your organization can read your metrics: every read, including PromQL you send from Grafana, is limited to your organization's series before it reaches Prometheus.
DCGM_FI_DEV_GPU_UTIL | GPU utilization, % |
DCGM_FI_DEV_FB_USED, _FB_FREE, _FB_RESERVED | GPU memory used, free, and reserved by the driver, MiB |
DCGM_FI_DEV_POWER_USAGE | Power draw, W |
DCGM_FI_DEV_GPU_TEMP, _MEMORY_TEMP | GPU and memory temperature, °C |
DCGM_FI_DEV_MEM_COPY_UTIL | Memory bandwidth utilization, % |
DCGM_FI_DEV_SM_CLOCK, _MEM_CLOCK | Clocks, MHz |
DCGM_FI_DEV_XID_ERRORS, _PCIE_REPLAY_COUNTER | Last XID error, PCIe replays |
DCGM_FI_PROF_GR_ENGINE_ACTIVE, _PIPE_TENSOR_ACTIVE, _DRAM_ACTIVE | Engine, tensor core, and memory activity (data center GPUs) |
Every series carries source (jobs or clusters), Hostname (your instance id for a job machine, the node name for a cluster), gpu, UUID, and modelName, and cluster series carry cluster_id. For jobs, gpuai_job_gpu is 1 while an attempt of a job runs on a GPU.
§ 27.2In the console¶
A job's page has a GPU section with four charts for the GPU the job ran on, from its first start to its end, refreshed every 15 seconds while it runs. A cluster's page charts every GPU of every machine over the last hour, 6 hours, 24 hours, or 7 days. Hover a chart to read the same moment on all four.
§ 27.3API and CLI¶
Both need an API key with the instances:read scope. range takes anything from 1m to 31d; the answer has up to 300 points per GPU.
curl -H "Authorization: Bearer $GPUAI_API_KEY" https://api.gpu.ai/v1/jobs/JOB_ID/gpu-metrics
curl -H "Authorization: Bearer $GPUAI_API_KEY" "https://api.gpu.ai/v1/clusters/CLUSTER_ID/gpu-metrics?range=24h"
gpu jobs gpu-metrics JOB_ID
gpu clusters gpu-metrics CLUSTER_NAME --range 24h§ 27.4Your own Grafana¶
GPU.ai serves a Prometheus HTTP API for your organization at https://api.gpu.ai/v1/gpu-metrics/prometheus. In Grafana, add a Prometheus data source with that URL and an HTTP header Authorization set to Bearer YOUR_API_KEY (a key with instances:read), then import the GPU.ai dashboard and pick the data source. It has a row for your clusters and a row for your jobs.
# Every GPU of one cluster
DCGM_FI_DEV_GPU_UTIL{source="clusters", cluster_id="CLUSTER_ID"}
# The GPU one job ran on, only while it ran
max by (Hostname, gpu) (
DCGM_FI_DEV_GPU_UTIL{source="jobs"}
* on (Hostname, gpu) group_left () max by (Hostname, gpu) (gpuai_job_gpu{job_id="JOB_ID"})
)
# Memory used as a share of each GPU's memory
100 * DCGM_FI_DEV_FB_USED / (DCGM_FI_DEV_FB_USED + DCGM_FI_DEV_FB_FREE)You do not add an organization filter: GPU.ai adds org_id to every selector and replaces any you write. Write endpoints, admin endpoints, and alerting rules are not available; set alerts up in Grafana on top of these queries.
§ 27.5Limits¶
- A range query covers at most 31 days, and its step is raised to at least 15 seconds and to at least 1/1500 of the range. Ranges, subqueries, and offsets inside a query are at most 31 days.
- Each organization can read up to 2 billion samples a day through the Grafana endpoint. Past that, queries answer
429until 00:00 UTC. A dashboard of eight panels over 24 hours for eight GPUs, refreshed every 30 seconds all day, reads about 1 billion. The console, API, and CLI charts do not count. - Readings start about a minute after a machine is up, so a job that ends within a minute may have none. GPU slices are not covered, and a GPU in MIG mode reports for the whole GPU.
- Clusters created before GPU Observability launched have no charts until they are created again.