nvidia_gpu_prometheus_exporter icon indicating copy to clipboard operation
nvidia_gpu_prometheus_exporter copied to clipboard

Unable to access Prometheus type data source in Grafana

Open robertmoni opened this issue 4 years ago • 1 comments

Hello!

I'm facing an error accessing the metrics from your exporter.

Steps performed:

  1. Running the exporter with nvidia-docker nvidia-docker run -p 9445:9445 -ti mindprince/nvidia_gpu_prometheus_exporter:0.1

  2. Testing by accesing http://localhost:9445 extractor

  • seems to work well
  1. Setup Grafana in Docker docker run -d --name grafana -p 3000:3000 grafana/grafana
  • works fine
  1. Adding data source in Grafana as Proetheus type grafana_docker
  • 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
  1. 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" grafana_dashboard
  1. I tried to explore the metrics but they never load grafana_explore

robertmoni avatar May 01 '20 16:05 robertmoni

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.

salotz avatar May 27 '20 18:05 salotz