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

# InfluxDB Integration

[InfluxDB](https://www.influxdata.com/) is a high-performance time series database purpose-built for storing metrics, events, and real-time analytics. Its built-in Checks & Notifications system lets you define threshold conditions on your time series data and push alert notifications directly to external HTTP endpoints — making it straightforward to route those alerts into ITOC360.

### In ITOC360

Go to Sources, click **Create Source**, and select **InfluxDB** from the list. Once the source is created, copy the webhook URL and token from the source detail page — you will need these when configuring InfluxDB.

### In InfluxDB

In the left sidebar, hover over the bell icon to expand the navigation and click **Alerts**.<br>

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

#### Step 1 — Create a Notification Endpoint

On the Alerts page, click **Notification Endpoints**, then click **+ Create** in the top right corner.<br>

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

From the **Destination** dropdown, select **HTTP** and give the endpoint a name. Under **HTTP Options**, make sure the method is set to **POST** and the auth method is **none**. Paste your ITOC360 webhook URL into the URL field, appending your source token as a query parameter:

```
https://api.itoc360.app/functions/v1/events?token=<x-itoc360-token>
```

Click **Create Notification Endpoint** to save.

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

#### Step 2 — Create a Check

Click the **Checks** tab on the Alerts page, then click **+ Create** and select **Threshold Check**.

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

In the query builder, select your bucket from the **FROM** column, choose a measurement, and select the field you want to monitor. Click **Submit** to preview the data on the chart.

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

Switch to the **2. Configure Check** tab. In the **Thresholds** section on the right, click **+ CRIT** and enter the value above which the check should fire as critical. You can optionally add a **WARN** threshold for a lower severity level. Give the check a descriptive name at the top, then click the checkmark button in the top right corner to save.\ <br>

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

#### Step 3 — Create Notification Rules

Click the **Notification Rules** tab. InfluxDB requires a separate rule for each status level, so you will need to create two rules — one for when the check fires and one for when it recovers.

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

Click **+ Create**. Give the rule a name and set the condition to `When status is equal to CRIT`. Under **Notification Endpoint**, select the endpoint you created in Step 1. Click **Create Notification Rule** to save.\ <br>

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

Then create a second rule in the same way, this time setting the condition to `When status is equal to OK` and selecting the same endpoint. This second rule is what allows ITOC360 to automatically resolve alerts when your metric returns to normal.

### Notes

* InfluxDB runs notification rules on a schedule (default: every 1 minute). There may be a short delay between a threshold breach and the alert appearing in ITOC360.
* The CRIT rule and the OK rule must point to the same notification endpoint so that ITOC360 can correctly match each alert to its resolution.
* If you have multiple checks, each one should have its own pair of notification rules.


---

# 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.itoc360.com/integrations/inbound-integrations/log-management/influxdb-integration.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.
