nvidia_gpu_prometheus_exporter
nvidia_gpu_prometheus_exporter copied to clipboard
Unable to access Prometheus type data source in Grafana
Hello!
I'm facing an error accessing the metrics from your exporter.
Steps performed:
-
Running the exporter with nvidia-docker
nvidia-docker run -p 9445:9445 -ti mindprince/nvidia_gpu_prometheus_exporter:0.1
-
Testing by accesing http://localhost:9445
- seems to work well
- Setup Grafana in Docker
docker run -d --name grafana -p 3000:3000 grafana/grafana
- works fine
- Adding data source in Grafana as Proetheus type
- in the URL I provide the exporter's docker IP address (this worked with other prometheus docker based on this tutorial )
- if I provide the host machine's IP then it provides Bad Gateway error
- Nvidia GPU dasboard
- when getting the nvida gpu dasboard from https://grafana.com/grafana/dashboards/10703 metrics are not loaded with error message "Cannot read property 'result' of undefined"
- I tried to explore the metrics but they never load
You are setting the prometheus source as the exporter. Prometheus reads from the exporters and then provides its data as inputs to grafana. So set the source as ip.addr:9090
or whatever your prometheus server is at. You'll need to configure the prometheus server to use the gpu exporter it as a target as well.