-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCosmos-sdk-template.yaml
94 lines (94 loc) · 2.69 KB
/
Cosmos-sdk-template.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
zabbix_export:
version: '5.2'
date: '2021-11-29T13:02:02Z'
groups:
-
name: Templates/Modules
templates:
-
template: Nodes
name: Nodes
groups:
-
name: Templates/Modules
items:
-
name: 'Node: port listen'
key: 'net.tcp.listen[{$PORT}]'
triggers:
-
expression: '{avg(6m)}=0'
name: 'node: port down'
priority: HIGH
-
name: 'Node: proc running'
key: 'proc.num[{$NODE_PS}]'
triggers:
-
expression: '{avg(6m)}=0'
name: 'node: proc down'
priority: DISASTER
-
name: 'Node: peers count'
type: ZABBIX_ACTIVE
key: 'web.page.get[{$NODE}net_info]'
preprocessing:
-
type: REGEX
parameters:
- '"n_peers": "(.*)",'
- '{"n_peers": \1}'
-
type: JSONPATH
parameters:
- $.n_peers
-
name: 'Node: height'
type: ZABBIX_ACTIVE
key: 'web.page.get[{$NODE}status]'
preprocessing:
-
type: REGEX
parameters:
- '\n\s?\n([\s\S]*)'
- \1
-
type: JSONPATH
parameters:
- $.result.sync_info.latest_block_height
triggers:
-
expression: '{nodata(6m)}=1'
name: 'node: no data > 5 min'
priority: DISASTER
-
expression: '{last()}={last(#10)}'
name: 'node: no syncing for 10 min'
priority: WARNING
-
expression: '{last()}={last(#20)}'
name: 'node: no syncing for 20 min'
priority: HIGH
-
name: 'Node: pub-rpc height'
type: ZABBIX_ACTIVE
key: 'web.page.get[{$RPC}]'
preprocessing:
-
type: REGEX
parameters:
- '\n\s?\n([\s\S]*)'
- \1
-
type: JSONPATH
parameters:
- $.result.sync_info.latest_block_height
triggers:
-
expression: '{Nodes:web.page.get[{$RPC}].last()}-{Nodes:web.page.get[{$NODE}status].last()}>100 and {Nodes:web.page.get[{$RPC}].last(#2)}-{Nodes:web.page.get[{$NODE}status].last(#2)}>100'
name: 'node: behind > 100 blocks'
priority: WARNING
-
expression: '{Nodes:web.page.get[{$RPC}].avg(3m)}-{Nodes:web.page.get[{$NODE}status].avg(3m)}>200'
name: 'node: behind > 200 blocks'
priority: DISASTER