Alert Integration
Understand which alerting systems Lenses can send alerts to.
Alert connections
Alert connections define where an agent can send alerts. Configure connections in the provisioning file.
Lenses supports AWS CloudWatch, Datadog, PagerDuty, Prometheus Alertmanager, Slack, and webhooks.
To configure a connection:
Select Environments & Topics.
Expand the environment, then select Configuration.
Edit, test, and apply the provisioning file to the connected agent.
Alert channels
After configuring a connection, create alert channels to route events to it. You can create multiple channels for each connection. For example, route different alerts to separate Slack channels.
Select Environments & Topics, expand the environment, then select Alerts.
Select the Channels tab to view, edit, or create channels.

Alerts are always stored in Lenses even if you don't send them out to an external alerting system.
AWS CloudWatch
Create an AWS connection in Configuration. Then create an AWS CloudWatch channel.
You can use the AWS default credentials provider chain instead of explicit credentials.
Datadog
In Configuration, create a Datadog connection.
In Alerts → Channels, create a channel using that connection.
PagerDuty
In Configuration, create a PagerDuty connection.
In Alerts → Channels, create a channel using that connection.
Prometheus Alertmanager
In Configuration, create an Alertmanager connection.
In Alerts → Channels, create a channel using that connection.
Slack
In Configuration, create a Slack connection.
In Alerts → Channels, create a channel using that connection.
Webhooks
Webhooks can send alerts to services that accept HTTP requests. Use them for email, Microsoft Teams, SMS, and custom integrations.
In Configuration, create a Webhook connection.
In Alerts → Channels, create a channel using that connection.
Template variables
Use template variables in the request path, HTTP headers, and body. Write variables as {{VARIABLE}}.
{{LEVEL}}— alert level, such asHIGHorCRITICAL.{{CATEGORY}}— alert category.{{INSTANCE}},{{SUMMARY}},{{TIMESTAMP}}, and{{ID}}— alert details.
Use {{CREDS[0]}} for a value from the connection credentials list.
SendGrid email example
Configure a webhook connection with host api.sendgrid.com and enable HTTPS. Create a channel using this connection.
Set the method to POST. Add these headers:
Use this body:
The sender address must match a verified SendGrid sender.
Zapier example
Configure a webhook connection with host hooks.zapier.com and enable HTTPS. Set the request path to the webhook path from Zapier.
Set the method to POST. You can pass a credential with this header:
Use this body:
Microsoft Teams example
Create an incoming webhook in Microsoft Teams. Its URL includes a host and a path.
Create a webhook connection with host
outlook.office.comand enable HTTPS.Create a channel using that connection.
Set the method to
POST.Set the request path to the path from the Teams webhook URL.
Set the body:
SMS
Use a webhook service that can send SMS messages. Zapier can route the webhook payload to an SMS provider.
Last updated
Was this helpful?

