Configure a simple custom alert

  • Latest Dynatrace
  • How-to guide
  • 4-min read

Latest Dynatrace

Anomaly Detection - new Anomaly Detection allows you to create custom alerts, set up customized alerts, and transform metric events configuration. You can also save time and create a custom alert in Notebooks Notebooks while using the app.

Prerequisites

To use the latest version of Anomaly Detection - new Anomaly Detection, you need to have appropriate permissions. For more information, see Anomaly Detection - new Anomaly Detection overview.

Create or edit a simple custom alert

To manually create a simple custom alert configuration

  1. Go to Anomaly Detection - new Anomaly Detection.
  2. Select Add New alert > Create your own custom alert to create a new alert. To edit an existing custom alert, select any custom alert from the list.
  3. On the Simple tab, expand Set scope.
  4. Optional In Segments, choose one or more segments you want to filter by.
  5. In Query, provide the DQL query to fetch your data.

    We recommend that you use the interval: 1m parameter to ensure proper data resolution for the analysis.

  6. Expand Define alert condition.
  7. In Select use case, choose the preferred analyzer. For details, see Analyzer type and parameters.
  8. In Set a condition > Threshold, select Suggest values if you want Davis AI to automatically suggest a value based on the latest behavior of your data. You can also choose the desired threshold value and the Unit of your value manually.
  9. Optional In Set a condition > Alert condition, select:
    • Alert if metric is above to receive alerts when the value exceeds the threshold value.
    • Alert if metric is below to receive alerts when the value is below the threshold value.
  10. Optional Select Preview to see a demonstration of your alert condition.
  11. Expand Add details.
  12. Set Title to name your custom alert.
  13. Set Event name to any name you like. The Event name will show as a title for events generated by this custom alert.

    You can write { to let Davis AI suggest you placeholder names with desired value (for example, {alert_condition}). For more information, see Event template.

  14. Select Create to create a simple custom alert or select Save to update your configuration.

Whenever you Create or Save your custom alert, its configuration gets automatically validated. If the there's no errors present in your configuration, you'll be able to save or update your configuration. If there are any errors, the section will be highlighted with red and marked with Error message under the section title.

Check the Status of the new configuration shortly after creation to ensure there are no errors in the execution.

Create a simple custom alert in Notebooks

With Davis for Notebooks, you can preview your custom alert configuration and evaluate its effectiveness. This option takes you to Notebooks Notebooks, where you configure the query and monitoring strategy, and then back to Anomaly Detection - new Anomaly Detection to create an event template.

  1. Go to Anomaly Detection - new Anomaly Detection.
  2. Select Add New alert > Open a custom alert in Notebooks.
  3. Select a notebook in which you want to preview your configuration.
    This action takes you to Notebooks Notebooks.
  4. Add a new DQL or Metrics section and query the data you're interested in.

    For a DQL query, we recommend that you use the interval: 1m parameter to ensure proper data resolution for the analysis.

  5. Optional Select , then select one or more segments you want to filter by.
  6. Select Options > Davis AI.
  7. Activate the analyzer.
  8. Select the required analyzer and configure it. For details, see Anomaly detection configuration.
  9. Select Run analysis.
  10. Once you're satisfied with the result, select More actions > Open with Open with and select Anomaly Detection.
    This action takes you back to Anomaly Detection - new Anomaly Detection.
  11. Expand Add details and set Title to any name you like.
  12. Set Event name to any name you like. The Event name will show as a title for events events generated by this custom alert.
  13. Select Create.

    Check the Status of the new configuration shortly after creation to ensure there are no errors in the execution.

Transform a metric event configuration

Metric events enhance anomaly detection, expanding them beyond out-of-the-box use cases into metric-based events. With the power of DQL, you can extend this reach further.

To convert a metric event to the custom alert configuration

  1. Go to Anomaly Detection - new Anomaly Detection.
  2. Select Add New alert > Improve metric events with DQL.
  3. Select the required metric event and select Transform.
  4. To configure an auto-adaptive threshold and seasonal baseline, adapt the query to a 1-minute resolution.
    1. For the newly created configuration, select the transformed custom alert from the list.
    2. Expand the Set scope.
    3. Append the interval:1m parameter to the query.
    4. Select Save to save your changes.
  5. The converted metric event is automatically disabled, and the newly created configuration is active instead.

    Check the Status of the new configuration shortly after creation to ensure there are no errors in the execution.

Related tags
Dynatrace Platform