Absent in prometheus config.

15 views
Skip to first unread message

Sebastian Glock

unread,
May 13, 2021, 3:12:02 AM5/13/21
to Prometheus Users
Hi,

I have a problem with absent hours in prometheus:

hour(v=vector(time()) instant-vector) returns the hour of the day for each of the given times in UTC. Returned values are from 0 to 23.

minute(v=vector(time()) instant-vector) returns the minute of the hour for each of the given times in UTC. Returned values are from 0 to 59.

my machine wakes up around 06.07 every day, but I have silence between 20 and 6, and the alert fires first thing in the morning. 

is there any option to silence alert till 06.15? When I'll use absent minutes it will silence this alert every hour for 15 minutes.

 AND ON() absent(hour() >= 0 <= 4) AND ON() absent(hour() >= 12 <= 23) AND ON() absent(day_of_week() == 6) AND ON() absent(day_of_week() == 0)

Can i combine somehow absent hour and minute to get the desired effect?

Thanks for all replies!



Reply all
Reply to author
Forward
0 new messages