Skip to content

Commit f4e8595

Browse files
authored
Merge pull request #4 from dappnode/marc/add-notificationsyml
add notifcations yml
2 parents 9459e91 + 1bb3ea0 commit f4e8595

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

notifications.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
endpoints:
2+
- name: "Gnosis Node Syncing Check"
3+
enabled: true
4+
group: "gnosis"
5+
url: "http://gnosis-reth.dappnode:8545"
6+
method: "POST"
7+
body: |
8+
{"jsonrpc": "2.0", "id": 1, "method": "eth_syncing", "params": []}
9+
headers:
10+
Content-Type: "application/json"
11+
interval: "30s"
12+
conditions:
13+
- "[BODY].result == false"
14+
definition:
15+
title: "Gnosis Node Synced Check"
16+
description: "Check if the Gnosis Node is synced. You will receive a notification if the node is syncing and another one when it is synced."
17+
correlationId: "reth-gnosis-syncing"
18+
isBanner: false
19+
priority: "medium"
20+
alerts:
21+
- type: custom
22+
enabled: true
23+
description: "Reth Gnosis Node syncing"
24+
failure-threshold: 4
25+
success-threshold: 1
26+
send-on-resolved: true
27+
- name: "Gnosis Node Peers count Check"
28+
enabled: true
29+
group: "gnosis"
30+
url: "http://gnosis-reth.dappnode:8545"
31+
method: "POST"
32+
body: |
33+
{"jsonrpc": "2.0", "id": 1, "method": "net_peerCount", "params": []}
34+
headers:
35+
Content-Type: "application/json"
36+
interval: "30s"
37+
conditions:
38+
- "[BODY].result >= 10"
39+
definition:
40+
title: "Gnosis Node Peers count Check"
41+
description: "Check if the Gnosis Node has a minimum of peers. You will receive a notification if the node has less than the peers defined for 5 minutes and another one when it has more than the peers defined."
42+
correlationId: "reth-gnosis-peers"
43+
isBanner: false
44+
priority: "low"
45+
metric:
46+
min: 0
47+
max: 50
48+
unit: "peers"
49+
alerts:
50+
- type: custom
51+
enabled: true
52+
description: "Reth Gnosis Node peers count is below [CONDITION_VALUE]"
53+
failure-threshold: 10
54+
success-threshold: 1
55+
send-on-resolved: true

0 commit comments

Comments
 (0)