Merge branch 'samber:master' into master

This commit is contained in:
guruevi 2024-04-11 17:37:20 -04:00 committed by GitHub
commit 0c2876e37d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 67 additions and 0 deletions

View file

@ -4,6 +4,21 @@
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
- [Rules](#-rules)

View file

@ -595,6 +595,11 @@ groups:
query: "max_over_time(mysql_global_status_threads_connected[1m]) / mysql_global_variables_max_connections * 100 > 80"
severity: warning
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
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"

View file

@ -125,6 +125,18 @@
class="fa fa-linkedin" target="_blank"></a>
</li>
</ul>
<ul id="sponsoring">
<li>
Kindly supported by&nbsp; 👉
</li>
<li>
<a href="https://betterstack.com/">
<img width="" src="assets/sponsor-betterstack.png" />
</a>
</li>
</ul>
</header>
<main id="content" class="main-content" role="main">

View file

@ -115,3 +115,29 @@ h2 {
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;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -22,6 +22,15 @@ groups:
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 }}"
- 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
expr: 'max_over_time(mysql_global_status_threads_running[1m]) / mysql_global_variables_max_connections * 100 > 60'
for: 2m