Can I add gpu label,such as "GPU 0"?
JiangShanCode opened this issue · comments
GPU-uuid is too complex to understand.Can I add gpu label,such as "GPU 0"?I installed it by docker.
The exporter itself doesn't support adding an additional label. But it's still doable.
It depends on where you need it - if you need it on Grafana dashboard, you can edit the dashboard itself.
If you need it on the metric itself (in prometheus), you need to look into the relabel configs - they allow you to manipulate any metric you need: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
In both cases, the exporter exposes a dummy metric called nvidia_smi_gpu_info
that exposes additional info on the GPU as labels - you can use that metric as the "lookup table" to find name by id. See: https://github.com/utkuozdemir/nvidia_gpu_exporter/blob/master/METRICS.md
OK,I get it.Thank you for your reply.
No problem, good luck :)
I think it is impossible to distinguish the GPUs by the GPU variable. Is there a upgrading plan? @utkuozdemir
@KeithTt I don't have time to do it at the moment. Maybe I do it in the future. Of course, PRs are welcome.