Try this as a starting point:

some_metric * scalar(hour() < bool 12)

On Friday, 22 July 2022 at 19:42:47 UTC+1 [email protected] wrote:

> 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.
>

-- 
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/6dab4844-cb9e-4a91-97b8-5da3d3beeae1n%40googlegroups.com.

Reply via email to