On 21/01/2021 16:58, steve waldron wrote:
Is it possible to add a label with a dynamic value? for example - the amount of time an alert has been firing?  if so, any examples of PROMQL queries to accomplish this?

I'm trying to determine if routes can be created using a label defined by length of time an alert has been firing.

The combinations of labels are what defines an alert, so changing a label value causes the original alert to stop and a new one to start. Therefore for dynamic values you would want them as annotations rather than labels.

--
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/b936805e-3760-4c25-1d1d-b09fdb0702ab%40Jahingo.com.

Reply via email to