# PromQL - Metric Refinement

**URL:** <https://discuss.prometheus.io/t/promql-metric-refinement/978>\
**Category:** PromQL\
**Created:** [May 12, 2022, 6:30am UTC](https://discuss.prometheus.io/t/promql-metric-refinement/978 "2022-05-12T06:30:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![991763939](https://avatars.discourse-cdn.com/v4/letter/9/54ee81/32.png) [@991763939](https://discuss.prometheus.io/u/991763939)\
**Post date:** [May 12, 2022, 6:30am UTC](https://discuss.prometheus.io/t/promql-metric-refinement/978/1 "2022-05-12T06:30:24Z")

</div>

I need a metric refinement.  
How do I use the day\_of\_week function?  
My mission is to make a metric that fits grafana so as not to alert at dawn and preferably not at dawn on weekends.
