Hi, I'm trying to setup a silence for specific alert during a reboot window, and I'm facing problems with the use of minute() and hour() functions.
I want to be able to silence alert for a period like 01:00 to 04:30. When only using hour() I can get this : (hour() >= 1) and hour() < 5 So I get all hour from 1 to 4 okay, but without the desired minutes after it. And when trying to combine minute() and hour like this for example : (minute() > 0 and minute() < 30 and hour() < 5) and hour() >= 1 I get the 30min period for all the hour between 1 and 4. Does somebody know the right way for this to get the time from 1 to hours:minutes. parenthesis doesn't seem to work like I want but that may be my bad for not understanding their uses in promql correctly. Cheers, Lucas H -- 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/3406e8c9-dbfb-46d4-9eb6-2bed413cc9b6%40googlegroups.com.

