You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- alert: MysqlDownexpr: mysql_up == 0for: 5mlabels:
severity: criticalannotations:
summary: "MySQL down (instance {{ $labels.instance }})"description: "MySQL instance is down on {{ $labels.instance }}\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"
MySQL too many connections
More than 80% of MySQL connections are in use on {{ $labels.instance }}
- alert: MysqlTooManyConnectionsexpr: avg by (instance) (max_over_time(mysql_global_status_threads_connected[5m])) / avg by (instance) (mysql_global_variables_max_connections) * 100 > 80for: 5mlabels:
severity: warningannotations:
summary: "MySQL too many connections (instance {{ $labels.instance }})"description: "More than 80% of MySQL connections are in use on {{ $labels.instance }}\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"
MySQL high threads running
More than 60% of MySQL connections are in running state on {{ $labels.instance }}
- alert: MysqlHighThreadsRunningexpr: avg by (instance) (max_over_time(mysql_global_status_threads_running[5m])) / avg by (instance) (mysql_global_variables_max_connections) * 100 > 60for: 5mlabels:
severity: warningannotations:
summary: "MySQL high threads running (instance {{ $labels.instance }})"description: "More than 60% of MySQL connections are in running state on {{ $labels.instance }}\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"
MySQL Slave IO thread not running
MySQL Slave IO thread not running on {{ $labels.instance }}
- alert: MysqlSlaveIoThreadNotRunningexpr: mysql_slave_status_master_server_id > 0 and ON (instance) mysql_slave_status_slave_io_running == 0for: 5mlabels:
severity: criticalannotations:
summary: "MySQL Slave IO thread not running (instance {{ $labels.instance }})"description: "MySQL Slave IO thread not running on {{ $labels.instance }}\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"
MySQL Slave SQL thread not running
MySQL Slave SQL thread not running on {{ $labels.instance }}
- alert: MysqlSlaveSqlThreadNotRunningexpr: mysql_slave_status_master_server_id > 0 and ON (instance) mysql_slave_status_slave_sql_running == 0for: 5mlabels:
severity: criticalannotations:
summary: "MySQL Slave SQL thread not running (instance {{ $labels.instance }})"description: "MySQL Slave SQL thread not running on {{ $labels.instance }}\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"
MySQL Slave replication lag
MysqL replication lag on {{ $labels.instance }}
- alert: MysqlSlaveReplicationLagexpr: mysql_slave_status_master_server_id > 0 and ON (instance) (mysql_slave_status_seconds_behind_master - mysql_slave_status_sql_delay) > 300for: 5mlabels:
severity: warningannotations:
summary: "MySQL Slave replication lag (instance {{ $labels.instance }})"description: "MysqL replication lag on {{ $labels.instance }}\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"
MySQL slow queries
MySQL server is having some slow queries.
- alert: MysqlSlowQueriesexpr: mysql_global_status_slow_queries > 0for: 5mlabels:
severity: warningannotations:
summary: "MySQL slow queries (instance {{ $labels.instance }})"description: "MySQL server is having some slow queries.\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"
MySQL restarted
MySQL has just been restarted, less than one minute ago on {{ $labels.instance }}.
- alert: MysqlRestartedexpr: mysql_global_status_uptime < 60for: 5mlabels:
severity: warningannotations:
summary: "MySQL restarted (instance {{ $labels.instance }})"description: "MySQL has just been restarted, less than one minute ago on {{ $labels.instance }}.\n VALUE = {{ $value }}\n LABELS: {{ $labels }}"