Skip to content

Commit dbe08b1

Browse files
author
Pablo Mendez
committed
add number of peers alert
1 parent 7496f56 commit dbe08b1

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

package_variants/mainnet/mainnet-notifications.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,26 @@ endpoints:
2020
description: "Geth Ethereum Node syncing"
2121
failure-threshold: 2
2222
success-threshold: 1
23-
send-on-resolved: true
23+
send-on-resolved: true
24+
- name: "Mainnet ETH Node Peers count Check"
25+
enabled: true
26+
group: "ethereum"
27+
url: "http://geth.dappnode:8545"
28+
method: "POST"
29+
body: |
30+
{"jsonrpc": "2.0", "id": 1, "method": "net_peerCount", "params": []}
31+
headers:
32+
Content-Type: "application/json"
33+
interval: "30s"
34+
conditions:
35+
- "[BODY].result >= 10"
36+
definition:
37+
title: "Mainnet ETH Node Peers count Check"
38+
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 and another one when it has more than the peers defined."
39+
alerts:
40+
- type: custom
41+
enabled: true
42+
description: "Geth Ethereum Node peers count"
43+
failure-threshold: 2
44+
success-threshold: 1
45+
send-on-resolved: true

0 commit comments

Comments
 (0)