Skip to content

Commit

Permalink
fix(mariadb): metric was renamed (#5339)
Browse files Browse the repository at this point in the history
fix(mariadb): rename metric in alert

mysql_info_schema_threads_seconds > mysql_info_schema_processlist_seconds
see prometheus/mysqld_exporter#603
  • Loading branch information
IvoGoman authored Sep 18, 2023
1 parent 143b852 commit 64d197e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/mariadb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
description: A Helm chart for Kubernetes
name: mariadb
version: 0.7.13
version: 0.7.14
2 changes: 1 addition & 1 deletion common/mariadb/templates/alerts/_mysql.alerts.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
summary: {{ include "fullName" . }} reports slow queries.

- alert: {{ include "alerts.service" . | title }}MariaDBWaitingForLock
expr: (mysql_info_schema_threads_seconds{app=~"{{ include "fullName" . }}", state=~"waiting for lock"} / 1000 > 15)
expr: (mysql_info_schema_processlist_seconds{app=~"{{ include "fullName" . }}", state=~"waiting for lock"} / 1000 > 15)
for: 10m
labels:
context: database
Expand Down

0 comments on commit 64d197e

Please sign in to comment.