Skip to content

Commit b425367

Browse files
pablomendezroyoPablo Mendezmateumiralles
authored
Add notifications file (#48)
* implement notifications file * add edits * remove unnecesary fields * fix typo * fix condition * add content type * remove method post * update notifications file * add missing headers * set enabled true * fix typo * use false * fix condition * add number of peers alert * add notifications to all variants * update conditions * add priorities * add prio * add peers unit * correlationsIds fixes * peer notification update --------- Co-authored-by: Pablo Mendez <[email protected]> Co-authored-by: mateumiralles <[email protected]>
1 parent 2fed829 commit b425367

File tree

5 files changed

+275
-0
lines changed

5 files changed

+275
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
endpoints:
2+
- name: "Holesky ETH Node Syncing Check"
3+
enabled: true
4+
group: "holesky"
5+
url: "http://holesky-geth.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: "Holesky ETH Node Synced Check"
16+
description: "Check if the Holesky ETH Node is synced. You will receive a notification if the node is syncing and another one when it is synced."
17+
correlationId: "holesky-geth-eth-syncing"
18+
isBanner: false
19+
priority: "medium"
20+
alerts:
21+
- type: custom
22+
enabled: true
23+
description: "Geth Holesky Node syncing"
24+
failure-threshold: 4
25+
success-threshold: 1
26+
send-on-resolved: true
27+
- name: "Holesky ETH Node Peers count Check"
28+
enabled: true
29+
group: "holesky"
30+
url: "http://holesky-geth.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: "Holesky ETH Node Peers count Check"
41+
description: "Check if the Holesky ETH 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: "holesky-geth-eth-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: "Geth Holesky Node peers count is below [CONDITION_VALUE]"
53+
failure-threshold: 10
54+
success-threshold: 1
55+
send-on-resolved: true
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
endpoints:
2+
- name: "Hoodi ETH Node Syncing Check"
3+
enabled: true
4+
group: "hoodi"
5+
url: "http://hoodi-geth.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: "Hoodi ETH Node Synced Check"
16+
description: "Check if the Hoodi ETH Node is synced. You will receive a notification if the node is syncing and another one when it is synced."
17+
correlationId: "hoodi-geth-eth-syncing"
18+
isBanner: false
19+
priority: "medium"
20+
alerts:
21+
- type: custom
22+
enabled: true
23+
description: "Geth Hoodi Node syncing"
24+
failure-threshold: 4
25+
success-threshold: 1
26+
send-on-resolved: true
27+
- name: "Hoodi ETH Node Peers count Check"
28+
enabled: true
29+
group: "hoodi"
30+
url: "http://hoodi-geth.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: "Hoodi ETH Node Peers count Check"
41+
description: "Check if the Hoodi ETH 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: "hoodi-geth-eth-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: "Geth Hoodi Node peers count is below [CONDITION_VALUE]"
53+
failure-threshold: 10
54+
success-threshold: 1
55+
send-on-resolved: true
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
endpoints:
2+
- name: "Lukso ETH Node Syncing Check"
3+
enabled: true
4+
group: "lukso"
5+
url: "http://lukso-geth.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: "Lukso ETH Node Synced Check"
16+
description: "Check if the Lukso ETH Node is synced. You will receive a notification if the node is syncing and another one when it is synced."
17+
correlationId: "lukso-geth-eth-syncing"
18+
isBanner: false
19+
priority: "medium"
20+
alerts:
21+
- type: custom
22+
enabled: true
23+
description: "Geth Lukso Node syncing"
24+
failure-threshold: 4
25+
success-threshold: 1
26+
send-on-resolved: true
27+
- name: "Lukso ETH Node Peers count Check"
28+
enabled: true
29+
group: "lukso"
30+
url: "http://lukso-geth.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: "Lukso ETH Node Peers count Check"
41+
description: "Check if the Lukso ETH 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: "lukso-geth-eth-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: "Geth Lukso Node peers count is below [CONDITION_VALUE]"
53+
failure-threshold: 10
54+
success-threshold: 1
55+
send-on-resolved: true
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
endpoints:
2+
- name: "Mainnet ETH Node Syncing Check"
3+
enabled: true
4+
group: "ethereum"
5+
url: "http://geth.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: "Mainnet ETH Node Synced Check"
16+
description: "Check if the Mainnet ETH Node is synced. You will receive a notification if the node is syncing and another one when it is synced."
17+
correlationId: "geth-eth-syncing"
18+
isBanner: false
19+
priority: "medium"
20+
alerts:
21+
- type: custom
22+
enabled: true
23+
description: "Geth Ethereum Node syncing"
24+
failure-threshold: 4
25+
success-threshold: 1
26+
send-on-resolved: true
27+
- name: "Mainnet ETH Node Peers count Check"
28+
enabled: true
29+
group: "ethereum"
30+
url: "http://geth.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: "Mainnet ETH Node Peers count Check"
41+
description: "Check if the Mainnet ETH 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: "geth-eth-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: "Geth Ethereum Node peers count is below [CONDITION_VALUE]"
53+
failure-threshold: 10
54+
success-threshold: 1
55+
send-on-resolved: true
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
endpoints:
2+
- name: "Sepolia ETH Node Syncing Check"
3+
enabled: true
4+
group: "sepolia"
5+
url: "http://sepolia-geth.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: "Sepolia ETH Node Synced Check"
16+
description: "Check if the Sepolia ETH Node is synced. You will receive a notification if the node is syncing and another one when it is synced."
17+
correlationId: "sepolia-geth-eth-syncing"
18+
isBanner: false
19+
priority: "medium"
20+
alerts:
21+
- type: custom
22+
enabled: true
23+
description: "Geth Sepolia Node syncing"
24+
failure-threshold: 2
25+
success-threshold: 1
26+
send-on-resolved: true
27+
- name: "Sepolia ETH Node Peers count Check"
28+
enabled: true
29+
group: "sepolia"
30+
url: "http://sepolia-geth.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: "Sepolia ETH Node Peers count Check"
41+
description: "Check if the Sepolia ETH Node has a minimum of peers. You will receive a notification if the node has less than the peers defined and another one when it has more than the peers defined."
42+
correlationId: "sepolia-geth-eth-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: "Geth Sepolia Node peers count is below [CONDITION_VALUE]"
53+
failure-threshold: 2
54+
success-threshold: 1
55+
send-on-resolved: true

0 commit comments

Comments
 (0)