Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions grafana/HOSTNAME_LEGEND_UPDATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Dashboard Update: Hostname in GPU Legends

The Grafana dashboard now displays the hostname in all GPU graph legends (e.g., "GPU 0 on myhost").

**How it works:**
- The `legendFormat` for each GPU panel now includes `{{hostname}}`.
- This helps distinguish metrics from GPUs with the same number on different hosts.

**No changes are needed to your Prometheus queries or exporters if you already have the `hostname` label in your metrics.**

---

_This change addresses: https://github.com/NVIDIA/dcgm-exporter/issues/630_
8 changes: 4 additions & 4 deletions grafana/dcgm-exporter-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
{
"expr": "DCGM_FI_DEV_POWER_USAGE{instance=~\"$instance\", gpu=~\"$gpu\"}",
"interval": "",
"legendFormat": "GPU {{gpu}}",
"legendFormat": "GPU {{gpu}} on {{hostname}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -405,7 +405,7 @@
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "GPU {{gpu}}",
"legendFormat": "GPU {{gpu}} on {{hostname}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -496,7 +496,7 @@
{
"expr": "DCGM_FI_DEV_GPU_UTIL{instance=~\"$instance\", gpu=~\"$gpu\"}",
"interval": "",
"legendFormat": "GPU {{gpu}}",
"legendFormat": "GPU {{gpu}} on {{hostname}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -586,7 +586,7 @@
{
"expr": "DCGM_FI_DEV_FB_USED{instance=~\"$instance\", gpu=~\"$gpu\"}",
"interval": "",
"legendFormat": "GPU {{gpu}}",
"legendFormat": "GPU {{gpu}} on {{hostname}}",
"refId": "A"
}
],
Expand Down