Skip to content

Creating Alerts

An alert watches a query, evaluates a condition, and when the condition holds long enough, fires into the grouping and routing engine so the right people get notified. This page walks through creating one, step by step.

Open the Alerts section from the left navigation.

Alerts list

The Alerts screen lists your alert rules with their current state, name, and description. A summary at the top shows how many rules you have, and how many are currently Firing or Pending. You can group rules into Folders, which appear as collapsible header rows.

From the more options (⋯) icon on any rule, you can:

  • Edit the rule configuration
  • Duplicate the rule
  • Move to folder to move the rule into a different folder
  • View state history for the rule
  • Pause Evaluation or Pause Notifications
  • Delete the rule

Alert row actions

Pause Notifications creates a temporary silence scoped to this alert: the rule keeps evaluating, but KloudMate suppresses its notifications until the silence expires. While it’s paused, the rule shows a Silenced badge on the alerts list and its detail page; view or end the pause from Alerts → Silences. Add matchers to limit it to specific instances.

For the key concepts, see the Alerts Overview.

Click the Create Alert button at the top right of the Alerts screen. A dialog appears with three ways to create an alert:

Create Alert dialog

  • From Template: start with a pre-configured alert for a common monitoring scenario.
  • From Scratch: create a custom alert from an empty configuration.
  • Using AI: open KloudMate Builder and describe the alert you want in plain English.

Instead of building an alert from scratch, start from a pre-configured template that covers a common monitoring scenario.

  1. In the Create Alert dialog, select From Template.
  2. Click the Select a template dropdown and choose a template that matches your monitoring needs.

Template selection dropdown

  1. Click Create Alert. The alert appears in the Alerts list.
  2. To open and configure it, click the menu next to the alert and select Edit.
  3. The alert opens pre-configured with the query, aggregation, and threshold from the template. Review it and adjust any filters to match your environment.
  4. Click Save or Save & Close when you’re done.

The KloudMate assistant generates the queries and thresholds from a plain-English prompt.

  1. In the Create Alert dialog, select Using AI.
  2. A text box appears. Describe the alert you want to create.

Using AI prompt

  1. Click Create Alert. KloudMate generates the alert configuration from your description.
  2. To review or adjust the settings, click the menu next to the alert and select Edit.

To build a fully custom alert, select From Scratch in the Create Alert dialog and click Create Alert.

This opens the alert creation form, where you choose a data source, configure the metric or query to monitor, and define the alert condition on a single page.

Create more queries and expressions with the Add Query and Add Expression buttons. KloudMate assigns each one a letter, such as A, B, or C, and you can duplicate any block with the copy icon at its top right.

To reach advanced options such as Math expressions, Reduce, and Condition expressions, click Advanced mode at the top of the form.

Advanced mode options

The rule editor walks you through Setup query conditions and expressions, Configure evaluation settings, Add alarm details, and Notifications, then a final save.

Setting up query conditions for OpenTelemetry / KloudMate

Section titled “Setting up query conditions for OpenTelemetry / KloudMate”

OpenTelemetry / KloudMate query setup

  • Data Set: select the dataset you want to retrieve from your data source.
  • Metric to Aggregate: select the metric you want to monitor from that dataset.
  • Group By: enter the attributes used to group the data points.
  • Filters: add filters to narrow the retrieved data points.

OpenTelemetry users can also use Prometheus query language to retrieve data and configure alerts.

Setting up query conditions for AWS (CloudWatch)

Section titled “Setting up query conditions for AWS (CloudWatch)”

AWS CloudWatch query setup

  • Time Range: set how far back to fetch data with the dropdown, or enter a custom value in seconds.
  • Region: select the AWS region of the service you want to monitor.
  • Namespace: select the AWS service namespace you want to alert on.
  • Metric: select the metric from that namespace.
  • Statistic: select the statistical function to apply when calculating data points.
  • Dimensions: optionally scope the alert to grouped resources within the namespace. For EC2, for example, you can filter by autoscaling group name, image ID, instance type, and more.

Click Run Query to fetch data.

