-
Notifications
You must be signed in to change notification settings - Fork 0
/
grafana-alerting-rules.yaml
185 lines (185 loc) · 5.27 KB
/
grafana-alerting-rules.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
#file: noinspection YAMLSchemaValidation
apiVersion: 1
groups:
- orgId: 1
name: Core Health
folder: Node Exporter Alerts
interval: 1m
rules:
- uid: c0a5f1fe-3435-4c07-abfd-870043d2a654
title: memory
condition: B
data:
- refId: A
relativeTimeRange:
from: 600
to: 0
datasourceUid: PBFA97CFB590B2093
model:
datasource:
type: prometheus
uid: PBFA97CFB590B2093
editorMode: code
expr: node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes
* 100
hide: false
instant: true
intervalMs: 1000
legendFormat: __auto
maxDataPoints: 43200
range: false
refId: A
- refId: B
relativeTimeRange:
from: 600
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 90
- 0
type: gt
operator:
type: and
query:
params: []
reducer:
params: []
type: avg
type: query
datasource:
name: Expression
type: __expr__
uid: __expr__
expression: A
hide: false
intervalMs: 1000
maxDataPoints: 43200
refId: B
type: threshold
noDataState: NoData
execErrState: Error
for: 1m
isPaused: false
- uid: f4b91d58-7bc1-458a-8c64-4d03b6ab20b0
title: storage
condition: B
data:
- refId: avail_disk_percent
relativeTimeRange:
from: 600
to: 0
datasourceUid: PBFA97CFB590B2093
model:
datasource:
type: prometheus
uid: PBFA97CFB590B2093
editorMode: code
expr: 100 - ((node_filesystem_avail_bytes{mountpoint="/"} * 100) / node_filesystem_size_bytes{mountpoint="/"})
instant: true
intervalMs: 1000
legendFormat: __auto
maxDataPoints: 43200
range: false
refId: avail_disk_percent
- refId: B
relativeTimeRange:
from: 600
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 90
- 0
type: gt
operator:
type: and
query:
params: []
reducer:
params: []
type: avg
type: query
datasource:
name: Expression
type: __expr__
uid: __expr__
expression: avail_disk_percent
intervalMs: 1000
maxDataPoints: 43200
refId: B
type: threshold
noDataState: NoData
execErrState: Error
for: 1m
annotations:
description: ''
runbook_url: ''
summary: ''
labels:
"": ""
isPaused: false
- uid: da11beda-0f8b-424b-b5b5-08d1dcd163f9
title: cpu
condition: cpu_breaks_threshold
data:
- refId: cpu_avg_percent
relativeTimeRange:
from: 600
to: 0
datasourceUid: PBFA97CFB590B2093
model:
datasource:
type: prometheus
uid: PBFA97CFB590B2093
editorMode: code
expr: avg(avg by (cpu) (100 - rate(node_cpu_seconds_total{mode="idle"}[1m]) * 100))
instant: true
intervalMs: 1000
legendFormat: __auto
maxDataPoints: 43200
range: false
refId: cpu_avg_percent
- refId: cpu_breaks_threshold
relativeTimeRange:
from: 600
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 90
- 0
type: gt
operator:
type: and
query:
params: [ ]
reducer:
params: [ ]
type: avg
type: query
datasource:
name: Expression
type: __expr__
uid: __expr__
expression: cpu_avg_percent
intervalMs: 1000
maxDataPoints: 43200
refId: cpu_breaks_threshold
type: threshold
noDataState: NoData
execErrState: Error
for: 1m
annotations:
description: ""
runbook_url: ""
summary: ""
labels:
"": ""
isPaused: false