grafana-prometheus-alertmanager-datasource icon indicating copy to clipboard operation
grafana-prometheus-alertmanager-datasource copied to clipboard

What is the correct URL to configure

Open craph opened this issue 6 years ago • 7 comments

Hello,

I am unable to configure the plugin in Grafana.

What is the correct url to configure ? is it http://localhost:9090 or http://localhost:9093

With the first URL (URL for Prometheus) I have : image

With the second URL : image

Thank you for your help

Best regards

craph avatar Dec 04 '18 15:12 craph

I have the same issue.

aviramartac avatar Dec 25 '18 13:12 aviramartac

i should work with the 2nd option (http://localhost:9093) usually the error HTTP Error Bad Gateway is when:

  • your alert manager is down
  • or not running on localhost
  • or runs on some other port

please close this issue.

yarix avatar Jan 02 '19 16:01 yarix

Please don't close this issue, it's a real bug.

My alertmanager is up, running on localhost and on the port 9093

craph avatar Jan 03 '19 09:01 craph

@craph According to your comments, I assume that you have, in your environment, a Prometheus server which is listening on 127.0.0.1:9090, an Alertmanager listening on 127.0.0.1:9093 and a Grafana server.

Are you able to manually reach the status endpoint? Like by doing:

$ curl -v -X GET http://localhost:9093/api/v1/status

cryptobioz avatar Jan 21 '19 10:01 cryptobioz

How does the release of alert manager 0.16 affect this plugin now the v2 of the API has been released ?

pete-leese avatar Jan 25 '19 01:01 pete-leese

@VR6Pete For now, the v1 is only deprecated so the datasource should work as excepted with the Alertmanager 0.16. Adding support of the API v2 is planned for the next weeks.

cryptobioz avatar Jan 25 '19 07:01 cryptobioz

Great, I will update alert manager in that case.

pete-leese avatar Jan 25 '19 11:01 pete-leese