Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GPU index ID as a label like uuid #156

Open
winca opened this issue Apr 16, 2024 · 1 comment
Open

Add GPU index ID as a label like uuid #156

winca opened this issue Apr 16, 2024 · 1 comment

Comments

@winca
Copy link

winca commented Apr 16, 2024

I suggest adding the GPU index ID as a label, just like the GPU UUID. After all, for machines with multiple GPUs, it is easier to identify the corresponding GPU card through the GPU index ID.

@Soappyooo
Copy link

For people who want to query by index, this might help:

# query power draw of GPU with index 1
(0 * (nvidia_smi_index==1)) + on (uuid) group_left() nvidia_smi_power_draw_watts
# query power draw of GPUs, sort by index (use "Instant" type for Grafana)
(0 * sort(nvidia_smi_index)) + on (uuid) group_left() nvidia_smi_power_draw_watts

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

No branches or pull requests

2 participants