diff --git a/README.md b/README.md index b500cb7..c5c241c 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,21 @@ Collection available here: **[https://samber.github.io/awesome-prometheus-alerts](https://samber.github.io/awesome-prometheus-alerts)** +
+
+ Sponsored by: +
+ +
+ Better Stack +
+
+ Better Stack lets you centralize, search, and visualize your logs. +
+
+
+
+ ## ✨ Contents - [Rules](#-rules) diff --git a/_data/rules.yml b/_data/rules.yml index 341fa81..8206d22 100644 --- a/_data/rules.yml +++ b/_data/rules.yml @@ -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" diff --git a/_layouts/default.html b/_layouts/default.html index 1a41b93..56f4a92 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -125,6 +125,18 @@ class="fa fa-linkedin" target="_blank"> + + +
diff --git a/assets/css/app.css b/assets/css/app.css index 81f18ee..e42ff66 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -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; +} \ No newline at end of file diff --git a/assets/sponsor-betterstack.png b/assets/sponsor-betterstack.png new file mode 100644 index 0000000..b0c12b0 Binary files /dev/null and b/assets/sponsor-betterstack.png differ diff --git a/dist/rules/mysql/mysqld-exporter.yml b/dist/rules/mysql/mysqld-exporter.yml index ad8ed5f..380fca3 100644 --- a/dist/rules/mysql/mysqld-exporter.yml +++ b/dist/rules/mysql/mysqld-exporter.yml @@ -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