-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5e73e2
commit b72228e
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
prometheus-monitoring/kubernetes/1.14.8/prometheus-cluster-monitoring/prometheus-alerts.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
metadata: | ||
labels: | ||
prometheus: k8s | ||
role: alert-rules | ||
name: example-rule | ||
spec: | ||
groups: | ||
- name: example-rule | ||
rules: | ||
- alert: example-alert | ||
annotations: | ||
description: Memory on node {{ $labels.instance }} currently at {{ $value }}% | ||
is under pressure | ||
summary: Memory usage is under pressure, system may become unstable. | ||
expr: | | ||
100 - ((node_memory_MemAvailable_bytes{job="node-exporter"} * 100) / node_memory_MemTotal_bytes{job="node-exporter"}) > 70 | ||
for: 2m | ||
labels: | ||
severity: warning |