- commit
- 8af4dc7
- parent
- 0a9a530
- author
- Antonio Mika
- date
- 2023-11-05 18:08:34 +0000 UTC
Add default target config
2 files changed,
+89,
-0
1@@ -0,0 +1,89 @@
2+apiVersion: 1
3+
4+groups:
5+ - orgId: 1
6+ name: General
7+ folder: Default
8+ interval: 1m
9+ rules:
10+ - uid: bbdb1e61-93c0-4ad1-a100-84059e9e322a
11+ title: Targets Not Up
12+ condition: C
13+ data:
14+ - refId: A
15+ relativeTimeRange:
16+ from: 600
17+ to: 0
18+ datasourceUid: PBFA97CFB590B2093
19+ model:
20+ editorMode: code
21+ expr: up == 0
22+ instant: true
23+ intervalMs: 1000
24+ legendFormat: __auto
25+ maxDataPoints: 43200
26+ range: false
27+ refId: A
28+ - refId: B
29+ relativeTimeRange:
30+ from: 600
31+ to: 0
32+ datasourceUid: __expr__
33+ model:
34+ conditions:
35+ - evaluator:
36+ params: []
37+ type: gt
38+ operator:
39+ type: and
40+ query:
41+ params:
42+ - B
43+ reducer:
44+ params: []
45+ type: last
46+ type: query
47+ datasource:
48+ type: __expr__
49+ uid: __expr__
50+ expression: A
51+ intervalMs: 1000
52+ maxDataPoints: 43200
53+ reducer: last
54+ refId: B
55+ type: reduce
56+ - refId: C
57+ relativeTimeRange:
58+ from: 600
59+ to: 0
60+ datasourceUid: __expr__
61+ model:
62+ conditions:
63+ - evaluator:
64+ params:
65+ - 1
66+ type: lt
67+ operator:
68+ type: and
69+ query:
70+ params:
71+ - C
72+ reducer:
73+ params: []
74+ type: last
75+ type: query
76+ datasource:
77+ type: __expr__
78+ uid: __expr__
79+ expression: B
80+ intervalMs: 1000
81+ maxDataPoints: 43200
82+ refId: C
83+ type: threshold
84+ noDataState: NoData
85+ execErrState: Error
86+ for: 1m
87+ annotations:
88+ description: 'Target {{ $labels.instance }} for job {{ $labels.job }} is down'
89+ summary: 'Target {{ $labels.instance }} for job {{ $labels.job }} is down'
90+ isPaused: false
R monitoring/grafana/config/provisioning/alerting/groups.yml =>
monitoring/grafana/config/provisioning/alerting/https.yml
+0,
-0