Skip to content

Commit

Permalink
feat: add job and host variables to dashboard (utkuozdemir#221)
Browse files Browse the repository at this point in the history
Co-authored-by: Utku Ozdemir <[email protected]>
  • Loading branch information
zhan9san and utkuozdemir authored Sep 29, 2024
1 parent f3a5a48 commit 9773f1e
Showing 1 changed file with 53 additions and 3 deletions.
56 changes: 53 additions & 3 deletions grafana/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -2141,15 +2141,65 @@
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"definition": "label_values(nvidia_smi_index, uuid)",
"definition": "label_values(nvidia_smi_index, job)",
"hide": 0,
"includeAll": false,
"label": "Job",
"multi": false,
"name": "job",
"options": [],
"query": {
"query": "label_values(nvidia_smi_index,job)",
"refId": "Prometheus-job-Variable-Query"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"definition": "label_values(nvidia_smi_index{job=\"$job\"},instance)",
"hide": 0,
"includeAll": false,
"label": "Host",
"multi": false,
"name": "node",
"options": [],
"query": {
"query": "label_values(nvidia_smi_index{job=\"$job\"},instance)",
"refId": "Prometheus-node-Variable-Query"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"definition": "label_values(nvidia_smi_index{instance=\"$node\"},uuid)",
"hide": 0,
"includeAll": false,
"label": "GPU",
"multi": false,
"name": "gpu",
"options": [],
"query": {
"query": "label_values(nvidia_smi_index, uuid)",
"query": "label_values(nvidia_smi_index{instance=\"$node\"},uuid)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
Expand All @@ -2171,6 +2221,6 @@
"timezone": "",
"title": "Nvidia GPU Metrics",
"uid": "vlvPlrgnk",
"version": 7,
"version": 8,
"weekStart": ""
}

0 comments on commit 9773f1e

Please sign in to comment.