Promql

15 views
Skip to first unread message

hamid daniali

unread,
Jul 22, 2022, 2:42:47 PM7/22/22
to promethe...@googlegroups.com
Hi everyone 
i m looking for a formula that can make a query just for nights for example from 12 pm to 12 am.
can anyone help me,
cheers.

Brian Candler

unread,
Jul 24, 2022, 9:12:49 AM7/24/22
to Prometheus Users
Try this as a starting point:

some_metric * scalar(hour() < bool 12)
Reply all
Reply to author
Forward
0 new messages