Change Source URL on AlertManager page

6,662 views
Skip to first unread message

AmmMon

unread,
May 9, 2017, 6:28:09 AM5/9/17
to Prometheus Users
Hi

On the AlertManager page (prometheusurl:9093/#/alerts), the "Source" button links to "http://prometheus0:9090/graph?.......". Where can I set the value of "prometheus0" to be a different link?

Thanks

Julius Volz

unread,
May 9, 2017, 7:52:55 AM5/9/17
to AmmMon, Prometheus Users
Check out the -web.external-url command-line flag in Prometheus:

   -web.external-url 
      The URL under which Prometheus is externally reachable (for 
      example, if Prometheus is served via a reverse proxy). Used for 
      generating relative and absolute links back to Prometheus itself. If the 
      URL has a path portion, it will be used to prefix all HTTP endpoints 
      served by Prometheus. If omitted, relevant URL components will be derived 
      automatically.

This also gets sent to Alertmanager as the URL to link back to.

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/44ddc66a-4ed2-4604-a72c-9c3f5719174e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

bugbo...@gmail.com

unread,
May 9, 2017, 8:02:35 AM5/9/17
to Prometheus Users, bugbo...@gmail.com
Thank you, I had that property set for the AlertManager and pointed it to Prometheus. Didn't realise I needed it from Prometheus too.


On Tuesday, May 9, 2017 at 12:52:55 PM UTC+1, Julius Volz wrote:
Check out the -web.external-url command-line flag in Prometheus:

   -web.external-url 
      The URL under which Prometheus is externally reachable (for 
      example, if Prometheus is served via a reverse proxy). Used for 
      generating relative and absolute links back to Prometheus itself. If the 
      URL has a path portion, it will be used to prefix all HTTP endpoints 
      served by Prometheus. If omitted, relevant URL components will be derived 
      automatically.

This also gets sent to Alertmanager as the URL to link back to.
On Tue, May 9, 2017 at 12:28 PM, AmmMon <bugbo...@gmail.com> wrote:
Hi

On the AlertManager page (prometheusurl:9093/#/alerts), the "Source" button links to "http://prometheus0:9090/graph?.......". Where can I set the value of "prometheus0" to be a different link?

Thanks

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.

Julius Volz

unread,
May 9, 2017, 8:31:51 AM5/9/17
to AmmMon, Prometheus Users
On Alertmanager, that same flag is about the Alertmanager URL, not the Prometheus URL, yeah.

To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/44b5a0b9-b791-494d-b9cc-498f7c533505%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages