On Wednesday, 21 June 2023 at 21:25:14 UTC Tony Kirk wrote: I'm semi-new to prometheus, and I have inherited a large multi site setup to learn and admin. This system hasn't been touched in 6 months since the person who set up the whole system left 6 months ago. I have been asked to replace the ip:port (instance) in the alert body with the hostname. While I'm still learning, I haven't come across any easy solution for that.
As Ben says, the best way to do that is by setting the instance label to just the hostname. Reference: https://www.robustperception.io/controlling-the-instance-label A simple example: https://groups.google.com/forum/#!topic/prometheus-users/I4dVtwI5YrM -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/6a0d2090-3ba0-4e9f-a7f8-d9decdd4f419n%40googlegroups.com.

