> ## Documentation Index
> Fetch the complete documentation index at: https://docs.insaion.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create an alarm

Use the Create Alarm form to add a new rule that monitors your devices or data streams and notifies you when a condition is met. The form is designed to be approachable — fill in the human-friendly fields and the app will guide you through the important options.

<img src="https://mintcdn.com/insaion/6G7kMJ9f-czk-eIb/assets/alarms/create-form.png?fit=max&auto=format&n=6G7kMJ9f-czk-eIb&q=85&s=aefe1e544c6f81d04108bebc3033387c" alt="Create Alarm form placeholder" width="2438" height="1560" data-path="assets/alarms/create-form.png" />

### What you’ll see on the form

* Alarm Name: A short, descriptive name that helps you and your team understand what this rule monitors.
* Description: A longer, optional note describing the purpose of the alarm and suggested actions when it fires.
* Alarm Type: Choose Single Metric, Group Comparison, or Log Threshold. Log Threshold alarms evaluate matching log volume, unique attributes, or numeric measures.

### Build the query (what to watch)

The form asks for a few pieces to identify the data the alarm should watch:

* Topic Pattern: The stream or topic pattern the rule looks at (the app may suggest common patterns).
* Schema and Field: Select the data schema and the specific field you want to evaluate (for example "temperature").
* Tags (optional): Add tags to limit the scope further (useful when you have many data series under the same topic pattern).

Use the preview or summary shown on the form to confirm you're watching the right data.

<img src="https://mintcdn.com/insaion/6G7kMJ9f-czk-eIb/assets/alarms/query-builder.png?fit=max&auto=format&n=6G7kMJ9f-czk-eIb&q=85&s=86100d28d7e97d9a5b39d7f7332df75d" alt="Query builder placeholder" width="1746" height="920" data-path="assets/alarms/query-builder.png" />

### Filters (target specific devices)

If you don’t want the alarm to run for every device, add device metadata filters. These let you target only devices with certain properties — for example, a specific model, location, or customer.

* For Single Metric alarms: add a single metadata filter that all matched devices must satisfy.
* For Group Comparison alarms: define filters for Group A and Group B so the system can compare the two sets.

If you leave filters empty the rule applies to all devices matching the topic pattern.

<img src="https://mintcdn.com/insaion/6G7kMJ9f-czk-eIb/assets/alarms/metadata.png?fit=max&auto=format&n=6G7kMJ9f-czk-eIb&q=85&s=f556648c7de5b15d1fd5fef0d7cbd424" alt="Filters placeholder" width="1716" height="564" data-path="assets/alarms/metadata.png" />

### Condition (when should it fire)

Set the condition that will trigger the alarm:

* Evaluation Method: Choose whether the alarm looks at the latest single value or an aggregation (average, sum, min, max) across a time window.
* Evaluation Window: When using aggregated methods, set how long the system should look back (e.g., 5 minutes).
* Trigger Condition: Single Metric alarms support greater-than, less-than, exact equality, and inequality. Group Comparison also supports percentage comparisons.
* Threshold: The numeric value that will cause the alarm to trigger when the condition is met.

<img src="https://mintcdn.com/insaion/6G7kMJ9f-czk-eIb/assets/alarms/condition.png?fit=max&auto=format&n=6G7kMJ9f-czk-eIb&q=85&s=3b877c642cbf2fb471ceb13a4e95da35" alt="Condition settings placeholder" width="1716" height="316" data-path="assets/alarms/condition.png" />

### Log threshold alarms

Log threshold alarms reuse the monitoring query builder, so the source, topic, field, tag filters, and text filters behave like log queries on the Monitoring page. Text filters support contains, does not contain, and regular expression matching.

Choose one compute mode:

* Count matching logs: Counts entries for the selected log field.
* Unique attribute values: Counts distinct values of the selected field or a tag written as `tag:key`.
* Numeric measure: Aggregates a numeric field with average, sum, minimum, maximum, median, p75, p90, p95, p98, or p99.

Log thresholds support greater-than, greater-than-or-equal, less-than, less-than-or-equal, exact equality, and inequality. Equality compares the computed numeric result exactly.

You can optionally group results by device, site, value, or one tag. Grouping still creates one alarm state and one incident: the alarm fires when any group breaches, and the incident includes a bounded list of breaching groups.

The maximum evaluation window is one hour. Count and unique modes treat no matching entries as zero, which makes a condition such as "less than 1" useful for detecting silence. A measure with no numeric values has no result unless missing-data notifications are enabled.

The preview runs the same monitoring query used for plotting. A preview failure does not prevent saving, but invalid filter, aggregation, or grouping combinations are rejected by the API.

### Settings

* Check Interval: How often the rule is evaluated (for example every 60 seconds). Shorter intervals give faster detection but may increase load.
* Enable toggle: Decide whether the alarm should be active immediately after saving.

### Save and cancel

Use the Save button to create the alarm. If a required field is missing the app will highlight it and prompt you to complete the form. Use Cancel to close the form without saving changes.

### Practical tips

* Name alarms clearly and include a description with recommended next steps (who to contact, where to check, etc.).
* Start with conservative thresholds and test a rule in a limited scope before enabling it fleet-wide.
* Use metadata filters to reduce noise and focus on meaningful groupings of devices.

***

<div className="insaion-footer" role="contentinfo">
  <div className="insaion-footer__card">
    <div className="insaion-footer__content">
      <span className="insaion-footer__icon" aria-hidden="true">
        <svg viewBox="0 0 24 24" width="20" height="20" aria-hidden="true" focusable="false" className="insaion-footer__svg" role="img">
          <path fill="currentColor" d="M21 6.5A3.5 3.5 0 0 0 17.5 3h-11A3.5 3.5 0 0 0 3 6.5v5A3.5 3.5 0 0 0 6.5 15H8v3l3-3h6.5A3.5 3.5 0 0 0 21 11.5v-5zM7 8.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm4 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm4 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2z" />
        </svg>
      </span>

      <div>
        If something's unclear or you hit a blocker, contact us on

        <a href="https://discord.gg/ZJMPfMmu3S" target="_blank" rel="noopener">
          Discord
        </a>

        or <a href="mailto:contact@insaion.com">[contact@insaion.com](mailto:contact@insaion.com)</a>
      </div>
    </div>
  </div>
</div>
