While a maintenance window is active, the maintenance metadata it adds to telemetry, problems, and events lets you filter views, refine automation, and audit what happened during planned work. This page covers three common tasks:
ProblemsDuring maintenance, Dynatrace still creates alerts and groups them into problems. Problem records include maintenance metadata (maintenance.is_under_maintenance=true) so you can find and manage them in
Problems.
Recording problems during maintenance is useful because:
Problems.= Equals and true.To avoid sending notifications or triggering automations for problems that occur under a maintenance window, add a maintenance filter to the workflow's problem trigger.
Go to
Workflows.
Select the workflow.
Select the Davis problem trigger.
In the Additional custom filter query field, add:
maintenance.is_under_maintenance != true
Save the workflow.
The workflow now triggers only for problems that didn't occur during a maintenance window.
Query maintenance events and enriched telemetry directly in Grail with DQL to gather data for custom dashboards, availability reports, and audits.
View all executions from a recurring maintenance window:
fetch dt.maintenance.windows| filter dt.settings.object_id == "<MAINTENANCE_WINDOW_OBJECT_ID>"| sort timestamp desc
fetch dt.davis.problems| filter maintenance.is_under_maintenance == true
fetch dt.davis.events| filter maintenance.is_under_maintenance == true
timeseries avg_availability = avg(dt.host.maintenance), by:{host.name}, filter: maintenance.is_under_maintenance == true| summarize by:{host.name}, sum(1)
timeseries {m1 = sum(dt.host.availability, rollup: sum, default:0, filter: availability.state == "up"),mw = avg(dt.host.maintenance, filter: maintenance.is_under_maintenance, default:0)},by: {dt.smartscape.host},union: true,nonempty: true| fieldsAdd availabilityTS = if(mw[] == 0.0, m1[], else: toLong(interval) / 60000000000)