SQL alerts
Open in CalíopeWatches the value returned by a query of yours and flags ALERT when it crosses the threshold you define.
Where it is: Workspace › Tools › SQL Alerts
Open SQL Alerts from the workspace navigation bar. The table lists every configured rule with its current value and an ALERT / OK indicator. A rule whose query fails says Error —open it in Configure to read what the server answered—, one whose query returns no rows, or returns NULL, says No value, and one not measured yet shows a dash: none of them counts as OK. On a connection whose environment tag protects it —confirm writes or read only—, a rule whose query writes is not run and says Refused: writes with the tag’s name: an alert runs on its own and cannot ask for confirmation.
Each rule is a query of yours: Calíope runs it at the defined interval, takes the value of the column you named and compares it against the threshold with the chosen operator (>, <, =, <>). There are no predefined metrics — you decide what to watch with SQL.
Refresh evaluates every rule once.
Auto-refresh: press the play button and enter the interval in seconds so rules re-evaluate on their own. When a rule meets its condition its row is flagged ALERT and the view footer counts how many are active. The shortest interval is one second. Re-evaluation stops when you press pause or leave the tool.
Load example adds a ready-made rule so you start from something that works.
MySQLMariaDBAuroraPostgreSQL
There is one: active connections above 100.
SQL Server
There are five, and each press adds the next one you don't have yet: blocked sessions, user sessions above 80 % of the maximum, transactions open over a minute, the database's transaction log above 80 %, and seconds spent waiting on locks since the server started. When you have all five, the button turns off.
ClickHouse
There are five, and each press adds the next one you don't have yet: memory in use as a percentage of the server limit, queries running now, replicas more than a minute behind, unfinished mutations that have already failed, and the partition with the most parts as a percentage of the limit at which the server rejects INSERTs. When you have all five, the button turns off.
Export saves the table —rules, values and status— as a tab-separated (TSV) file.
This tool sends no system notifications: the warning is the flagged row while the tab is open. For warnings that do reach the system, see the Server alerts and Replication monitor topics.
Oracle
There are five, and each press adds the next one you do not have yet: more than 20 user sessions running something now, blocked sessions, the fullest tablespace above 85 % of its maximum, invalid objects and sessions with the same call for more than a minute. Those that read V$SESSION or tablespace usage need the same privileges as Server Information: without them, the rule says Error. With all five in the list, the button turns off.
Keywords: SQL alerts, alert, threshold, rule, metric, watch, auto-refresh, interval, polling, monitor