mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-26 19:37:27 +08:00
fixed erroneous usage of rate() function on gauges
This commit is contained in:
parent
37722256d5
commit
8468966ea0
1 changed files with 2 additions and 2 deletions
|
|
@ -494,12 +494,12 @@ groups:
|
||||||
severity: critical
|
severity: critical
|
||||||
- name: MySQL too many connections (> 80%)
|
- name: MySQL too many connections (> 80%)
|
||||||
description: 'More than 80% of MySQL connections are in use on {{ $labels.instance }}'
|
description: 'More than 80% of MySQL connections are in use on {{ $labels.instance }}'
|
||||||
query: 'avg by (instance) (rate(mysql_global_status_threads_connected[1m])) / avg by (instance) (mysql_global_variables_max_connections) * 100 > 80'
|
query: 'max_over_time(mysql_global_status_threads_connected[1m]) / mysql_global_variables_max_connections * 100 > 80'
|
||||||
severity: warning
|
severity: warning
|
||||||
for: 2m
|
for: 2m
|
||||||
- name: MySQL high threads running
|
- name: MySQL high threads running
|
||||||
description: 'More than 60% of MySQL connections are in running state on {{ $labels.instance }}'
|
description: 'More than 60% of MySQL connections are in running state on {{ $labels.instance }}'
|
||||||
query: 'avg by (instance) (rate(mysql_global_status_threads_running[1m])) / avg by (instance) (mysql_global_variables_max_connections) * 100 > 60'
|
query: 'max_over_time(mysql_global_status_threads_running[1m]) / mysql_global_variables_max_connections * 100 > 60'
|
||||||
severity: warning
|
severity: warning
|
||||||
for: 2m
|
for: 2m
|
||||||
- name: MySQL Slave IO thread not running
|
- name: MySQL Slave IO thread not running
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue