Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pxc-db] Add binlog-collector alerts #7591

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/pxc-db/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.2
version: 0.2.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
34 changes: 32 additions & 2 deletions common/pxc-db/templates/alerts/_backup.alerts.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,35 @@
playbook: ''
support_group: {{ required ".Values.alerts.support_group missing" .Values.alerts.support_group }}
annotations:
description: "{{ include "pxc-db.fullname" . }} cluster has no new backups completed earlier than 36 hours ago."
summary: "{{ include "pxc-db.fullname" . }} cluster has no new backups completed earlier than 36 hours ago."
description: "{{ include "pxc-db.fullname" . }} cluster has no new full backups completed earlier than 36 hours ago."
summary: "{{ include "pxc-db.fullname" . }} cluster has no new full backups completed earlier than 36 hours ago."

{{- if .Values.backup.pitr.enabled }}
- alert: {{ include "pxc-db.alerts.service" . | camelcase }}GaleraClusterBinlogProcessingTooOld
expr: (time() - pxc_binlog_collector_last_processing_timestamp > 1800)
for: 30m
labels:
context: database
service: {{ include "pxc-db.alerts.service" . }}
severity: info
tier: {{ required ".Values.alerts.tier missing" .Values.alerts.tier }}
playbook: ''
support_group: {{ required ".Values.alerts.support_group missing" .Values.alerts.support_group }}
annotations:
description: "More than 30 minutes passed since the last cluster {{ include "pxc-db.fullname" . }} binlog processing."
summary: "{{ include "pxc-db.fullname" . }} cluster binlog processing is too old."

- alert: {{ include "pxc-db.alerts.service" . | camelcase }}GaleraClusterBinlogUploadTooOld
expr: (time() - pxc_binlog_collector_last_upload_timestamp > 1800)
for: 30m
labels:
context: database
service: {{ include "pxc-db.alerts.service" . }}
severity: info
tier: {{ required ".Values.alerts.tier missing" .Values.alerts.tier }}
playbook: ''
support_group: {{ required ".Values.alerts.support_group missing" .Values.alerts.support_group }}
annotations:
description: "More than 30 minutes passed since the last cluster {{ include "pxc-db.fullname" . }} binlog upload."
summary: "{{ include "pxc-db.fullname" . }} cluster binlog upload is too old."
{{- end }}
Loading