Skip to content

grafana: make Cluster GPU Power dashboard vendor-neutral (NVIDIA + AMD) - #111

Merged
martin-cala1 merged 1 commit into
mainfrom
fix/gpu-power-dashboard-amd-metrics
Sep 20, 2026
Merged

martin-cala1 merged 1 commit into
mainfrom
fix/gpu-power-dashboard-amd-metrics

Conversation

@martin-cala1

Copy link
Copy Markdown
Collaborator

The dashboard queried only NVIDIA DCGM metrics (DCGM_FI_DEV_POWER_USAGE / _TOTAL_ENERGY_CONSUMPTION / _GPU_UTIL), which return zero series on AMD Instinct clusters, so every power panel showed 'No data' there.

Make every query vendor-neutral with a PromQL 'or' so the dashboard works on both NVIDIA and AMD clusters (a cluster exposes exactly one family, so 'or' selects whichever is present):

  • power (W): sum(gpu_power_usage{...}) or sum(DCGM_FI_DEV_POWER_USAGE{...})
  • util (%): avg(gpu_gfx_activity{...}) or avg(DCGM_FI_DEV_GPU_UTIL{...})
  • energy (kWh): AMD has no cumulative energy counter, so derive from avg power
    over the range, OR the NVIDIA cumulative counter.
  • cluster template var lists clusters exposing either metric.
    Label filters (cluster_id, vm_name) and panel units unchanged; grafana_folder
    stays Crusoe. Validated live against Crusoe Metrics on an AMD cluster.

The dashboard queried only NVIDIA DCGM metrics (DCGM_FI_DEV_POWER_USAGE /
_TOTAL_ENERGY_CONSUMPTION / _GPU_UTIL), which return zero series on AMD Instinct
clusters, so every power panel showed 'No data' there.

Make every query vendor-neutral with a PromQL 'or' so the dashboard works on
both NVIDIA and AMD clusters (a cluster exposes exactly one family, so 'or'
selects whichever is present):
- power (W):  sum(gpu_power_usage{...}) or sum(DCGM_FI_DEV_POWER_USAGE{...})
- util (%):   avg(gpu_gfx_activity{...}) or avg(DCGM_FI_DEV_GPU_UTIL{...})
- energy (kWh): AMD has no cumulative energy counter, so derive from avg power
  over the range, OR the NVIDIA cumulative counter.
- cluster template var lists clusters exposing either metric.
Label filters (cluster_id, vm_name) and panel units unchanged; grafana_folder
stays Crusoe. Validated live against Crusoe Metrics on an AMD cluster.
@martin-cala1
martin-cala1 merged commit da2da63 into main Sep 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant