Configuring Alarm Rules for MySQL Monitoring

Configuring Alarm Rules for MySQL Monitoring

Database Monitoring

Configuring Alarm Rules for MySQL Monitoring

Set up threshold-based alarms for MySQL instances and databases so Cloudmon notifies your team or triggers automated remediation when a metric breaches its defined limit.

Overview

MySQL monitoring in Cloudmon covers the full instance hierarchy: the MySQL server instance at the top level and individual databases within that instance. Alarm rules can be configured at the instance level for server-wide metrics such as connections, query performance, and replication health, and at the database level for storage and per-database activity metrics.

There are two ways to configure alarm rules for MySQL databases:

  • Group level: Navigate to Settings → Configurations → Alarm Rules → Add, select the entity type (MySQL Instance or MySQL Database), add triggers, and associate the rule to a group.
  • Individual entity: Navigate to the specific MySQL instance or database detail page and access its Settings to add triggers directly.

How to Configure an Alarm

Each alarm is built around a simple IF/THEN model, where you select a metric, set a threshold, and define what happens when it is breached. Learn more.

Common Use Cases

Below are recommended alarm configurations for the most common MySQL monitoring scenarios:

Use CaseEntity LevelMetricSuggested ThresholdWhy
Connection pool nearing exhaustionInstanceActive ConnectionsAbove 90% of max connections for 2 intervalsWhen MySQL reaches its connection limit, new connection attempts fail with "Too many connections". Catching this early identifies connection leaks or sudden load spikes before applications start returning errors to users.
Slow query rate increasingInstanceSlow Queries per secondAbove 5 for 3 intervalsA rising slow query rate indicates missing indexes, locking contention, or a problematic query introduced by a recent code deployment that is degrading overall database performance.
Replication lag growingInstanceReplication LagAbove 30 seconds for 2 intervalsReplication lag means read replicas are serving stale data. High lag can cause data consistency issues for read-heavy applications and make failover unreliable if the replica falls too far behind the primary.
InnoDB buffer pool pressureInstanceBuffer Pool UtilisationAbove 95% for 3 intervalsWhen the InnoDB buffer pool is full, MySQL evicts cached pages more aggressively, increasing disk I/O and degrading query performance. Sustained high utilisation indicates the buffer pool size needs to be increased.
Instance uptime reset unexpectedlyInstanceUptimeBelow previous value for 1 intervalAn unexpected MySQL restart can indicate a crash caused by a memory issue, a corrupted table, or an OOM kill by the OS. Immediate alerting on uptime reset allows the team to investigate before the cause is lost from logs.
Database storage growing rapidlyDatabaseDatabase SizeAbove expected baseline for 2 intervalsRapid growth in a specific database can indicate a runaway logging process, unbounded table growth, or missing purge jobs that will eventually fill the disk and take the entire MySQL instance offline.

Viewing and Managing Triggers

Once saved, all triggers for a MySQL entity are listed in the Triggers table under the Alarm Rule section in that entity's Settings. Each row shows the trigger title, alarm severity, notification configuration, and whether a script is set to run. Triggers can be edited or deleted at any time using the action icons on the right.

To apply consistent alarm coverage across all MySQL instances without configuring each one individually, save the rule as a reusable template under Settings → Configurations → Alarm Rules and associate it to a group.

    • Related Articles

    • Configuring Alarm Rules for Plugins

      Server Monitoring Configuring Alarm Rules for Plugins Set up threshold-based alarms for any plugin running on your monitored servers or devices, so Cloudmon notifies your team or triggers automated remediation the moment a plugin metric or status ...
    • How to Configuring Alarm Rules

      Alarms How to Configuring Alarm Rules Create and manage alarm rules for any monitored entity in Cloudmon. Define threshold-based triggers, configure notifications and automated remediation, associate rules to device groups, and manage default alarm ...
    • Configuring Alarm Rules for Wireless Monitoring

      Wireless Monitoring Configuring Alarm Rules for Wireless Monitoring Set up threshold-based alarms for wireless LAN controllers, access points, SSIDs, and clients so Cloudmon alerts your team the moment a wireless metric or availability condition ...
    • Configuring Alarm Rules for Agent Monitoring

      Setup Guide Configuring Alarm Rules for Agent Monitoring Set up alarms to be notified when your monitored devices exceed defined thresholds. Alarm rules can be configured at a group level or directly on individual agents. Overview Cloudmon ...
    • Configuring Alarm Rules for Meraki Monitoring

      Meraki Monitoring Configuring Alarm Rules for Meraki Monitoring Set up alarms for Meraki organizations and devices so Cloudmon notifies your team when availability drops, license status changes, or device health metrics breach defined thresholds. ...