Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#15037·openobserve

Improve clarity of Builder vs SQL mode when saving alerts

Author: simranquirkyCreated Oct 1, 2026Updated Oct 1, 2026
LabelsUI

Summary In the alert creation/edit screen, the query mode an alert is saved with depends on which tab (Builder or SQL) is active when the user clicks Save. This isn't obvious from the current UI, and users can end up saving an alert in a different mode than they intended. We should make this more intuitive.

Context A community user set up separate CRITICAL and WARNING alerts, both written as SQL queries. The CRITICAL alert ended up saved in Builder mode (query_condition.type: "custom") with empty conditions, while the SQL query was still stored in the alert. As a result, the CRITICAL alert matched every incoming log, and both alerts appeared to fire at the same time. Re-saving the alert with the SQL tab active resolved it.

The user's question, "so it matters which tab I'm on when I save the alarm?", shows that the current behaviour isn't clear from the UI.

Steps to reproduce

  1. Create a scheduled alert on a logs stream.
  2. In the SQL tab, enter a filtering query, e.g. SELECT hce_time, job, level, log FROM "default" WHERE level='CRITICAL'
  3. Switch to the Builder tab without adding conditions.
  4. Save the alert and export its JSON.

Current behaviour

  • Alert is saved as "type": "custom" with "conditions": [].
  • The SQL query is still stored and visible, but isn't used for evaluation.
  • The alert matches all rows in the stream.

Desired behaviour It should be clear to the user which mode the alert will be saved in, and which condition will actually be evaluated.

Suggestions

  • Show the active mode near the Save button (e.g. "Saving as: SQL query").
  • Show a confirmation if the inactive tab has content that will be ignored: "You're saving in Builder mode; your SQL query won't be used."
  • Warn when saving a Builder-mode alert with no conditions: "This alert will match all rows in the stream."
  • When editing an existing alert, open it on the tab that matches its saved mode.
  • Consider visually disabling or clearing the inactive tab's content so it isn't mistaken for the active condition.

Source: openobserve/openobserve

View original on GitHubView discussion on GitHub