Skip to content

Commit

Permalink
Add an instance drop-down
Browse files Browse the repository at this point in the history
When you monitor more than one machine, you need to be able to distinguish
between them.
  • Loading branch information
mjpieters committed Sep 4, 2020
1 parent 0520bfa commit 0be571e
Showing 1 changed file with 32 additions and 10 deletions.
42 changes: 32 additions & 10 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{gpu=~\"${gpu}\"}",
"expr": "DCGM_FI_DEV_GPU_TEMP{instance=~\"${instance}\", 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{gpu=~\"${gpu}\"})",
"expr": "avg(DCGM_FI_DEV_GPU_TEMP{instance=~\"${instance}\", gpu=~\"${gpu}\"})",
"interval": "",
"legendFormat": "",
"refId": "A"
Expand Down Expand Up @@ -253,7 +253,7 @@
"steppedLine": false,
"targets": [
{
"expr": "DCGM_FI_DEV_POWER_USAGE{gpu=~\"${gpu}\"}",
"expr": "DCGM_FI_DEV_POWER_USAGE{instance=~\"${instance}\", 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{gpu=~\"${gpu}\"})",
"expr": "sum(DCGM_FI_DEV_POWER_USAGE{instance=~\"${instance}\", gpu=~\"${gpu}\"})",
"interval": "",
"legendFormat": "",
"refId": "A"
Expand Down Expand Up @@ -426,7 +426,7 @@
"steppedLine": false,
"targets": [
{
"expr": "DCGM_FI_DEV_SM_CLOCK{gpu=~\"${gpu}\"}",
"expr": "DCGM_FI_DEV_SM_CLOCK{instance=~\"${instance}\", 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{gpu=~\"${gpu}\"}",
"expr": "DCGM_FI_DEV_MEM_CLOCK{instance=~\"${instance}\", 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{gpu=~\"${gpu}\"}",
"expr": "DCGM_FI_DEV_GPU_UTIL{instance=~\"${instance}\", 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{gpu=~\"${gpu}\"}",
"expr": "DCGM_FI_DEV_MEM_COPY_UTIL{instance=~\"${instance}\", 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{gpu=~\"${gpu}\"}",
"expr": "DCGM_FI_DEV_FB_USED{instance=~\"${instance}\", 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{gpu=~\"${gpu}\"}",
"expr": "DCGM_FI_DEV_FB_USED{instance=~\"${instance}\", gpu=~\"${gpu}\"}",
"interval": "",
"legendFormat": "GPU {{gpu}}",
"refId": "A"
Expand Down Expand Up @@ -932,6 +932,28 @@
"tags": [],
"templating": {
"list": [
{
"allValue": null,
"current": {},
"datasource": "${DS_PROMETHEUS}",
"definition": "label_values(DCGM_FI_DEV_GPU_TEMP, instance)",
"hide": 0,
"includeAll": false,
"label": null,
"multi": true,
"name": "instance",
"options": [],
"query": "label_values(DCGM_FI_DEV_GPU_TEMP, instance)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {},
Expand Down

0 comments on commit 0be571e

Please sign in to comment.