How to query availability within business hours ohnly?

16 views
Skip to first unread message

alexei

unread,
Oct 29, 2020, 10:32:10 AM10/29/20
to Prometheus Users
Hi,

I'm currently querying my service availability like this
avg_over_time(probe_success{instance="abc"}[1d])

Now I have a requirement to consider business hours only (9am-5pm). How should  I modify the query to have always the value of 1 outside of business hours?

Best,
Alexei

Brian Candler

unread,
Oct 29, 2020, 11:46:36 AM10/29/20
to Prometheus Users
Reply all
Reply to author
Forward
0 new messages