# AlertManager

Set up **Prometheus** to receive notifications and alerts.

### Set up  <a href="#set-up" id="set-up"></a>

**1.** Visit **Admin → Connections** and click **New connection**

<figure><img src="https://docs.lenses.io/5.2/guides/self-service/alerts/alert-channels/images/new_connection.png" alt="Lenses.io Connection" width="563"><figcaption></figcaption></figure>

**2.** Select **Prometheus**

<figure><img src="https://docs.lenses.io/5.2/guides/self-service/alerts/alert-channels/images/select_connection_prometheus.png" alt="Prometheus Connection" width="563"><figcaption></figcaption></figure>

**3.** Provide a name and configuration

You can also optionally add tags (i.e., dev), and for the URL endpoint, check Prometheus AlertManager Help.

<figure><img src="https://docs.lenses.io/5.2/guides/self-service/alerts/alert-channels/images/create_connection_prometheus.png" alt="Prometheus Connection" width="563"><figcaption></figcaption></figure>

### Add channel  <a href="#add-channel" id="add-channel"></a>

Next, add one or multiple target Prometheus channels.

**1.** Visit **Admin → Channels** and click **Prometheus**

<figure><img src="https://docs.lenses.io/5.2/guides/self-service/alerts/alert-channels/images/select_channel_prometheus.png" alt="Prometheus channel" width="563"><figcaption></figcaption></figure>

**2.** Setup the configuration options

<figure><img src="https://docs.lenses.io/5.2/guides/self-service/alerts/alert-channels/images/prometheus_details.png" alt="Prometheus details" width="563"><figcaption></figcaption></figure>

For example, the above will create the `Prometheus DevOps`, that is, using the `prometheus` connection, with `PROD` source and `http://lenses_prod:1000` as generator URL to post alerts to Prometheus AlertManager.

### An example  <a href="#an-example" id="an-example"></a>

If, for example, you create a rule to send infrastructure notifications to Prometheus, you will be notified inside the AlertManager UI when a Zookeeper Broker becomes offline.

<figure><img src="https://docs.lenses.io/5.2/guides/self-service/alerts/alert-channels/images/prometheus_zookeeper_down.png" alt="Prometheus Zookeeper down example" width="563"><figcaption></figcaption></figure>

<br>
