That makes sense which leads to a couple of other questions:
1. Can an alert rule annotation definition contain a promql query to 
define? 
2.  if 1. is true, can the annotation label be used in alertmanager config 
route matching?
Thanks,
Steve

On Thursday, January 21, 2021 at 12:04:52 PM UTC-5 Stuart Clark wrote:

> 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/a9b10ad5-4b81-4cb5-a948-4bdc2890e493n%40googlegroups.com.

Reply via email to