This chapter lists the default thresholds the plug-in ships and how to change them. Topics: 7.1 Default thresholds · 7.2 Changing thresholds
7.1 Default thresholds
Section titled “7.1 Default thresholds”The plug-in ships 43 default metric thresholds, listed below, plus 4 availability conditions (the Status column of each target type’s Response metric, which drive the target’s Up/Down state and are not shown here).
| Target type | Metric group | Column | Operator | Warning | Critical | Consecutive occurrences |
|---|---|---|---|---|---|---|
ip_mysql_database | Response | Reason | matches | ^(AUTH_FAILED|ACCOUNT_LOCKED|PASSWORD_EXPIRED|KERBEROS_TICKET)$ | 2 | |
ip_mysql_database | ReplicationReplicaActivity | seconds_behind_source | > | 30 | 300 | 1 |
ip_mysql_database | ReplicationReplicaActivity | time_lag_status | matches | ^CLOCK_SKEW$ | 2 | |
ip_mysql_database | ReplicationReplicaActivity | replica_io_running | = | No | 1 | |
ip_mysql_database | ReplicationReplicaActivity | replica_sql_running | = | false | 1 | |
ip_mysql_database | InnodbBufferPool | innodb_bp_hit_rate | < | 95 | 90 | 1 |
ip_mysql_database | InnodbTransaction | innodb_trx_history_list_length | > | 100000 | 1000000 | 1 |
ip_mysql_database | ConnectionActivity | aborted_connects_delta | > | 10 | 50 | 1 |
ip_mysql_database | ThreadsActivity | connection_saturation_pct | > | 80 | 95 | 1 |
ip_mysql_database | TableActivity | disk_tmp_table_pct | > | 25 | 50 | 1 |
ip_mysql_database | SysSchemaStatus | sys_supported | < | 1 | 1 | |
ip_mysql_database | BackupStatus | hours_since_last_success | > | 26 | 50 | 1 |
ip_mysql_database | BackupStatus | last_backup_failed | > | 0 | 1 | |
ip_mysql_database | BackupStatus | never_succeeded | > | 0 | 1 | |
ip_mysql_database | WaitProfile | avg_wait_us | > | 1000000 | 5000000 | 3 |
ip_mysql_database | WaitProfileSummary | top_wait_class | = | lock | 5 | |
ip_mysql_database | License | licensed | < | 1 | 1 | |
ip_mysql_database | License | days_remaining | < | 30 | 7 | 1 |
ip_mysql_database | CollectorStatus | Status | matches | COLLECTION_ERROR | 2 | |
ip_mysql_cluster | Response | Reason | matches | ^(AUTH_FAILED|ACCOUNT_LOCKED|PASSWORD_EXPIRED|KERBEROS_TICKET)$ | 2 | |
ip_mysql_cluster | GroupMemberStats | count_transactions_remote_in_applier_queue | > | 100 | 1000 | 1 |
ip_mysql_cluster | GroupMemberStats | count_transactions_in_queue | > | 100 | 1000 | 1 |
ip_mysql_cluster | GrConsensus | avg_consensus_time_us | > | 100000 | 1000000 | 1 |
ip_mysql_cluster | BackupSource | source_offline | > | 0 | 1 | |
ip_mysql_cluster | ClusterHealth | fault_tolerance | matches | ^(NO_TOLERANCE|PARTIAL|UNREACHABLE|INVALIDATED|FENCED_WRITES|OTHER|ASSESSMENT_FAILED)$ | ^(NO_QUORUM|OFFLINE|ERROR)$ | 2 |
ip_mysql_cluster | ClusterHealth | fallback_reason | matches | ^(AUTH_FAILED|TIMEOUT|UNREACHABLE|MEMBER_UNREACHABLE|GROUP_REPLICATION_INACTIVE|KERBEROS_TICKET|KERBEROS_CONFIG_UNREADABLE|TLS_TRUSTSTORE_REQUIRED|TLS_VERIFY_FAILED|PARSE_FAILED)$ | 2 | |
ip_mysql_cluster | CollectorStatus | Status | matches | COLLECTION_ERROR | 2 | |
ip_mysql_clusterset | Response | Reason | matches | ^(AUTH_FAILED|ACCOUNT_LOCKED|PASSWORD_EXPIRED|KERBEROS_TICKET)$ | 2 | |
ip_mysql_clusterset | ClusterSetHealth | dr_promotion_ready | = | 0 | 2 | |
ip_mysql_clusterset | ClusterSetHealth | fallback_reason | matches | ^(AUTH_FAILED|TIMEOUT|UNREACHABLE|MEMBER_UNREACHABLE|KERBEROS_TICKET|KERBEROS_CONFIG_UNREADABLE|TLS_TRUSTSTORE_REQUIRED|TLS_VERIFY_FAILED|PARSE_FAILED)$ | 2 | |
ip_mysql_clusterset | ClusterSetHealth | health_stale_since | matches | ^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2} UTC$ | 1 | |
ip_mysql_clusterset | ClusterSetClusters | fault_tolerance | matches | ^(NO_TOLERANCE|PARTIAL|UNREACHABLE|INVALIDATED|FENCED_WRITES|OTHER)$ | ^(NO_QUORUM|OFFLINE|ERROR)$ | 2 |
ip_mysql_clusterset | ClusterSetClusters | time_lag_seconds | > | 30 | 300 | 2 |
ip_mysql_clusterset | ClusterSetClusters | time_lag_status | matches | ^CLOCK_SKEW$ | 2 | |
ip_mysql_clusterset | CollectorStatus | Status | matches | COLLECTION_ERROR | 2 | |
ip_mysql_router | RouterStatus | uptime_seconds | < | 600 | 1 | |
ip_mysql_router | RouterStatus | connection_headroom_pct | < | 10 | 2 | 1 |
ip_mysql_router | MetadataCache | seconds_since_last_success | > | 60 | 300 | 1 |
ip_mysql_router | MetadataCache | refresh_failed_delta | > | 0 | 3 | |
ip_mysql_router | Routes | is_alive | < | 1 | 1 | |
ip_mysql_router | Routes | destination_count | < | 1 | 1 | |
ip_mysql_router | Routes | blocked_hosts | > | 0 | 1 | |
ip_mysql_router | CollectorStatus | Status | matches | COLLECTION_ERROR | 2 |
The two wait thresholds, and why they are shaped the way they are. Wait time is the one signal on this list that scales with how busy a server is, so an absolute total would fire on every healthy production system and stay quiet on a small one. Both shipped wait thresholds therefore avoid totals:
WaitProfile.avg_wait_usis an average per wait, over non-idle events only, so it does not grow with traffic. An event averaging more than a second is blocked on something rather than merely popular. It needs three consecutive collections to fire, which is what stops a single slow wait on a quiet server from raising an incident on its own: on a target collecting one event a minute, one unlucky wait would otherwise be the whole average for that minute.WaitProfileSummary.top_wait_classis the dominant-wait signal. It reports the class of the single event holding the most wait time in the interval, so it is independent of load by construction, and it warns when that class islockfor five consecutive collections. Sustained lock dominance means sessions are queueing on each other rather than working. It is a warning and never a critical, because a write-heavy server can legitimately show lock at the top for a minute or two; the five-collection requirement, not the value, is what makes it meaningful.
What lock covers. The class comes from the event name, and InnoDB charges a row-lock wait to
wait/io/table/sql/handler, which is class io. A top_wait_class of lock therefore reflects table locks
(wait/lock/table/sql/handler) and metadata locks (wait/lock/metadata/sql/mdl) only. Both of those instruments are
enabled by default, so the threshold fires on sustained table or metadata lock contention; row-lock contention reaches
this signal as class io and is better watched on the InnoDB Row Lock Waits page (5.1). The wait/synch/* instruments
are disabled by default, which is why no synch threshold ships beside these two: synch cannot lead until you enable
them in the Performance Schema.
Both are starting points in the sense 7.2 describes. On a server whose normal state is lock-dominated by design, raise the occurrence count or clear the threshold rather than living with a standing warning.
The time lag thresholds. On a MySQL Database target, Seconds Behind Source is the lag alert for asynchronous replicas (warning above 30 seconds, critical above 300), and Time Lag (time_lag_seconds, 6.4) is shown beside it with no threshold. On a ClusterSet target, each replica cluster’s Time Lag on ClusterSet Clusters warns above 30 seconds and is critical above 300, after two collections in a row, so one large transaction does not raise an incident. It reads an empty value as not observed: an open incident stays open until a collection measures the lag again. A stopped applier raises its own alert through replica_sql_running on a Database target.
Time Lag Status raises a WARNING when it reads CLOCK_SKEW, after two collections in a row, on a MySQL Database target and, per replica cluster, on a ClusterSet target. The message names the replica and the size of the skew, and the alert clears on the next collection that reads any other status.
The two ClusterSet thresholds. Both need two consecutive 5-minute collections, so one sample taken while a replication channel reconnects does not raise an incident.
-
ClusterSetHealth.dr_promotion_readyis CRITICAL when the value is 0: MySQL Shell assessed the ClusterSet and at least one readiness check failed. It does not fire on -1, which means readiness was not assessed (the repository rollup, or MySQL Shell could not be used;health_statusreadsUNKNOWN). When the value moves from 0 to -1 the incident clears, and the clear message says only that no failure is being reported: checkhealth_statusfor the current verdict. -
ClusterSetHealth.fallback_reasonis a WARNING when MySQL Shell could not be used because of a fault an operator can fix, and the message names the reason. It fires forAUTH_FAILED,TIMEOUT,UNREACHABLE,MEMBER_UNREACHABLE,KERBEROS_TICKET,KERBEROS_CONFIG_UNREADABLE,TLS_TRUSTSTORE_REQUIRED,TLS_VERIFY_FAILEDandPARSE_FAILED. It does not fire for the reasons that describe how the target is set up rather than a failure:MYSQLSH_NOT_FOUND,SOCKET_CONNECTION,KERBEROS_NOT_SUPPORTEDandKERBEROS_CLIENT_UNAVAILABLE. A target that is not part of a ClusterSet (NOT_A_CLUSTERSET) reports no row, so there is nothing for the alert to fire on. When MySQL Shell succeeds the value isNONE, and the WARNING clears on that collection. Each fault in that list also raises Collector Status CRITICALs (6.5). Troubleshooting gives the remedy for each. -
ClusterSetHealth.health_stale_sinceis a WARNING when the ClusterSet had a MySQL Shell verdict (READY or NOT_READY) before and the last three collections in a row returned none. The column readsNONEwhile health is current and holds the UTC time of the last verdict once it is stale, so the message names that time. It clears on the next verdict. A target that never had a verdict (no MySQL Shell on the agent host, a socket connection) never fires.A target whose Health Source Mode is
JDBC_METADATAnever asks MySQL Shell for a verdict, so nothing is counted: the column readsNONEand the alert never fires. InAUTOthe count continues when the members are read over JDBC because MySQL Shell failed. -
ClusterSetClusters.fault_toleranceandClusterHealth.fault_tolerancecarry the same condition, on the ClusterSet target per cluster and on the Cluster target for its own cluster. CRITICAL forNO_QUORUM,OFFLINEandERROR; WARNING forNO_TOLERANCE,PARTIAL,UNREACHABLE,INVALIDATED,FENCED_WRITESandOTHER.OKandNOT_ASSESSEDmatch neither, so the incident clears on the nextOKand a target without MySQL Shell never fires.UNREACHABLEon a replica cluster is also the value for a cluster the agent cannot reach. The status text tells a running cluster from a down one (2.2). Both health sources read it from the primary cluster’s primary, so the WARNING is the same onJDBC_METADATAas onADMINAPI. On the JDBC read it applies only to a cluster whose members were tried (2.2). Both need two collections in a row (5.2 lists what each value means). -
ClusterHealth.fault_toleranceis also a WARNING forASSESSMENT_FAILED, the value reported when MySQL Shell is installed and fails. An incident that is open forNO_QUORUMtherefore steps down to WARNING and stays open when the cluster stops answering MySQL Shell; it does not clear. A ClusterSet target reports no per-cluster rows while MySQL Shell fails, soASSESSMENT_FAILEDdoes not occur there, and the stale-health condition above covers that case. -
Response.Reasonis CRITICAL forAUTH_FAILED,ACCOUNT_LOCKED,PASSWORD_EXPIREDandKERBEROS_TICKET, on the MySQL Database, Cluster and ClusterSet target types. The target is Down in each case, and this incident says that the monitoring login failed, where the target-down event alone would read as an outage.NONE(the target is up) and the reachability reasonsNETWORK,TIMEOUT,TLS,TLS_REQUIRED_BY_SERVERandOTHERmatch nothing, so the incident clears when the login works again or the fault becomes a plain outage. The message carries the reason and never a credential. The Troubleshooting page lists every reason under Connecting to MySQL. -
ClusterHealth.fallback_reasonis a WARNING when MySQL Shell could not be used on a Cluster target because of a fault an operator can fix. It fires for the same reasons as the ClusterSet condition above and forGROUP_REPLICATION_INACTIVE. It does not fire forMYSQLSH_NOT_FOUND,SOCKET_CONNECTION,KERBEROS_NOT_SUPPORTED,KERBEROS_CLIENT_UNAVAILABLEorNOT_A_CLUSTER. It fires for exactly the reasons that makeClusterHealth.fault_tolerancereadASSESSMENT_FAILED, so a Cluster target whose MySQL Shell fails has two warnings open: this one names the cause, and the fault-tolerance one holds any incident that was already open. The same fault also raises the Collector Status CRITICAL forClusterHealth(6.5). -
The stale count is a target property. The collector does the counting, so the condition uses one occurrence; change the count with the Health Stale After property, not with Number of Occurrences.
health_stalecarries the same state as a number: 1 stale, 0 not stale, -1 when the staleness step itself failed. -
What the stale condition does not cover. A collection that fails with an error returns no row; Enterprise Manager raises its own metric collection error and this condition is not evaluated. A target that is no longer part of a ClusterSet also returns no row. The record of the last verdict is kept in the plug-in’s cache file on the agent host and starts over after a plug-in upgrade or when that file is removed: an open Health Stale incident then clears, and the target must return a verdict again before it can go stale.
The Collector Status threshold. CollectorStatus.Status is CRITICAL when it matches COLLECTION_ERROR, on all four target types, after two collections in a row. The group is collected every 5 minutes, also while the target is down, so the incident appears about 10 minutes after a group starts failing. Each metric group raises its own incident, because MetricGroup is the key, and the message names the group and the reason: Collection of the <group> metric group is failing on this MySQL database target: <reason>. The incident clears on the first collection after which the group’s status is anything else.
The other five words never alert: NOT_CONFIGURED, NOT_COLLECTED_YET, NO_DATA and DISABLED describe the server or the setup, and OK is the healthy state. While the target does not answer, other groups’ errors read NOT_COLLECTED_YET, so the target-down event stays the one alert (6.5). Troubleshooting lists what to check for a group that reads COLLECTION_ERROR.
The MySQL Router thresholds. The Router target raises its incidents on itself; Enterprise Manager does not copy them to the Cluster or ClusterSet target. Read them together with the Router pages (5.4).
RouterStatus.uptime_secondsis a WARNING when it is below 600, the signal that the Router restarted. The age is measured on the Router’s own clock, so a clock difference between the agent host and the Router host does not distort it. The WARNING clears at the first collection after the Router has run for 10 minutes. A restart also resets the Router’s counters, so the delta columns report no value for the interval in which it happened.RouterStatus.connection_headroom_pctis a WARNING below 10 and CRITICAL below 2, and only when the Router reports a maximum for its client connections.MetadataCache.seconds_since_last_successis a WARNING above 60 seconds and CRITICAL above 300: the Router is routing on a topology it has not refreshed.MetadataCache.refresh_failed_deltais a WARNING when refreshes fail on 3 collections in a row. The alert message names both possible causes of a failing refresh, the network path from the Router to the MySQL servers that hold the metadata and the Router’s own metadata account being locked or denied, because the REST API shows the two identically. Only the Router’s log tells them apart.Routes.is_aliveandRoutes.destination_countare CRITICAL when a route is not alive or has no destinations: clients cannot get through that route. When a Router loses every metadata server it closes its routing ports, yet its REST API keeps answering, so the target stays Up and these two conditions carry the signal.- A partial loss is reported late. When a route loses its only destination while the Router can still reach the metadata servers,
is_aliveturns to 0 only after a client attempt through that route fails, anddestination_countdoes not drop. The plug-in sends no probe connection of its own, because a probe would add failed connections to the server’s count. Routes.blocked_hostsis a WARNING when above 0. A Router blocks a client host aftermax_connect_errorsmalformed handshakes from it (100 by default). Clean connections that open and close do not count toward that limit. A block is cleared only by restarting the Router: the REST API has no call that clears it, so the WARNING stays until the restart.- Failed client connections are counted on the database, not on the Router. The Router’s REST API has no counter of them. The database server counts a failed login that came through a Router in
aborted_connects_deltaon its MySQL Database target, and attributes it to the Router’s address rather than to the client’s.
7.2 Changing thresholds
Section titled “7.2 Changing thresholds”The shipped values are starting points sized for lab workloads, not tuning. Review each one against your own service levels and change the ones that do not fit.
Thresholds live on the target, and you edit them from Metric and Collection Settings:
-
From the target’s home page, choose the target-type menu → Monitoring → Metric and Collection Settings.
-
Set the View list to All metrics so that columns without a current threshold are listed too.

-
Find the metric group and column. 7.1 gives both names for every shipped threshold, and the metrics reference (6.1) gives them for every other column.
-
Edit Warning Threshold and Critical Threshold on the row, or click the row’s edit icon for the full editor.
-
Set Number of Occurrences if the condition should have to hold for more than one collection before it raises an incident. Most shipped thresholds use one occurrence; the exceptions are
dr_promotion_ready,fallback_reasonand Collector StatusStatus(two each),avg_wait_us(three) andtop_wait_class(five), for the reasons 7.1 gives. -
Click OK to save. The new value applies from the next collection.
Done when get_threshold reports the new value for the target:
emcli get_threshold -target_name="mysql84-prod-01" -target_type="ip_mysql_database"Clearing a threshold field removes the threshold: the column keeps collecting and stops alerting. The same page changes a group’s collection schedule, and can stop a group collecting altogether. Use that rather than deleting a target when you want to quiet a metric group.
Note: A threshold edited this way is an override on that one target, and applying a monitoring template to the target replaces it with the template’s value. Where a value should hold across a fleet, put it in a monitoring template (Enterprise → Monitoring → Monitoring Templates, created from a MySQL target and applied to a group) rather than editing targets one at a time and having the next template apply undo the work.

