> For the complete documentation index, see [llms.txt](https://docs.ilert.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ilert.com/integrations/inbound-integrations/openobserve.md).

# OpenObserve Integration

[OpenObserve](https://openobserve.ai/) is an open-source observability platform for logs, metrics, traces, and RUM. Its alerting engine lets you define scheduled and real-time alerts on your streams and deliver them to notification destinations. With this integration, alerts raised in OpenObserve automatically create alerts in ilert, so the right responders are notified and escalations happen reliably.

## In ilert: Create an OpenObserve alert source <a href="#create-alert-source" id="create-alert-source"></a>

1. Go to **Alert sources** --> **Alert sources** and click on **Create new alert source**

   <figure><img src="/files/rmL9OoRxcWnDwcJZQm4Y" alt=""><figcaption></figcaption></figure>
2. Search for **OpenObserve** in the search field, click on the tile and click on **Next**.

   <figure><img src="/files/1WoRRYB5U40PbeMJ7Hit" alt=""><figcaption></figcaption></figure>
3. Give your alert source a name, optionally assign teams and click **Next**.
4. Select an **escalation policy** by creating a new one or assigning an existing one.

   <figure><img src="/files/y4Bakf2apGhBN56U8ZPR" alt=""><figcaption></figcaption></figure>
5. Select your [Alert grouping](/alerting/configure-alerting/alert-sources.md#alert-grouping) preference and click **Continue setup**. You may click **Do not group alerts** for now and change it later.

   <figure><img src="/files/nTlB0ZCIW1SP3dj6P9nO" alt=""><figcaption></figcaption></figure>
6. The next page shows additional settings such as custom alert templates or notification priority. Click on **Finish setup** for now.
7. On the final page, ilert generates a webhook URL for your alert source. Copy it — you will need it in the next section.

   <figure><img src="/files/cpvN0CcYbLIstiPI6RJe" alt=""><figcaption></figcaption></figure>

## In OpenObserve: Create a template <a href="#create-template" id="create-template"></a>

A template defines the payload that OpenObserve posts to ilert.

1. Click on **Management** in the left navigation.

   <figure><img src="/files/g5N9zMdgPElJQBI0Fv5G" alt=""><figcaption></figcaption></figure>
2. In the sidebar, click on **Templates**.

   <figure><img src="/files/jedrXIaANnNvMLv52mZ6" alt=""><figcaption></figcaption></figure>
3. Click on **New template**.

   <figure><img src="/files/dk5n2UYzRdXKkRPWWwQg" alt=""><figcaption></figcaption></figure>
4. Give the template a name, for example `ilert_template`, keep **Web Hook** selected, copy and paste the template below into the **Body** field, and click **Save**.

   <figure><img src="/files/LLRip4epUA1Dw2leefqp" alt=""><figcaption></figcaption></figure>

### Payload template

```json
{
  "org_name": "{org_name}",
  "stream_type": "{stream_type}",
  "stream_name": "{stream_name}",
  "alert_name": "{alert_name}",
  "alert_type": "{alert_type}",
  "alert_period": "{alert_period}",
  "alert_operator": "{alert_operator}",
  "alert_threshold": "{alert_threshold}",
  "alert_count": "{alert_count}",
  "alert_agg_value": "{alert_agg_value}",
  "alert_start_time": "{alert_start_time}",
  "alert_end_time": "{alert_end_time}",
  "alert_url": "{alert_url}",
  "alert_trigger_time": "{alert_trigger_time}",
  "alert_trigger_time_millis": "{alert_trigger_time_millis}",
  "alert_trigger_time_seconds": "{alert_trigger_time_seconds}",
  "alert_trigger_time_str": "{alert_trigger_time_str}"
}
```

{% hint style="info" %}
All fields of the alerted stream are available as variables too. The **Template Variable Guide** on the right side of the template editor lists every variable you can use, so you can enrich the payload with your own fields — they show up as custom details on the ilert alert.
{% endhint %}

## In OpenObserve: Create a notification destination <a href="#create-destination" id="create-destination"></a>

1. Still in **Management**, click on **Notification Destinations** and select **Custom Destination**.

   <figure><img src="/files/zCxuUDn2Brulr41zHMF7" alt=""><figcaption></figcaption></figure>
2. Click on **New destination**.

   <figure><img src="/files/7Rl7HYfDiElc9GfEeBO9" alt=""><figcaption></figcaption></figure>
3. Choose **Custom Destination** as the destination type.

   <figure><img src="/files/GHuYvM37UVT3WOgG47d9" alt=""><figcaption></figcaption></figure>
4. Keep **Web Hook** selected and fill in the fields:

   * **Name**: a name for the destination, for example `ilert_webhook`
   * **Template**: the template you created in the previous section, for example `ilert_template`
   * **URL**: the webhook URL you copied from your ilert alert source
   * **Method**: `post`

   Then click **Save**.

   <figure><img src="/files/Ili7E8jbmJTN2i62Jich" alt=""><figcaption></figcaption></figure>

## In OpenObserve: Use the destination in an alert <a href="#create-alert" id="create-alert"></a>

1. The destination now appears in the list. Click on **Alerts** in the left navigation.

   <figure><img src="/files/rk92S92Truastk9TSysI" alt=""><figcaption></figcaption></figure>
2. Create a **New alert**, or edit an existing one, and select the destination you created as its notification destination.

   <figure><img src="/files/kpNwFmXjB50GpoZbGtd3" alt=""><figcaption></figcaption></figure>
3. Save the alert. You are done.

When the alert's condition is met, OpenObserve renders the template and posts it to ilert, which creates an alert.

## FAQ

#### **Will alerts in ilert be resolved automatically?**

No. OpenObserve notifies its destinations while an alert condition is satisfied, but it does not send a separate recovery event. The ilert alert therefore stays open until it is resolved in ilert.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ilert.com/integrations/inbound-integrations/openobserve.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
