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
HTTP Error Bad Gateway when using prometheus #14629
Comments
sorry for my mistake |
@aximo Hi, did you find any solution for this problem? |
I also suffer the same issue, let me know if you found a solution, thanks! |
it's networking / connection issue. Since it's not a problem in Grafana we close it. |
I have the same problem and if I curl the url from the Grafana back-end (pod) it works perfectly so it isn't networking related edit I'm new to Grafana & Prometheus my url is the
I have done the ingress controller deployment from the helmchart which creates a custom metrics service that exposes 9913 on the ingress controller pod |
I had the same problem and found that changing access from @torkelo I guess you could argue this is a network issue but you could also consider it a Grafana config issue. I prefer to use the |
I too was facing it. I've solved it but the solution is a bit hilarious. The solution is- |
@souvikhaldar you are absolutely right. Its a water mark and not actual content. Thanks. |
I still face this error after explicitly writing the URL (in my case it was http://localhost:9090), finally I resolved it by using http://prometheus:9090 or http:/172.17.0.2:9090 because localhost is not regonized as server host when I'm running both Prometheus and Grafana as containers and you should get the correct IP of prometheus container for grafana to connect to, below is the command line I used:
|
@jimmycgz Thank you for the answer. It now works. |
just a note, you typed |
Changed! Thanks! |
I had the same issue being completely new to grafana, just following the tutorial. Changing from "Server" to "Browser" did the trick. |
Had same issue. First time on grafana. Solved issue by using URL with IP address of Prometheus Docker Pod (docker inspect ) like so url: http://172.17.0.2:9090 |
I mapped port 8010 to 9090 when running Prometheus (-p 8010:9090). I'm able to connect to it either with: |
This solution worked for me First check if port
then check the promethues logs
it showed me error In their docs https://bigbluebutton-exporter.greenstatic.dev/installation/all_in_one_monitoring_stack/#2-copy-configuration-files they told to increase the
then
then to test
this should return
then I set the Data Source -> Promethues url to Hope this helps someone. |
On running this on local minikube cluster, use the cluster address provided in logs to connect to prometheus server from grafana as the Access is Server(default) and Host clearly states : Your access method is Server, this means the URL needs to be accessible from the grafana backend/server. Using : http://prometheus-server.monitoring.svc.cluster.local:80 |
@AndrewWPhillips changing the access to |
also works on your host IP like this HTTP://your_host_ip:9090, note that it's your host IP, not "localhost", not "127.0.0.1" |
use the cluster ip's so this is if grafana and prometeus are on kubernetes pods |
exact solution for this and all related connection problems between docker images. Connection to prometheus to local app and from grafana to prometheus. |
i think it's problem http Access : select Browser not Server |
I did that but nothing shows up in dashboarh. |
i had the same issue . In my case i think it happened because i was running graphana and prometheus in the same terminal so one would automatoically shutdown when the other will start. So obviouly graphana for example couldn't connect with prometheus because it was off. When i open two different terminals and launched each application seperately it worked |
The tip from @souvikhaldar was spot on. 🤦. That is just an absurd hurdle for new users of Grafana to have to stumble across! Please, @torkelo, if you could just put something other there, like "{url}" or something, or actually let the help text there (http://localhost:9090/) be actual text instead, I guess you would help a lot of first time users like myself. @souvikhaldar's comment currently has 47 👍's, and that are only the ones that admit to this being the problem! |
Wrt. the docker containers - if you run both Prometheus and Grafana with |
this is saving my life :D |
I was facing this problem because I was trying to access localhost:9090 while Grafana was running in a docker container in a bridge network. :) |
this is right idea. you are good ! i am debug in local my computer, use docker-compose , it create multi container. so i use my ip |
Read before posting:
Please include this information:
What Grafana version are you using?
5.4.2
What datasource are you using?
prometheus latest docke image
What OS are you running grafana on?
Linux 4.4.0-104-generic #127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
What did you do?
I create a prometheus datasource in grafana web ui
What was the expected result?
success create datasource
What happened instead?
Error with 'HTTP Error Bad Gateway'
I run grafana and prometheus in docker with almost default configuration. after both started, i check connection in grafana:
i think it means that prometheus endpoint is ready for grafana backend.
then I creete data source in grafana ui like this:
so I think is a bug, or I miss some configuration?
The text was updated successfully, but these errors were encountered: