-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalert export.yaml
100 lines (100 loc) · 2.98 KB
/
alert export.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
apiVersion: 1
groups:
- orgId: 1
name: system
folder: CPU Usage
interval: 1m
rules:
- uid: a76a21dc-034b-4558-ace7-557d0c48eab3
title: alert1
condition: B
data:
- refId: A
relativeTimeRange:
from: 600
to: 0
datasourceUid: e6001418-a01d-4ca8-bc2b-a7330adee6ca
model:
datasource:
type: prometheus
uid: e6001418-a01d-4ca8-bc2b-a7330adee6ca
editorMode: code
exemplar: false
expr: sum by (cpu) (rate(node_cpu_seconds_total{mode!="idle"}[1m]))
hide: false
instant: false
interval: ""
intervalMs: 1000
legendFormat: __auto
maxDataPoints: 43200
range: true
refId: A
- refId: B
relativeTimeRange:
from: 600
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 0
- 0
type: gt
operator:
type: and
query:
params: []
reducer:
params: []
type: avg
type: query
datasource:
name: Expression
type: __expr__
uid: __expr__
expression: A
intervalMs: 1000
maxDataPoints: 43200
reducer: last
refId: B
type: reduce
- refId: C
relativeTimeRange:
from: 600
to: 0
datasourceUid: __expr__
model:
conditions:
- evaluator:
params:
- 0
- 0
type: gt
operator:
type: and
query:
params: []
reducer:
params: []
type: avg
type: query
datasource:
name: Expression
type: __expr__
uid: __expr__
expression: $B > 0.005
hide: false
intervalMs: 1000
maxDataPoints: 43200
refId: C
type: math
noDataState: Alerting
execErrState: Error
for: 5m
annotations:
summary: CPU to igh
labels:
team: operation
type: cpu
isPaused: false