Skip to content

Commit

Permalink
Grafana dashboard: fix GPU Power Total (NVIDIA#146)
Browse files Browse the repository at this point in the history
Make this an "instant" query, that is, calculate the sum over the latest
values only (the values listed under "current" in the GPU Power Usage
panel to the left)

Previously, it would sum all the values in the range, resulting in an
absurdly high value (which could perhaps be scaled to kWh, but is
definitly not W any more)

See
https://grafana.com/grafana/dashboards/12239-nvidia-dcgm-exporter-dashboard/?tab=reviews
for at least three comments hinting at this problem.
  • Loading branch information
fschlich authored Mar 16, 2023
1 parent d711448 commit 1de04aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions grafana/dcgm-exporter-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,10 @@
"targets": [
{
"expr": "sum(DCGM_FI_DEV_POWER_USAGE{instance=~\"${instance}\", gpu=~\"${gpu}\"})",
"instant": true,
"interval": "",
"legendFormat": "",
"range": false,
"refId": "A"
}
],
Expand Down

0 comments on commit 1de04aa

Please sign in to comment.