이제 두 가지 "경고" 및 "중요" 경고 규칙이 있습니다. 엔터티를 생성하지 않도록 어떤 방식으로든 결합할 수 있나요?
- alert: Proxysql latency check
expr: metric1 > 1
for: 30s
labels:
severity: warning
instance: "{{ $labels.node_name }}"
label: name-channel
annotations:
summary: "Info"
- alert: Proxysql latency check
expr: metric1 > 5
for: 30s
labels:
severity: critical
instance: "{{ $labels.node_name }}"
label: name-channel
annotations:
summary: "Info"
내가 제시하는 방법의 예:
- alert: Proxysql latency check
expr: if metric1 > 1 then "Warning" else metric > 5 "Critical"
for: 30s
labels:
severity: warning | critical
instance: "{{ $labels.node_name }}"
label: name-channel
annotations:
summary: "Info"