Skip to content

Commit

Permalink
Make proper use the gpu variable
Browse files Browse the repository at this point in the history
The dashboard has a 'gpu' variable that's otherwise unused.

This change switches the variable from single to multi-value, adds the
'all' option, and updates all expressions to match against the selected
GPUs.
  • Loading branch information
mjpieters authored and Martijn Pieters committed Sep 4, 2020
1 parent 1bbc5cd commit 0520bfa
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions grafana/dcgm-exporter-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"steppedLine": false,
"targets": [
{
"expr": "DCGM_FI_DEV_GPU_TEMP",
"expr": "DCGM_FI_DEV_GPU_TEMP{gpu=~\"${gpu}\"}",
"instant": true,
"interval": "",
"legendFormat": "GPU {{gpu}}",
Expand Down Expand Up @@ -198,7 +198,7 @@
"pluginVersion": "6.7.3",
"targets": [
{
"expr": "avg(DCGM_FI_DEV_GPU_TEMP)",
"expr": "avg(DCGM_FI_DEV_GPU_TEMP{gpu=~\"${gpu}\"})",
"interval": "",
"legendFormat": "",
"refId": "A"
Expand Down Expand Up @@ -253,7 +253,7 @@
"steppedLine": false,
"targets": [
{
"expr": "DCGM_FI_DEV_POWER_USAGE",
"expr": "DCGM_FI_DEV_POWER_USAGE{gpu=~\"${gpu}\"}",
"interval": "",
"legendFormat": "GPU {{gpu}}",
"refId": "A"
Expand Down Expand Up @@ -370,7 +370,7 @@
"pluginVersion": "6.7.3",
"targets": [
{
"expr": "sum(DCGM_FI_DEV_POWER_USAGE)",
"expr": "sum(DCGM_FI_DEV_POWER_USAGE{gpu=~\"${gpu}\"})",
"interval": "",
"legendFormat": "",
"refId": "A"
Expand Down Expand Up @@ -426,7 +426,7 @@
"steppedLine": false,
"targets": [
{
"expr": "DCGM_FI_DEV_SM_CLOCK",
"expr": "DCGM_FI_DEV_SM_CLOCK{gpu=~\"${gpu}\"}",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
Expand Down Expand Up @@ -519,7 +519,7 @@
"steppedLine": false,
"targets": [
{
"expr": "DCGM_FI_DEV_MEM_CLOCK",
"expr": "DCGM_FI_DEV_MEM_CLOCK{gpu=~\"${gpu}\"}",
"interval": "",
"legendFormat": "GPU {{gpu}}",
"refId": "A"
Expand Down Expand Up @@ -609,7 +609,7 @@
"steppedLine": false,
"targets": [
{
"expr": "DCGM_FI_DEV_GPU_UTIL",
"expr": "DCGM_FI_DEV_GPU_UTIL{gpu=~\"${gpu}\"}",
"interval": "",
"legendFormat": "GPU {{gpu}}",
"refId": "A"
Expand Down Expand Up @@ -699,7 +699,7 @@
"steppedLine": false,
"targets": [
{
"expr": "DCGM_FI_DEV_MEM_COPY_UTIL",
"expr": "DCGM_FI_DEV_MEM_COPY_UTIL{gpu=~\"${gpu}\"}",
"interval": "",
"legendFormat": "GPU {{gpu}}",
"refId": "A"
Expand Down Expand Up @@ -788,7 +788,7 @@
"steppedLine": false,
"targets": [
{
"expr": "DCGM_FI_DEV_FB_USED",
"expr": "DCGM_FI_DEV_FB_USED{gpu=~\"${gpu}\"}",
"interval": "",
"legendFormat": "GPU {{gpu}}",
"refId": "A"
Expand Down Expand Up @@ -878,7 +878,7 @@
"steppedLine": false,
"targets": [
{
"expr": "DCGM_FI_DEV_FB_USED",
"expr": "DCGM_FI_DEV_FB_USED{gpu=~\"${gpu}\"}",
"interval": "",
"legendFormat": "GPU {{gpu}}",
"refId": "A"
Expand Down Expand Up @@ -938,10 +938,10 @@
"datasource": "${DS_PROMETHEUS}",
"definition": "label_values(gpu)",
"hide": 0,
"includeAll": false,
"includeAll": true,
"index": -1,
"label": null,
"multi": false,
"multi": true,
"name": "gpu",
"options": [],
"query": "label_values(gpu)",
Expand Down Expand Up @@ -982,4 +982,4 @@
"list": []
},
"version": 1
}
}

0 comments on commit 0520bfa

Please sign in to comment.