Query time ranges support the following:

  • Operators: - for subtracting time
  • Supported values: the same units and keywords used in dashboards
  • Examples: now, now-5m

Expressions let you apply logic to query results. Reference any query or expression by its letter, such as A, B, or C. An expression can be passed as a parameter only when multiple expressions are configured.

Choose from these expression types:

  • Math Expression: enter a mathematical expression to apply to a query or expression, such as $A+1, $A<$B, or $A && $C. See Alert Expressions.
  • Reduce: aggregate a query or expression into a single number with a function, then pick the target from the Input dropdown. Available functions include mean(), max(), min(), sum(), last(), and count().
  • Condition Expression: pick a function and a query or expression, then choose a condition and a threshold to evaluate against. You can add multiple conditions and combine them with AND or OR.

Click Run Queries to execute everything you’ve configured.

This step opens with a Folder dropdown. Select an existing folder, or type a new name to create one inline, to organize the rule and inherit shared defaults. The folder’s interval_seconds, no_data_state, and eval_error_state flow into the rule as defaults you can override per field. See Folders.

Evaluation settings

  • Alert condition: the query or expression that triggers the alert, such as A, B, or C.
  • Evaluate every: how often the alert condition is evaluated (for example, 60s or 1m).
  • Pending duration: how long the condition must stay true before the alert fires (for example, 5m). Leave empty to fire immediately.
  • Recovery period: how long the condition must stay within threshold before the rule resolves (for example, 5m). This stops a flapping metric from resolving and immediately re-firing. While the rule waits out this window, the instance shows as Recovering: still firing, not yet back to Normal. Leave empty to resolve as soon as the condition clears.
  • Alert state if No data: which state the alert enters when the query returns no data points. Options: Firing, No Data, Normal, or Error.
  • Alert state if Error: which state the alert enters when a query returns an error. Options: Firing, Error, or Normal.
  • Alert when an instance stops reporting: track each instance the query returns, and alert when one goes silent while the others keep reporting. Turning this on also sets Alert state if No data to Firing. An Auto-close after field appears alongside it, controlling how long a silent instance stays tracked. See Instance Absence Detection.

Click Preview alerts to run the query immediately and check the result.

Alert details

Set the alert’s name and description, then fill in the responder context:

  • Alert name: a name for the alert.
  • Description: a short description of the alert’s purpose.

Responder context is a labeled section that holds the annotations responders see when the notification lands. The hint above it reads, for example, “Help on-call responders understand the alarm and act quickly.”

  • Severity: free-form severity (for example, sev1, critical, or p1). Supports Liquid templates, so severity can depend on the firing value.
  • Summary: multiline message included in notifications. Supports templates.
  • Dashboard: optional dashboard link surfaced with the notification.
  • Panel: when you pick a dashboard, narrows the link to a specific panel.
  • Playbook URL: optional runbook URL.

Custom annotations is a collapsed accordion at the bottom. Open it to add your own key-value pairs (for example, service_owner or region). Values support Liquid templates. See Annotations & Severity.

The Notifications step controls how this alert flows into the grouping engine. Routing rules match on labels, not free-form tags:

  • Labels: key/value pairs attached to each alert this rule fires. Add them with Add label, or leave the list empty. Routing rules match on these labels, plus the reserved alarm_id, alarm_rule_folder_id, and per-instance query labels, to decide which channels notify and how alerts group.
  • Routing: Routing Rules in Alerts → Routing rules match alerts by label and send them to one or more notification channels.
  • Severity: flows through the reserved severity annotation from the previous step; downstream tools use it to prioritize.

If you’re migrating a rule that used notification tags, it keeps working; routing now matches on labels instead.

Click Save to save the alert, or Save & Close to save and return to the Alerts screen. A confirmation appears once the alert is created.

To open an alert, click the menu next to it and select View. The detail page has these tabs:

Alert detail overview

  • Overview: instance states, breaching instances with their labels, reason, and duration, plus recent state transitions.
  • Instances: the full list of alert instances and their current states.
  • History: the state-change history over time.
  • Rule: the alert configuration and query definition.