up offet 1h unless up

That would fire for an hour with instance label.

Le lun. 20 juil. 2020 à 08:47, [email protected] <[email protected]> a écrit :

> Our requirement is the alarm for up metric, using
> absent(up{job="myjob",instance=~ ".* "}). but you won't get the instance
> information. Do you have any other suggestions?
>
> 在 2020年7月20日星期一 UTC+8下午2:29:22,Brian Candler写道:
>>
>> 1. There are an infinite number of possibilities which could match
>> instance=~".*"
>>
>> 2. The result of that query is vector of timeseries.  Each timeseries
>> must have concrete labels like foo="bar", whereas foo=~"bar|baz" is a
>> PromQL querying construct only.  That is, it's not a label, it's an
>> expression that selects 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/1c3e069d-79d5-442b-9671-b92d810bda0eo%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/1c3e069d-79d5-442b-9671-b92d810bda0eo%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAFJ6V0piwsF5VGctLEHpG7GESOK2BaYEoyZZie17KW0SUyXUSw%40mail.gmail.com.

Reply via email to