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, your 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"
Based on the alert template, you can also create a new anomaly detector in Davis Anomaly detection.
This is done by going to the Extension content tab on the extension's page and clicking the Create alert button.