Skip to content

Commit

Permalink
alert manager rule
Browse files Browse the repository at this point in the history
  • Loading branch information
marcel-dempers committed Feb 6, 2020
1 parent c5e73e2 commit b72228e
Showing 1 changed file with 21 additions and 0 deletions.
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

0 comments on commit b72228e

Please sign in to comment.