-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
Grafana Alerting Issue: tsdb.HandleRequest() error bad_response: bad response code 502 #12739
Comments
What grafana version? What datasource and how have you configured it? Any proxy configured to be used for datasource? |
Hi,
(Added same info as an edit) |
And my other questions? Screenshot of datasource configuration? Any proxy? Any special authentication? |
So what happens if you change access to Server? I guess it would fail. Server access mode is kind of how prometheus are accessed in when evaluating alerting rules |
Yes I got the same bad gateway error,but later I tried my datasource to work on server access instead of browser access, and changed the servers address in the form of "http://ipaddress:port" and then the datasource started working fine. After that I tried out alerting again, and now alerts are appearing on my Telegram channel So the takeaway from this is "Always add datasources' access as server because that is how alerts access prometheus while evaluating alert rules" |
Glad you worked it out. Browser access mode should only be used in the case of you cannot use server access mode due to special authentication or similar. |
While creating any alerts on Grafana, I am facing an error "tsdb.HandleRequest() error bad_response: bad response code 502" every single time, tried to find out but couldn't find the solution since nobody else had this issue in the past. Here is the screenshot for the same
Edit:
Thanks in Advance :)
The text was updated successfully, but these errors were encountered: