Hi,
On 6/25/20 8:55 PM, Sébastien Dionne wrote:
> I have few java applications that I'll deploy in my cluster. I need to
> know how can I detect if a instance is up or down with Prometheus.
>
> *Alerting with AlertManager*
> *
> *
> I have a alert that check for "instanceDown" and send a alert to
> AlertManager-webhook. So when one instance is down, i'm receiving alerts
> in my application.
>
> But how can I extract the labels that are in that instance ?
What do you mean by "in that instance"?
If the label is part of your service discovery, then it should be
attached to all series from that target. This would also imply that it
would be part of any alert by default unless you aggregate it away (e.g.
by using sum, avg or something).
If the label is only part of some info-style metric, you will have to
mix this metric into your alert.
Can you share one of the relevant alert rules if you need more specific
guidance?
Note: I don't know how many releaseUUIDGroups you have, but having UUIDs
as label values might ring some alarm bells due to the potential for
high cardinality issues. :)
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/20ec33e0-e9bf-4f2a-b366-092743dad957o%40googlegroups.com
> <
https://groups.google.com/d/msgid/prometheus-users/20ec33e0-e9bf-4f2a-b366-092743dad957o%40googlegroups.com?utm_medium=email&utm_source=footer>.