Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/operations/observability/mixins/self-hosted/rules/observability-stack/alertmanager.yaml
3611 views
1
# Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2
# Licensed under the GNU Affero General Public License (AGPL).
3
# See License.AGPL.txt in the project root for license information.
4
5
apiVersion: monitoring.coreos.com/v1
6
kind: PrometheusRule
7
metadata:
8
labels:
9
app.kubernetes.io/name: kubernetes
10
app.kubernetes.io/part-of: kube-prometheus
11
prometheus: k8s
12
role: alert-rules
13
name: alertmanager-monitoring-rules
14
namespace: monitoring-satellite
15
spec:
16
groups:
17
- name: alertmanager
18
rules:
19
- alert: AlertmanagerFailedReload
20
annotations:
21
description: Configuration has failed to load for {{ $labels.namespace }}/{{ $labels.pod}}.
22
summary: Reloading an Alertmanager configuration has failed.
23
expr: |
24
# Without max_over_time, failed scrapes could create false negatives, see
25
# https://www.robustperception.io/alerting-on-gauges-in-prometheus-2-0 for details.
26
max_over_time(alertmanager_config_last_reload_successful{job="alertmanager-main",namespace="monitoring-satellite"}[5m]) == 0
27
for: 10m
28
labels:
29
severity: critical
30
team: delivery-operations-experience
31
- alert: AlertmanagerFailedToSendAlerts
32
annotations:
33
description: Alertmanager {{ $labels.namespace }}/{{ $labels.pod}} failed to send {{ $value | humanizePercentage }} of notifications to {{ $labels.integration }}.
34
summary: An Alertmanager instance failed to send notifications.
35
expr: |
36
(
37
rate(alertmanager_notifications_failed_total{job="alertmanager-main",namespace="monitoring-satellite"}[5m])
38
/
39
rate(alertmanager_notifications_total{job="alertmanager-main",namespace="monitoring-satellite"}[5m])
40
)
41
> 0.01
42
for: 5m
43
labels:
44
severity: warning
45
team: delivery-operations-experience
46
47