Configure an advanced custom alert

  • Latest Dynatrace
  • How-to guide
  • 3-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 an advanced custom alert

To manually create an advanced 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. Go to the Advanced tab and 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. Set Actor to a service user or regular user.

    By default, after editing the custom alert's configuration, the actor changes to the user who updated it. You will get a warning message confirming whether you want to overwrite the existing configuration or make a copy of the custom alert with your changes.

    If the custom alert was created with a service user and you have permission to use the service user, you can update the configuration without overwriting the service user actor; otherwise, you'll get a warning about restricted service user access.

  7. Expand Define alert condition.

  8. In Select use case, select the analyzer.

  9. In Set a condition, set the analyzer parameters. For details, see Analyzer type and parameters.

  10. Optional Select Preview to see a demonstration of your alert condition.

  11. Expand Add details.

  12. In General information, set a Title and Description for your custom alert. You can use Markdown in your custom alert description.

  13. In Create event template, configure the event triggered by the configuration. For details, 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 an advanced 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 multiple 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. Go to the Advanced tab and expand Add details.
  12. In General information, set a Title and Description for your custom alert. You can use Markdown for the description.
  13. In Create event template, configure the event triggered by the configuration. For details, see Event template.
  14. Select Create.

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

Related tags
Dynatrace Platform