Hello,
I have setup alertmanager & able to receive slack messages for alert conditions:
It's not consistent on how alerts are received. I'm not getting alerts most of the times.
`receivers:
Also in alert manager UI the source link for an alert points to hostname:9090 prometheus instance. Is it possible to change that to IPAddress:9090?
@sushovan23 I don't understand your questions. It would be helpful if you could add your full Alertmanager configuration and describe your issue in more depth.
I want to specify the slack message url from :9093#/alerts?receiver=alertmanager_alerts to IP address. Since I don't have DNS enable so where & how to specify IP address instead of hostname.
Where do you want to specify the slack message url? In the UI to filter by receiver?
Also in alert manager UI the source link for an alert points to hostname:9090 prometheus instance. Is it possible to change that to IPAddress:9090?
The Alertmanager UI uses whatever is written in the generatorURL to redirect to the source of an alert. Changing from hostname to IP would need to be done in Prometheus.
Hello,
Thanks for the response. I read more on generatorURL & figured out that I needed to use -web.external-url option while starting prometheus which would provide accessible url in slack notifications & alert manager UI.
Most helpful comment
Hello,
Thanks for the response. I read more on generatorURL & figured out that I needed to use
-web.external-urloption while starting prometheus which would provide accessible url in slack notifications & alert manager UI.