Im using prometheus as data source and grafana 8 unified alerting. The goal is to alert only during specific hours. The following query is what i have at the moment:
(100-(avg by (instance) (irate(windows_cpu_time_total{job=~"windows_scrape",mode="idle"}[2m])) * 100)) * ((hour() > 8) * (hour() < 10))
but this query has no data. Any idea? Thank you