mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-27 03:47:07 +08:00
Merge branch 'samber:master' into master
This commit is contained in:
commit
0c2876e37d
6 changed files with 67 additions and 0 deletions
15
README.md
15
README.md
|
|
@ -4,6 +4,21 @@
|
||||||
|
|
||||||
Collection available here: **[https://samber.github.io/awesome-prometheus-alerts](https://samber.github.io/awesome-prometheus-alerts)**
|
Collection available here: **[https://samber.github.io/awesome-prometheus-alerts](https://samber.github.io/awesome-prometheus-alerts)**
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<hr>
|
||||||
|
<sup><b>Sponsored by:</b></sup>
|
||||||
|
<br>
|
||||||
|
<a href="https://betterstack.com">
|
||||||
|
<div>
|
||||||
|
<img src="https://samber.github.io/awesome-prometheus-alerts/assets/sponsor-betterstack.png" width="200" alt="Better Stack">
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
Better Stack lets you centralize, search, and visualize your logs.
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<hr>
|
||||||
|
</div>
|
||||||
|
|
||||||
## ✨ Contents
|
## ✨ Contents
|
||||||
|
|
||||||
- [Rules](#-rules)
|
- [Rules](#-rules)
|
||||||
|
|
|
||||||
|
|
@ -595,6 +595,11 @@ groups:
|
||||||
query: "max_over_time(mysql_global_status_threads_connected[1m]) / 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 prepared statements utilization (> 80%)
|
||||||
|
description: "High utilization of prepared statements (>80%) on {{ $labels.instance }}"
|
||||||
|
query: "max_over_time(mysql_global_status_prepared_stmt_count[1m]) / mysql_global_variables_max_prepared_stmt_count * 100 > 80"
|
||||||
|
severity: warning
|
||||||
|
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: "max_over_time(mysql_global_status_threads_running[1m]) / mysql_global_variables_max_connections * 100 > 60"
|
query: "max_over_time(mysql_global_status_threads_running[1m]) / mysql_global_variables_max_connections * 100 > 60"
|
||||||
|
|
|
||||||
|
|
@ -125,6 +125,18 @@
|
||||||
class="fa fa-linkedin" target="_blank"></a>
|
class="fa fa-linkedin" target="_blank"></a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
<ul id="sponsoring">
|
||||||
|
<li>
|
||||||
|
Kindly supported by 👉
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="https://betterstack.com/">
|
||||||
|
<img width="" src="assets/sponsor-betterstack.png" />
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main id="content" class="main-content" role="main">
|
<main id="content" class="main-content" role="main">
|
||||||
|
|
|
||||||
|
|
@ -115,3 +115,29 @@ h2 {
|
||||||
max-width: 85rem;
|
max-width: 85rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ul#sponsoring {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin-top: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul#sponsoring li {
|
||||||
|
display: flex;
|
||||||
|
padding: 0px 15px;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul#sponsoring li a {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul#sponsoring li a img {
|
||||||
|
max-width: 180px;
|
||||||
|
max-height: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-header {
|
||||||
|
padding-bottom: 30px;
|
||||||
|
}
|
||||||
BIN
assets/sponsor-betterstack.png
Normal file
BIN
assets/sponsor-betterstack.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
9
dist/rules/mysql/mysqld-exporter.yml
vendored
9
dist/rules/mysql/mysqld-exporter.yml
vendored
|
|
@ -22,6 +22,15 @@ groups:
|
||||||
summary: MySQL too many connections (> 80%) (instance {{ $labels.instance }})
|
summary: MySQL too many connections (> 80%) (instance {{ $labels.instance }})
|
||||||
description: "More than 80% of MySQL connections are in use on {{ $labels.instance }}\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
description: "More than 80% of MySQL connections are in use on {{ $labels.instance }}\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||||
|
|
||||||
|
- alert: MysqlHighPreparedStatementsUtilization(>80%)
|
||||||
|
expr: 'max_over_time(mysql_global_status_prepared_stmt_count[1m]) / mysql_global_variables_max_prepared_stmt_count * 100 > 80'
|
||||||
|
for: 2m
|
||||||
|
labels:
|
||||||
|
severity: warning
|
||||||
|
annotations:
|
||||||
|
summary: MySQL high prepared statements utilization (> 80%) (instance {{ $labels.instance }})
|
||||||
|
description: "High utilization of prepared statements (>80%) on {{ $labels.instance }}\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
|
||||||
|
|
||||||
- alert: MysqlHighThreadsRunning
|
- alert: MysqlHighThreadsRunning
|
||||||
expr: 'max_over_time(mysql_global_status_threads_running[1m]) / mysql_global_variables_max_connections * 100 > 60'
|
expr: 'max_over_time(mysql_global_status_threads_running[1m]) / mysql_global_variables_max_connections * 100 > 60'
|
||||||
for: 2m
|
for: 2m
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue