> 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

Create alerts in ilert from OpenObserve alerts — with ilert's OpenObserve inbound 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 **Alerting** → **Alert sources** and click **Create new alert source**.
2. Search for **OpenObserve**, click its tile, and click **Next**.
3. Give your alert source a name, optionally assign teams, and click **Next**.
4. Choose who gets notified: select **Use existing escalation policy** and pick a policy, or **Generate new escalation policy** to start with a basic one that notifies you first. Click **Next**.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-8a281bf3931f5a1a531951ce97984d50989dd875%2Falert-source-escalation-step.png?alt=media" alt="The escalation step of the ilert alert source wizard, headed Who should be notified about alerts, with an escalation policy selected and a preview of its escalation rules below."><figcaption><p>Pick an existing escalation policy, or generate a basic one without leaving the wizard.</p></figcaption></figure>
5. Select **Default grouping** and click **Continue setup**. It groups events by the alert key the integration sets; the other [grouping options](/alerting/configure-alerting/alert-sources.md#event-grouping) are easier to judge once events are arriving.
6. The next page shows more settings, such as notification priority and alert templates. Click **Finish setup** for now; you can change them later.
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="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-f496018ddf2534c1fd8b32d7b502aaaa5de54e9f%2Falert-source-openobserve.png?alt=media" alt="The Settings tab of a OpenObserve alert source in ilert, showing the integration type, the masked integration key, and the OpenObserve URL."><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="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-8de377b4313611710d7195ded9acf2978eb2c286%2Fopenobserve-1.png?alt=media" alt=""><figcaption></figcaption></figure>
2. In the sidebar, click on **Templates**.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-7843c39ab628078e7e0b9f7e07fabd3fdfc64d27%2Fopenobserve-6.png?alt=media" alt=""><figcaption></figcaption></figure>
3. Click on **New template**.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-07ec550dcb01d59d173fceab3a603e4e18ff4eda%2Fopenobserve-7.png?alt=media" 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="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-ec8743884197588c7d7bb752dd6af4e13b4dbb9e%2Fopenobserve-4.png?alt=media" 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="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-e9c49beafc993df5365e0ed3acce1a8e9565948b%2Fopenobserve-5.png?alt=media" alt=""><figcaption></figcaption></figure>
2. Click on **New destination**.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-4b74931af3c5637d3a3cef248f4433c8c64d0125%2Fopenobserve-2.png?alt=media" alt=""><figcaption></figcaption></figure>
3. Choose **Custom Destination** as the destination type.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-a8083a281af945d31df4dc8f69e5765e88d5c114%2Fopenobserve-3.png?alt=media" 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="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-a19c61a780d839035fe59531ccf900325d31faa5%2Fopenobserve-8.png?alt=media" 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="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-ad0e761f526a232fa9c91a4b60b02c69756fbc43%2Fopenobserve-9.png?alt=media" 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="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fgit-blob-ad235e9c0567236a677e0dd8f28c1253d4e4accc%2Fopenobserve-10.png?alt=media" 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.
