--- apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: creationTimestamp: null labels: app: prometheus-operator release: prometheus-operator name: redis namespace: monitoring spec: groups: - name: redis.memory rules: - alert: RedisMemoryAlmostFull annotations: message: 'Redis memory is at {{ $value | humanizePercentage }} of maximum for 2 days in a row' expr: redis_memory_used_bytes/redis_memory_max_bytes > 0.8 for: 2d labels: severity: warning