nvidia-smi metrics exporter for Prometheus
> go build -v smi_exporter.go
> ./smi_exporter -web.listen-address=<IP>:<PORT> -web.telemetry-path=/<Metric_path>
Default port is 9101 Default metric path is /metrics
nvidia-smi --query-gpu=name,index,temperature.gpu,utilization.gpu,utilization.memory,memory.total,memory.free,memory.used --format=csv,noheader,nounits
- job_name: "gpu_exporter"
static_configs:
- targets: ['localhost:9101']