From 3439a3ca2b389b3062a9ed09f091762734c5b794 Mon Sep 17 00:00:00 2001 From: Martijn Pieters Date: Fri, 4 Sep 2020 15:36:01 +0100 Subject: [PATCH] Adjust clock values The exporter reports these in Mhz, but there is no Mhz option in the Grafana standard units. Instead, we can multiply by 1 million to map Mhz back to Hz, and Grafana will automatically use Mhz when displaying these. --- grafana/dcgm-exporter-dashboard.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grafana/dcgm-exporter-dashboard.json b/grafana/dcgm-exporter-dashboard.json index 234f571..ed2be0a 100644 --- a/grafana/dcgm-exporter-dashboard.json +++ b/grafana/dcgm-exporter-dashboard.json @@ -409,7 +409,7 @@ "steppedLine": false, "targets": [ { - "expr": "DCGM_FI_DEV_SM_CLOCK{instance=~\"${instance}\", gpu=~\"${gpu}\"}", + "expr": "DCGM_FI_DEV_SM_CLOCK{instance=~\"${instance}\", gpu=~\"${gpu}\"} * 1000000", "format": "time_series", "interval": "", "intervalFactor": 1, @@ -502,7 +502,7 @@ "steppedLine": false, "targets": [ { - "expr": "DCGM_FI_DEV_MEM_CLOCK{instance=~\"${instance}\", gpu=~\"${gpu}\"}", + "expr": "DCGM_FI_DEV_MEM_CLOCK{instance=~\"${instance}\", gpu=~\"${gpu}\"} * 1000000", "interval": "", "legendFormat": "GPU {{gpu}}", "refId": "A"