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

Unable to access Prometheus type data source in Grafana #14

Open
robertmoni opened this issue May 1, 2020 · 1 comment
Open

Unable to access Prometheus type data source in Grafana #14

robertmoni opened this issue May 1, 2020 · 1 comment

Comments

@robertmoni
Copy link

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
  1. I tried to explore the metrics but they never load
    grafana_explore
@salotz
Copy link

salotz commented May 27, 2020

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.

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