generatorURL field in AlertManager

94 views
Skip to first unread message

林浩

unread,
Jun 11, 2020, 10:44:20 PM6/11/20
to Prometheus Users
Hi,

Is there is any way we can customize the field  "generatorURL" , for example, replace pod name prometheus-84c7d47b68-t47m2 in the below example to a pod IP address?

I'm asking this is because I hope I can click on this URL and quickly switch over to Prometheus graph, but since it uses pod name, our DNS can't resolve it and so link can't open the link

Christian Hoffmann

unread,
Jun 12, 2020, 3:44:02 AM6/12/20
to haow...@gmail.com, promethe...@googlegroups.com
Hi,

sounds like you are looking for this command line parameter?

--web.external-url=<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.

Kind regards,
Christian
> --
> 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
> <mailto:prometheus-use...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/76df5d08-4d28-47ff-9cc9-62725ee76aaco%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/76df5d08-4d28-47ff-9cc9-62725ee76aaco%40googlegroups.com?utm_medium=email&utm_source=footer>.

haowells

unread,
Jun 16, 2020, 11:53:39 AM6/16/20
to Prometheus Users
Thanks Christian!

在 2020年6月12日星期五 UTC+8下午3:44:02,Christian Hoffmann写道:
Reply all
Reply to author
Forward
0 new messages