CloudWatch

Setup a CloudWatch connection for Streaming Data Platform alerts and notifications.

Set up

1. Visit Admin → Connections and click New connection

Lenses.io Connection

2. Select CloudWatch

CloudWatch Connection

3. Provide a name and configuration

You can also optionally add tags. CloudWatch API-specific information can be found on CloudWatch API Help

CloudWatch Connection

Add channel

Next add one or multiple target CloudWatch channels.

1. Visit Admin → Channels and click CloudWatch

CloudWatch channel

2. Setup the configuration options

CloudWatch details

For example the above will create the cw-devops channel, that is using the aws connection having as source the lenses.alerts.

Filter Lenses logs in CloudWatch

To filter out messages produced by Lenses you need to create a query in CloudWatch. Plenty of fields can be used for such filtering. source could be the best option since this is the only one that allows you not only to pick alerts coming from Lenses, but also from a particular Lenses instance (if you have more than 1 instance of Lenses).

In CloudWatch UI, search for the given source in the Logs screen. According to the documentation of AWS CloudWatch Logs queries , you can use a query such as the following:

fields @timestamp, @message
| filter source = "the source you defined for lenses channel"
| sort @timestamp desc
| limit 20

As mentioned before, there are plenty of fields that can be used in such queries. You can see them after expanding one of the messages in CloudWatch Logs page:

CloudWatch query

An example

If, for example, you create a rule to send infrastructure notifications to CloudWatch, then the moment a Broker goes offline, a message will be sent to the cw-devops channel.

Additional info

Users with the alert permission can create alert rules .