One of the key features of Dynatrace is its ability to detect and analyze performance issues before your customers are affected by them. This is achieved through the use of alert templates, which allow you to find the root cause of performance issues even in complex environments.
In order to take advantage of this functionality, you can ship alert templates with your extensions. The templates are defined under alertTemplates key in your extension.yaml file.
alertTemplates:- title: "alert template static below"description: "An alert template showing the structure of an alert"executionSettings:queryOffset: 12analyzer:name: "dt.statistics.ui.anomaly_detection.StaticThresholdAnomalyDetectionAnalyzer"input:query: "timeseries count()"threshold: 100alertCondition: "BELOW"alertOnMissingData: falseviolatingSamples: 3eventTemplate:event.type: CUSTOM_ALERTevent.name: "easy-travel-location-emergency"event.description: "description"
Alert templates that are included in the network extensions from
Dynatrace Hub normalize the values to the polling interval, but their default sliding window assumes 1-minute polling. If you set a longer polling interval, adjust the sliding window and violating samples of your alerts. For details, see Adjust network dashboards and alerts to the polling interval.
Based on the alert template, you can also create a new custom alert in
Anomaly Detection.
This is done by going to the Extension content tab on the extension's page and clicking the Create alert button.
Extensions