Skip to content

Commit

Permalink
Fix Grafana dashboard (#183)
Browse files Browse the repository at this point in the history
* Fixed variable injection into targets
* Fixed funtion arguments for the `gpu` label templating
  • Loading branch information
empovit authored Aug 11, 2023
1 parent 4d0050e commit cffaeb8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions grafana/dcgm-exporter-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"steppedLine": false,
"targets": [
{
"expr": "DCGM_FI_DEV_GPU_TEMP{instance=~\"${instance}\", gpu=~\"${gpu}\"}",
"expr": "DCGM_FI_DEV_GPU_TEMP{instance=~\"$instance\", gpu=~\"$gpu\"}",
"instant": false,
"interval": "",
"legendFormat": "GPU {{gpu}}",
Expand Down Expand Up @@ -188,7 +188,7 @@
"pluginVersion": "6.7.3",
"targets": [
{
"expr": "avg(DCGM_FI_DEV_GPU_TEMP{instance=~\"${instance}\", gpu=~\"${gpu}\"})",
"expr": "avg(DCGM_FI_DEV_GPU_TEMP{instance=~\"$instance\", gpu=~\"$gpu\"})",
"interval": "",
"legendFormat": "",
"refId": "A"
Expand Down Expand Up @@ -243,7 +243,7 @@
"steppedLine": false,
"targets": [
{
"expr": "DCGM_FI_DEV_POWER_USAGE{instance=~\"${instance}\", gpu=~\"${gpu}\"}",
"expr": "DCGM_FI_DEV_POWER_USAGE{instance=~\"$instance\", gpu=~\"$gpu\"}",
"interval": "",
"legendFormat": "GPU {{gpu}}",
"refId": "A"
Expand Down Expand Up @@ -343,7 +343,7 @@
"pluginVersion": "6.7.3",
"targets": [
{
"expr": "sum(DCGM_FI_DEV_POWER_USAGE{instance=~\"${instance}\", gpu=~\"${gpu}\"})",
"expr": "sum(DCGM_FI_DEV_POWER_USAGE{instance=~\"$instance\", gpu=~\"$gpu\"})",
"instant": true,
"interval": "",
"legendFormat": "",
Expand Down Expand Up @@ -401,7 +401,7 @@
"steppedLine": false,
"targets": [
{
"expr": "DCGM_FI_DEV_SM_CLOCK{instance=~\"${instance}\", gpu=~\"${gpu}\"} * 1000000",
"expr": "DCGM_FI_DEV_SM_CLOCK{instance=~\"$instance\", gpu=~\"$gpu\"} * 1000000",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
Expand Down Expand Up @@ -494,7 +494,7 @@
"steppedLine": false,
"targets": [
{
"expr": "DCGM_FI_DEV_GPU_UTIL{instance=~\"${instance}\", gpu=~\"${gpu}\"}",
"expr": "DCGM_FI_DEV_GPU_UTIL{instance=~\"$instance\", gpu=~\"$gpu\"}",
"interval": "",
"legendFormat": "GPU {{gpu}}",
"refId": "A"
Expand Down Expand Up @@ -584,7 +584,7 @@
"steppedLine": false,
"targets": [
{
"expr": "DCGM_FI_DEV_FB_USED{instance=~\"${instance}\", gpu=~\"${gpu}\"}",
"expr": "DCGM_FI_DEV_FB_USED{instance=~\"$instance\", gpu=~\"$gpu\"}",
"interval": "",
"legendFormat": "GPU {{gpu}}",
"refId": "A"
Expand Down Expand Up @@ -674,7 +674,7 @@
"steppedLine": false,
"targets": [
{
"expr": "DCGM_FI_PROF_PIPE_TENSOR_ACTIVE{instance=~\"${instance}\", gpu=~\"${gpu}\"}",
"expr": "DCGM_FI_PROF_PIPE_TENSOR_ACTIVE{instance=~\"$instance\", gpu=~\"$gpu\"}",
"interval": "",
"legendFormat": "GPU {{gpu}}",
"refId": "A"
Expand Down Expand Up @@ -773,15 +773,15 @@
"allValue": null,
"current": {},
"datasource": "$datasource",
"definition": "label_values(gpu)",
"definition": "label_values(DCGM_FI_DEV_GPU_TEMP, gpu)",
"hide": 0,
"includeAll": true,
"index": -1,
"label": null,
"multi": true,
"name": "gpu",
"options": [],
"query": "label_values(gpu)",
"query": "label_values(DCGM_FI_DEV_GPU_TEMP, gpu)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
Expand Down

0 comments on commit cffaeb8

Please sign in to comment.