Hi,
I want to know how to add multiple alerts in the same group name, for the Question 3 the rules.yaml file should be like below ?
groups:
- name: node
rules:- alert: NodeDown
expr: up{job=“nodes”} == 0
for: 10s
labels:
severity: critical
team: global-infra - alert: HostOutOfMemory
expr: node_memory_MemAvailable_bytes{job=“nodes”} / node_memory_MemTotal_bytes{job=“nodes”} * 100 < 10
labels:
severity: warning
team: internal-infra
annotations:
message: “node {{.Labels.instance}} is seeing high memory usage, currently available memory: {{.Value}}%”
- alert: NodeDown
Multiple alerts under same rule for the group or we need to create different rule… need help here.