datadogdatadog-dashboard

How to exclude or skip a particular day of the week in the query calculation in Datdog?


In the metric for a Datadog monitor, I have a query that sums a particular value daily and alerts when it exceeds a threshold. I want this monitor to exclude/skip calculating for Sundays alone. What additional query/formula do I add in order to achieve this?


Solution

  • You can use a custom schedule with an RRULE to achieve this.

    enter image description here

    https://docs.datadoghq.com/monitors/guide/custom_schedules/?tab=day#rrules

    FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA