The APM app integrates with Kibana’s feature. It provides a set of built-in actions and APM specific threshold alerts for you to use and enables central management of all alerts from Kibana Management.

    For a walkthrough of the alert flyout panel, including detailed information on each configurable property, see Kibana’s .

    The APM app supports two different types of threshold alerts: transaction duration, and error rate. Below, we’ll create one of each.

    Transaction duration alerts trigger when the duration of a specific transaction type in a service exceeds a defined threshold. This guide will create an alert for the service based on the following criteria:

    • Environment: Production
    • Transaction type: transaction.type:request
    • Average request is above 1500ms for the last 5 minutes
    • Send the alert via Slack

    From the APM app, navigate to the opbeans-java service and select Alerts > Create threshold alert > Transaction duration.

    Based on the alert criteria, define the following alert details:

    • Check every - 10 minutes
    • Notify every -
    • TYPE - request
    • WHEN - avg
    • IS ABOVE - 1500ms
    • FOR THE LAST - 5 minutes

    Select an action type. Multiple action types can be selected, but in this example, we want to post to a Slack channel. Select Slack > Create a connector. Enter a name for the connector, and paste the webhook URL. See Slack’s webhook documentation if you need to create one.

    Add a message body in markdown format. You can use the Mustache template syntax, i.e., {{variable}} to pass alert values at the time a condition is detected to an action. A list of available variables can be accessed by selecting the add variable button add variable button.

    Select Save. The alert has been created and is now active!

    Error rate alerts trigger when the number of errors in a service exceeds a defined threshold. This guide creates an alert for the opbeans-python service based on the following criteria:

    • Environment: Production
    • Check every 1 minute, and repeat the alert every 10 minutes
    • Send the alert via email to the opbeans-python team

    From the APM app, navigate to the service and select Alerts > Create threshold alert > Error rate.

    Based on the alert criteria, define the following alert details:

    • Check every - 1 minute
    • Notify every - 10 minutes
    • IS ABOVE - 25 errors
    • FOR THE LAST - 1 minute

    Select the Email action type and click Create a connector. Fill out the required details: sender, host, port, etc., and click save.

    Add a message body in markdown format. You can use the template syntax, i.e., to pass alert values at the time a condition is detected to an action. A list of available variables can be accessed by selecting the add variable button .

    Select Save. The alert has been created and is now active!

    From the APM app, select Alerts > View active alerts to be taken to the Kibana alerts and actions management page. From this page, you can create, edit, disable, mute, and delete alerts, and create, edit, and disable connectors.

    See alerting and actions for more information.