Skip to content

Commit ee4aff1

Browse files
authored
PMM-14141 embed mongodb down alerts (#4247)
* embed mongodb down alert template * trigger rebuild * add pmm prefix
1 parent 59a4a74 commit ee4aff1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
templates:
3+
- name: pmm_mongodb_down
4+
version: 1
5+
summary: MongoDB down
6+
expr: |-
7+
((max without (job) (mongodb_up)) == bool 0)
8+
or
9+
(
10+
(
11+
max without (job) (last_over_time(mongodb_up[24h]))
12+
and on(service_id, node_name, agent_id) pmm_managed_inventory_agents{agent_type="mongodb_exporter", disabled="0"}
13+
)
14+
unless on(service_id, node_name, agent_id)
15+
(max without (job) (mongodb_up))
16+
)
17+
for: 1m
18+
severity: critical
19+
annotations:
20+
description: |-
21+
MongoDB {{ $labels.service_name }} on {{ $labels.node_name }} is down.
22+
summary: MongoDB down ({{ $labels.service_name }})

0 commit comments

Comments
 (0)