Alert Destinations
In OpenObserve, Destinations define how and where alert notifications are delivered when an alert is triggered. Destinations are reusable. You can assign a destination to one or more alerts to manage notifications efficiently.
Configure Alert Destinations
The Destinations section provides three configuration options. Select a destination type to view configuration instructions.
When the alert gets triggered, OpenObserve will send alert data to an external system using an HTTP POST request. Use this option to integrate with services that support webhook ingestion. You can customize the request payload using templates to match the format expected by the target system.
View use cases.
You can use this destination to:
- Create incident tickets in Jira Service Management or ServiceNow.
- Send notifications to Slack or Microsoft Teams channels.
Steps to Configure Webhooks as Alert Destination:
- Go to Management > Alert Destinations.
- In the Add Destination page, click Webhook.
-
Fill in the following details:
- Name: Enter a descriptive name for the Webhook destination. For example, SlackNotifications. Note that characters such as
,
,:
,?
,/
,#
, andspaces
are not allowed. - Template: Choose a predefined alert message template from the dropdown menu.
- URL: Specify the Webhook endpoint URL where notifications will be sent. For example,
https://hooks.slack.com/services/T02QBH105PF/B04C7NLLLRE/HY3fXf123
- Method: Select the HTTP method (
POST
,GET
, orPUT
) depending on the Webhook's requirements. - Headers (Optional): Add custom headers in key-value format. For example, authentication tokens or content type. For example,
- Skip TLS Verify: Enable this option if the endpoint uses self-signed certificates or if you want to bypass SSL verification.
- Name: Enter a descriptive name for the Webhook destination. For example, SlackNotifications. Note that characters such as
-
Click Save to create the Webhook destination.
When the alert gets triggered, OpenObserve will send alert notifications to one or more email addresses using SMTP. Use this option when email is the preferred channel for receiving alerts. You must configure the email delivery settings under your OpenObserve SMTP setup. The alert payload can be formatted using a predefined template.
View use cases.
You can use this destination to:
- Notify on-call team members or distribution lists.
- Route alerts to incident mailboxes used by helpdesk.
Prerequisites:
1. Set up an email account for sending alerts.
To send email alerts using Gmail SMTP, you must create an App Password. Follow these steps:
- Sign in to your Gmail account.
- Go to Google Account Settings > Security.
- Under Signing into Google, enable 2-Step Verification (if not already enabled).
- After enabling 2-Step Verification, go to the App Passwords.
- In the App Passwords page, enter a name for your app, such as SMTP, and click Create.
- Copy the generated App Password and store it securely. You will need it during configuration.
Test Your Gmail SMTP Configuration
Use an online tool such as Mailmeteor’s SMTP Test Tool to verify your configuration.
To test:
- Go to Mailmeteor's SMTP Test Tool and select the email provider.
- The tool fills in the SMTP server as
smtp.gmail.com
and port587
. - Enter your Gmail address and the App Password you created earlier.
- Click Test Configuration.
If successful, you will receive a test email in your inbox. This confirms your Gmail SMTP configuration is working.
2. Configure environment variables to enable email alerts through SMTP in OpenObserve.
Choose your deployment type and configure the environment variables accordingly:
- For Single Node Deployment: You need to pass SMTP configuration parameters when starting OpenObserve. Below is the command to configure OpenObserve to send email alerts via Gmail:
- For High Availability (HA) deployment: Configure the above environemnt variables in the values.yaml file
- For Cloud: No additional configuration required.
3. Set up an alert template.
This allows you to define the content and layout of the alert message.
- In OpenObserve, go to Management > Templates.
- Click Add Template to create a new email template.
-
In the template creation screen:
- Select Email as the template type.
- Enter a name for the template.
- Fill in the Title and Body fields.
Title Example:
Body Example:
4. Ensure that the recipient is part of the appropriate organization
- From the left-nevigation menu, go to IAM (Identity and Access Management) > Users.
- Click Add User.
- Enter the user’s email address, role, password, and name.
- Click Save.
After the user is added, they become eligible to receive email alerts.
Steps to Configure Emails as Alert Destination:
- Go to Management > Alert Destinations.
- In the Add Destination page, click Email.
- Enter a name for the destination.
- Select an email template to define the alert content.
- Enter the recipient’s email address.
- Click Save.
This creates the email as alert destination.
When an alert gets triggered, OpenObserve executes a Real-time Action script. Use this destination type when the alert data needs to be processed or routed using custom logic.Action scripts are stateful. They can retain values across executions, enabling more advanced workflows than webhook or email destinations.
View use cases.
For example, you can use this destination to:
- Send the alert to Slack, and also ingest a structured copy of the alert into a custom stream in your organization
- Track how often a specific alert has triggered, then write aggregated metrics, such as trigger count per hour, to a stream for trend analysis.
Prerequisites:
- Create the real-time action script as per your requirement. For more details, visit the Create and Use Real-time Actions page.
- Create the alert template.
Steps to Configure Actions as Alert Destination:
- Go to Management > Alert Destinations.
- In the Add Destination page, click Actions.
- Enter the name of the destination.
- Select the template.
- Select the real-time action.
- Click Save.