From 6a6b8ee681378e46f694acdee04a8a8101663a79 Mon Sep 17 00:00:00 2001 From: pablomendezroyo Date: Fri, 7 Mar 2025 12:37:01 +0100 Subject: [PATCH 01/21] implement notifications file --- .../mainnet/mainnet-notifications.yaml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package_variants/mainnet/mainnet-notifications.yaml diff --git a/package_variants/mainnet/mainnet-notifications.yaml b/package_variants/mainnet/mainnet-notifications.yaml new file mode 100644 index 0000000..2fbbbe9 --- /dev/null +++ b/package_variants/mainnet/mainnet-notifications.yaml @@ -0,0 +1,39 @@ +metrics: true +storage: + type: sqlite + path: /config/gatus.db +endpoints: + - name: "Mainnet ETH Node Syncing Check" + enabled: true + group: "ethereum" + url: "http://get.dappnode:8545" + method: "POST" + body: | + {"jsonrpc": "2.0", "id": 1, "method": "eth_syncing", "params": []} + interval: "30s" + # The condition below means: + # • if HTTP 200, then the check is healthy only if [BODY].result is exactly false (i.e. node is not syncing) + # • if not HTTP 200, then the check is considered healthy (ignoring other errors) + conditions: + - "([STATUS] == 200 && [BODY].result == false)" + alerts: + - type: custom + description: "Eth RPC node is syncing" + url: "http://notifier.notifications.dappnode:8080/api/v1/notifications" + method: "POST" + body: | + { + "title": "[ENDPOINT_NAME]", + "body": "[ALERT_TRIGGERED_OR_RESOLVED]: Node is syncing", + "category": "[ENDPOINT_GROUP]", + "dnpName": "geth.dnp.dappnode.eth" + } + headers: + Content-Type: "application/json" + placeholders: + ALERT_TRIGGERED_OR_RESOLVED: + TRIGGERED: "triggered" + RESOLVED: "resolved" + failure-threshold: 2 + success-threshold: 1 + send-on-resolved: true From acf6f1bba75c212412c320724f9f6d0085078bad Mon Sep 17 00:00:00 2001 From: pablomendezroyo Date: Fri, 7 Mar 2025 12:44:08 +0100 Subject: [PATCH 02/21] add edits --- .../mainnet/mainnet-notifications.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/package_variants/mainnet/mainnet-notifications.yaml b/package_variants/mainnet/mainnet-notifications.yaml index 2fbbbe9..b8926b7 100644 --- a/package_variants/mainnet/mainnet-notifications.yaml +++ b/package_variants/mainnet/mainnet-notifications.yaml @@ -3,7 +3,7 @@ storage: type: sqlite path: /config/gatus.db endpoints: - - name: "Mainnet ETH Node Syncing Check" + - name: "Mainnet ETH Node Synced Check" enabled: true group: "ethereum" url: "http://get.dappnode:8545" @@ -11,20 +11,20 @@ endpoints: body: | {"jsonrpc": "2.0", "id": 1, "method": "eth_syncing", "params": []} interval: "30s" - # The condition below means: - # • if HTTP 200, then the check is healthy only if [BODY].result is exactly false (i.e. node is not syncing) - # • if not HTTP 200, then the check is considered healthy (ignoring other errors) conditions: - - "([STATUS] == 200 && [BODY].result == false)" + - "([STATUS] == 200 && [BODY].result == true)" + definition: + title: "Mainnet ETH Node Synced Check" + 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." alerts: - type: custom - description: "Eth RPC node is syncing" + description: "Geth Ethereum Node is" url: "http://notifier.notifications.dappnode:8080/api/v1/notifications" method: "POST" body: | { "title": "[ENDPOINT_NAME]", - "body": "[ALERT_TRIGGERED_OR_RESOLVED]: Node is syncing", + "body": "[ALERT_DESCRIPTION] [ALERT_TRIGGERED_OR_RESOLVED]", "category": "[ENDPOINT_GROUP]", "dnpName": "geth.dnp.dappnode.eth" } @@ -32,8 +32,8 @@ endpoints: Content-Type: "application/json" placeholders: ALERT_TRIGGERED_OR_RESOLVED: - TRIGGERED: "triggered" - RESOLVED: "resolved" + TRIGGERED: "syncing" + RESOLVED: "synced" failure-threshold: 2 success-threshold: 1 send-on-resolved: true From f1c69a3edcdb33a312dbefd4d9db55f30b0a7fe2 Mon Sep 17 00:00:00 2001 From: Pablo Mendez Date: Fri, 7 Mar 2025 12:52:00 +0100 Subject: [PATCH 03/21] remove unnecesary fields --- package_variants/mainnet/mainnet-notifications.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/package_variants/mainnet/mainnet-notifications.yaml b/package_variants/mainnet/mainnet-notifications.yaml index b8926b7..9b7820a 100644 --- a/package_variants/mainnet/mainnet-notifications.yaml +++ b/package_variants/mainnet/mainnet-notifications.yaml @@ -1,7 +1,3 @@ -metrics: true -storage: - type: sqlite - path: /config/gatus.db endpoints: - name: "Mainnet ETH Node Synced Check" enabled: true From cfa91a2b79800aedc7b48856d1d887b459c8d789 Mon Sep 17 00:00:00 2001 From: Pablo Mendez Date: Fri, 7 Mar 2025 13:22:03 +0100 Subject: [PATCH 04/21] fix typo --- package_variants/mainnet/mainnet-notifications.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_variants/mainnet/mainnet-notifications.yaml b/package_variants/mainnet/mainnet-notifications.yaml index 9b7820a..718e509 100644 --- a/package_variants/mainnet/mainnet-notifications.yaml +++ b/package_variants/mainnet/mainnet-notifications.yaml @@ -2,7 +2,7 @@ endpoints: - name: "Mainnet ETH Node Synced Check" enabled: true group: "ethereum" - url: "http://get.dappnode:8545" + url: "http://geth.dappnode:8545" method: "POST" body: | {"jsonrpc": "2.0", "id": 1, "method": "eth_syncing", "params": []} From 50d7b3ae50af90dd7aa2bbbed86b162573bc528e Mon Sep 17 00:00:00 2001 From: Pablo Mendez Date: Fri, 7 Mar 2025 13:27:03 +0100 Subject: [PATCH 05/21] fix condition --- package_variants/mainnet/mainnet-notifications.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_variants/mainnet/mainnet-notifications.yaml b/package_variants/mainnet/mainnet-notifications.yaml index 718e509..73eb01f 100644 --- a/package_variants/mainnet/mainnet-notifications.yaml +++ b/package_variants/mainnet/mainnet-notifications.yaml @@ -8,7 +8,7 @@ endpoints: {"jsonrpc": "2.0", "id": 1, "method": "eth_syncing", "params": []} interval: "30s" conditions: - - "([STATUS] == 200 && [BODY].result == true)" + - "([STATUS] == 200 && [BODY].result != false)" definition: title: "Mainnet ETH Node Synced Check" 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." From b61236474f88ab89cd3b3bd4e45c928e499fed34 Mon Sep 17 00:00:00 2001 From: Pablo Mendez Date: Fri, 7 Mar 2025 13:43:34 +0100 Subject: [PATCH 06/21] add content type --- package_variants/mainnet/mainnet-notifications.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package_variants/mainnet/mainnet-notifications.yaml b/package_variants/mainnet/mainnet-notifications.yaml index 73eb01f..4875a5c 100644 --- a/package_variants/mainnet/mainnet-notifications.yaml +++ b/package_variants/mainnet/mainnet-notifications.yaml @@ -4,6 +4,8 @@ endpoints: group: "ethereum" url: "http://geth.dappnode:8545" method: "POST" + headers: + Content-Type: "application/json" body: | {"jsonrpc": "2.0", "id": 1, "method": "eth_syncing", "params": []} interval: "30s" From c3e5e4ac0d11c7fd44e2bc07ce9e8d33e5979cfb Mon Sep 17 00:00:00 2001 From: Pablo Mendez Date: Fri, 7 Mar 2025 15:01:34 +0100 Subject: [PATCH 07/21] remove method post --- package_variants/mainnet/mainnet-notifications.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/package_variants/mainnet/mainnet-notifications.yaml b/package_variants/mainnet/mainnet-notifications.yaml index 4875a5c..91baa03 100644 --- a/package_variants/mainnet/mainnet-notifications.yaml +++ b/package_variants/mainnet/mainnet-notifications.yaml @@ -18,7 +18,8 @@ endpoints: - type: custom description: "Geth Ethereum Node is" url: "http://notifier.notifications.dappnode:8080/api/v1/notifications" - method: "POST" + headers: + Content-Type: "application/json" body: | { "title": "[ENDPOINT_NAME]", @@ -26,8 +27,6 @@ endpoints: "category": "[ENDPOINT_GROUP]", "dnpName": "geth.dnp.dappnode.eth" } - headers: - Content-Type: "application/json" placeholders: ALERT_TRIGGERED_OR_RESOLVED: TRIGGERED: "syncing" From 7d32cd69820748beec7f58f8ce51710262a32ad8 Mon Sep 17 00:00:00 2001 From: pablomendezroyo Date: Fri, 7 Mar 2025 18:46:18 +0100 Subject: [PATCH 08/21] update notifications file --- .../mainnet/mainnet-notifications.yaml | 24 ++++--------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/package_variants/mainnet/mainnet-notifications.yaml b/package_variants/mainnet/mainnet-notifications.yaml index 91baa03..d609f79 100644 --- a/package_variants/mainnet/mainnet-notifications.yaml +++ b/package_variants/mainnet/mainnet-notifications.yaml @@ -1,36 +1,20 @@ endpoints: - - name: "Mainnet ETH Node Synced Check" + - name: "Mainnet ETH Node Syncing Check" enabled: true group: "ethereum" - url: "http://geth.dappnode:8545" + url: "http://get.dappnode:8545" method: "POST" - headers: - Content-Type: "application/json" body: | {"jsonrpc": "2.0", "id": 1, "method": "eth_syncing", "params": []} interval: "30s" conditions: - - "([STATUS] == 200 && [BODY].result != false)" + - "([STATUS] == 200 && [BODY].result == true)" definition: title: "Mainnet ETH Node Synced Check" 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." alerts: - type: custom - description: "Geth Ethereum Node is" - url: "http://notifier.notifications.dappnode:8080/api/v1/notifications" - headers: - Content-Type: "application/json" - body: | - { - "title": "[ENDPOINT_NAME]", - "body": "[ALERT_DESCRIPTION] [ALERT_TRIGGERED_OR_RESOLVED]", - "category": "[ENDPOINT_GROUP]", - "dnpName": "geth.dnp.dappnode.eth" - } - placeholders: - ALERT_TRIGGERED_OR_RESOLVED: - TRIGGERED: "syncing" - RESOLVED: "synced" + description: "Geth Ethereum Node syncing" failure-threshold: 2 success-threshold: 1 send-on-resolved: true From d1acbebe6fb652c96fc56a6f5142c597cbd6bafb Mon Sep 17 00:00:00 2001 From: Pablo Mendez Date: Fri, 7 Mar 2025 18:55:16 +0100 Subject: [PATCH 09/21] add missing headers --- package_variants/mainnet/mainnet-notifications.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package_variants/mainnet/mainnet-notifications.yaml b/package_variants/mainnet/mainnet-notifications.yaml index d609f79..934e049 100644 --- a/package_variants/mainnet/mainnet-notifications.yaml +++ b/package_variants/mainnet/mainnet-notifications.yaml @@ -6,6 +6,8 @@ endpoints: method: "POST" body: | {"jsonrpc": "2.0", "id": 1, "method": "eth_syncing", "params": []} + headers: + Content-Type: "application/json" interval: "30s" conditions: - "([STATUS] == 200 && [BODY].result == true)" From 415c6bf67f5d4377a582606741c8a4760e90173f Mon Sep 17 00:00:00 2001 From: Pablo Mendez Date: Fri, 7 Mar 2025 19:02:20 +0100 Subject: [PATCH 10/21] set enabled true --- package_variants/mainnet/mainnet-notifications.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package_variants/mainnet/mainnet-notifications.yaml b/package_variants/mainnet/mainnet-notifications.yaml index 934e049..dbec6a5 100644 --- a/package_variants/mainnet/mainnet-notifications.yaml +++ b/package_variants/mainnet/mainnet-notifications.yaml @@ -16,7 +16,8 @@ endpoints: 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." alerts: - type: custom + enabled: true description: "Geth Ethereum Node syncing" failure-threshold: 2 success-threshold: 1 - send-on-resolved: true + send-on-resolved: true \ No newline at end of file From 77160dc78c5f44302deceb7bdb5eda3148f9bc31 Mon Sep 17 00:00:00 2001 From: Pablo Mendez Date: Fri, 7 Mar 2025 19:05:27 +0100 Subject: [PATCH 11/21] fix typo --- package_variants/mainnet/mainnet-notifications.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_variants/mainnet/mainnet-notifications.yaml b/package_variants/mainnet/mainnet-notifications.yaml index dbec6a5..cf3e70f 100644 --- a/package_variants/mainnet/mainnet-notifications.yaml +++ b/package_variants/mainnet/mainnet-notifications.yaml @@ -2,7 +2,7 @@ endpoints: - name: "Mainnet ETH Node Syncing Check" enabled: true group: "ethereum" - url: "http://get.dappnode:8545" + url: "http://geth.dappnode:8545" method: "POST" body: | {"jsonrpc": "2.0", "id": 1, "method": "eth_syncing", "params": []} From 96a75f3087b5521d9197a929021f0770e310e39f Mon Sep 17 00:00:00 2001 From: Pablo Mendez Date: Tue, 11 Mar 2025 09:13:14 +0100 Subject: [PATCH 12/21] use false --- package_variants/mainnet/mainnet-notifications.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_variants/mainnet/mainnet-notifications.yaml b/package_variants/mainnet/mainnet-notifications.yaml index cf3e70f..1a64994 100644 --- a/package_variants/mainnet/mainnet-notifications.yaml +++ b/package_variants/mainnet/mainnet-notifications.yaml @@ -10,7 +10,7 @@ endpoints: Content-Type: "application/json" interval: "30s" conditions: - - "([STATUS] == 200 && [BODY].result == true)" + - "([STATUS] == 200 && [BODY].result == false)" definition: title: "Mainnet ETH Node Synced Check" 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." From 2f0731b038e4c01e79badf9b28212b26eddb8cb0 Mon Sep 17 00:00:00 2001 From: pablomendezroyo Date: Tue, 11 Mar 2025 15:05:32 +0100 Subject: [PATCH 13/21] fix condition --- package_variants/mainnet/mainnet-notifications.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_variants/mainnet/mainnet-notifications.yaml b/package_variants/mainnet/mainnet-notifications.yaml index 1a64994..8c37155 100644 --- a/package_variants/mainnet/mainnet-notifications.yaml +++ b/package_variants/mainnet/mainnet-notifications.yaml @@ -10,7 +10,7 @@ endpoints: Content-Type: "application/json" interval: "30s" conditions: - - "([STATUS] == 200 && [BODY].result == false)" + - "[BODY].result == false" definition: title: "Mainnet ETH Node Synced Check" 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." From 4e3cd54cc083abc5550a126204957489ff716af1 Mon Sep 17 00:00:00 2001 From: Pablo Mendez Date: Fri, 28 Mar 2025 09:32:37 +0100 Subject: [PATCH 14/21] add number of peers alert --- .../mainnet/mainnet-notifications.yaml | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/package_variants/mainnet/mainnet-notifications.yaml b/package_variants/mainnet/mainnet-notifications.yaml index 8c37155..9899d61 100644 --- a/package_variants/mainnet/mainnet-notifications.yaml +++ b/package_variants/mainnet/mainnet-notifications.yaml @@ -20,4 +20,26 @@ endpoints: description: "Geth Ethereum Node syncing" failure-threshold: 2 success-threshold: 1 - send-on-resolved: true \ No newline at end of file + send-on-resolved: true + - name: "Mainnet ETH Node Peers count Check" + enabled: true + group: "ethereum" + url: "http://geth.dappnode:8545" + method: "POST" + body: | + {"jsonrpc": "2.0", "id": 1, "method": "net_peerCount", "params": []} + headers: + Content-Type: "application/json" + interval: "30s" + conditions: + - "[BODY].result >= 10" + definition: + title: "Mainnet ETH Node Peers count Check" + 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." + alerts: + - type: custom + enabled: true + description: "Geth Ethereum Node peers count" + failure-threshold: 2 + success-threshold: 1 + send-on-resolved: true From dd34a04f0a714e497fccdb4a72e9c23b39be1f0f Mon Sep 17 00:00:00 2001 From: Pablo Mendez Date: Thu, 22 May 2025 09:32:24 +0200 Subject: [PATCH 15/21] add notifications to all variants --- .../holesky/holesky-notifications.yaml | 49 +++++++++++++++++++ .../hoodi/hoodi-notifications.yaml | 49 +++++++++++++++++++ .../lukso/lukso-notifications.yaml | 49 +++++++++++++++++++ .../mainnet/mainnet-notifications.yaml | 4 ++ .../sepolia/sepolia-notifications.yaml | 49 +++++++++++++++++++ 5 files changed, 200 insertions(+) create mode 100644 package_variants/holesky/holesky-notifications.yaml create mode 100644 package_variants/hoodi/hoodi-notifications.yaml create mode 100644 package_variants/lukso/lukso-notifications.yaml create mode 100644 package_variants/sepolia/sepolia-notifications.yaml diff --git a/package_variants/holesky/holesky-notifications.yaml b/package_variants/holesky/holesky-notifications.yaml new file mode 100644 index 0000000..1c3a4f2 --- /dev/null +++ b/package_variants/holesky/holesky-notifications.yaml @@ -0,0 +1,49 @@ +endpoints: + - name: "Holesky ETH Node Syncing Check" + enabled: true + group: "holesky" + url: "http://holesky-geth.dappnode:8545" + method: "POST" + body: | + {"jsonrpc": "2.0", "id": 1, "method": "eth_syncing", "params": []} + headers: + Content-Type: "application/json" + interval: "30s" + conditions: + - "[BODY].result == false" + definition: + title: "Holesky ETH Node Synced Check" + 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." + correlationId: "geth-eth-syncing" + isBanner: false + alerts: + - type: custom + enabled: true + description: "Geth Holesky Node syncing" + failure-threshold: 2 + success-threshold: 1 + send-on-resolved: true + - name: "Holesky ETH Node Peers count Check" + enabled: true + group: "holesky" + url: "http://holesky-geth.dappnode:8545" + method: "POST" + body: | + {"jsonrpc": "2.0", "id": 1, "method": "net_peerCount", "params": []} + headers: + Content-Type: "application/json" + interval: "30s" + conditions: + - "[BODY].result >= 10" + definition: + title: "Holesky ETH Node Peers count Check" + 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 and another one when it has more than the peers defined." + correlationId: "geth-eth-peers" + isBanner: false + alerts: + - type: custom + enabled: true + description: "Geth Holesky Node peers count" + failure-threshold: 2 + success-threshold: 1 + send-on-resolved: true diff --git a/package_variants/hoodi/hoodi-notifications.yaml b/package_variants/hoodi/hoodi-notifications.yaml new file mode 100644 index 0000000..ff5433b --- /dev/null +++ b/package_variants/hoodi/hoodi-notifications.yaml @@ -0,0 +1,49 @@ +endpoints: + - name: "Hoodi ETH Node Syncing Check" + enabled: true + group: "hoodi" + url: "http://hoodi-geth.dappnode:8545" + method: "POST" + body: | + {"jsonrpc": "2.0", "id": 1, "method": "eth_syncing", "params": []} + headers: + Content-Type: "application/json" + interval: "30s" + conditions: + - "[BODY].result == false" + definition: + title: "Hoodi ETH Node Synced Check" + 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." + correlationId: "hoodi-geth-eth-syncing" + isBanner: false + alerts: + - type: custom + enabled: true + description: "Geth Hoodi Node syncing" + failure-threshold: 2 + success-threshold: 1 + send-on-resolved: true + - name: "Hoodi ETH Node Peers count Check" + enabled: true + group: "hoodi" + url: "http://hoodi-geth.dappnode:8545" + method: "POST" + body: | + {"jsonrpc": "2.0", "id": 1, "method": "net_peerCount", "params": []} + headers: + Content-Type: "application/json" + interval: "30s" + conditions: + - "[BODY].result >= 10" + definition: + title: "Hoodi ETH Node Peers count Check" + 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 and another one when it has more than the peers defined." + correlationId: "geth-eth-peers" + isBanner: false + alerts: + - type: custom + enabled: true + description: "Geth Hoodi Node peers count" + failure-threshold: 2 + success-threshold: 1 + send-on-resolved: true diff --git a/package_variants/lukso/lukso-notifications.yaml b/package_variants/lukso/lukso-notifications.yaml new file mode 100644 index 0000000..7bf8e46 --- /dev/null +++ b/package_variants/lukso/lukso-notifications.yaml @@ -0,0 +1,49 @@ +endpoints: + - name: "Lukso ETH Node Syncing Check" + enabled: true + group: "lukso" + url: "http://lukso-geth.dappnode:8545" + method: "POST" + body: | + {"jsonrpc": "2.0", "id": 1, "method": "eth_syncing", "params": []} + headers: + Content-Type: "application/json" + interval: "30s" + conditions: + - "[BODY].result == false" + definition: + title: "Lukso ETH Node Synced Check" + 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." + correlationId: "lukso-geth-eth-syncing" + isBanner: false + alerts: + - type: custom + enabled: true + description: "Geth Lukso Node syncing" + failure-threshold: 2 + success-threshold: 1 + send-on-resolved: true + - name: "Lukso ETH Node Peers count Check" + enabled: true + group: "lukso" + url: "http://lukso-geth.dappnode:8545" + method: "POST" + body: | + {"jsonrpc": "2.0", "id": 1, "method": "net_peerCount", "params": []} + headers: + Content-Type: "application/json" + interval: "30s" + conditions: + - "[BODY].result >= 10" + definition: + title: "Lukso ETH Node Peers count Check" + 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 and another one when it has more than the peers defined." + correlationId: "lukso-geth-eth-peers" + isBanner: false + alerts: + - type: custom + enabled: true + description: "Geth Lukso Node peers count" + failure-threshold: 2 + success-threshold: 1 + send-on-resolved: true diff --git a/package_variants/mainnet/mainnet-notifications.yaml b/package_variants/mainnet/mainnet-notifications.yaml index 9899d61..c59b1ed 100644 --- a/package_variants/mainnet/mainnet-notifications.yaml +++ b/package_variants/mainnet/mainnet-notifications.yaml @@ -14,6 +14,8 @@ endpoints: definition: title: "Mainnet ETH Node Synced Check" 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." + correlationId: "geth-eth-syncing" + isBanner: false alerts: - type: custom enabled: true @@ -36,6 +38,8 @@ endpoints: definition: title: "Mainnet ETH Node Peers count Check" 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." + correlationId: "geth-eth-peers" + isBanner: false alerts: - type: custom enabled: true diff --git a/package_variants/sepolia/sepolia-notifications.yaml b/package_variants/sepolia/sepolia-notifications.yaml new file mode 100644 index 0000000..105c3bb --- /dev/null +++ b/package_variants/sepolia/sepolia-notifications.yaml @@ -0,0 +1,49 @@ +endpoints: + - name: "Sepolia ETH Node Syncing Check" + enabled: true + group: "sepolia" + url: "http://sepolia-geth.dappnode:8545" + method: "POST" + body: | + {"jsonrpc": "2.0", "id": 1, "method": "eth_syncing", "params": []} + headers: + Content-Type: "application/json" + interval: "30s" + conditions: + - "[BODY].result == false" + definition: + title: "Sepolia ETH Node Synced Check" + 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." + correlationId: "sepolia-geth-eth-syncing" + isBanner: false + alerts: + - type: custom + enabled: true + description: "Geth Sepolia Node syncing" + failure-threshold: 2 + success-threshold: 1 + send-on-resolved: true + - name: "Sepolia ETH Node Peers count Check" + enabled: true + group: "sepolia" + url: "http://sepolia-geth.dappnode:8545" + method: "POST" + body: | + {"jsonrpc": "2.0", "id": 1, "method": "net_peerCount", "params": []} + headers: + Content-Type: "application/json" + interval: "30s" + conditions: + - "[BODY].result >= 10" + definition: + title: "Sepolia ETH Node Peers count Check" + 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." + correlationId: "sepolia-geth-eth-peers" + isBanner: false + alerts: + - type: custom + enabled: true + description: "Geth Sepolia Node peers count" + failure-threshold: 2 + success-threshold: 1 + send-on-resolved: true From 438585b2448622d3a54f10b322ab9c2127a5ecc8 Mon Sep 17 00:00:00 2001 From: Pablo Mendez Date: Thu, 22 May 2025 09:49:20 +0200 Subject: [PATCH 16/21] update conditions --- package_variants/holesky/holesky-notifications.yaml | 6 +++--- package_variants/hoodi/hoodi-notifications.yaml | 6 +++--- package_variants/lukso/lukso-notifications.yaml | 6 +++--- package_variants/mainnet/mainnet-notifications.yaml | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package_variants/holesky/holesky-notifications.yaml b/package_variants/holesky/holesky-notifications.yaml index 1c3a4f2..284d05f 100644 --- a/package_variants/holesky/holesky-notifications.yaml +++ b/package_variants/holesky/holesky-notifications.yaml @@ -20,7 +20,7 @@ endpoints: - type: custom enabled: true description: "Geth Holesky Node syncing" - failure-threshold: 2 + failure-threshold: 4 success-threshold: 1 send-on-resolved: true - name: "Holesky ETH Node Peers count Check" @@ -37,13 +37,13 @@ endpoints: - "[BODY].result >= 10" definition: title: "Holesky ETH Node Peers count Check" - 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 and another one when it has more than the peers defined." + 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." correlationId: "geth-eth-peers" isBanner: false alerts: - type: custom enabled: true description: "Geth Holesky Node peers count" - failure-threshold: 2 + failure-threshold: 10 success-threshold: 1 send-on-resolved: true diff --git a/package_variants/hoodi/hoodi-notifications.yaml b/package_variants/hoodi/hoodi-notifications.yaml index ff5433b..00eddcb 100644 --- a/package_variants/hoodi/hoodi-notifications.yaml +++ b/package_variants/hoodi/hoodi-notifications.yaml @@ -20,7 +20,7 @@ endpoints: - type: custom enabled: true description: "Geth Hoodi Node syncing" - failure-threshold: 2 + failure-threshold: 4 success-threshold: 1 send-on-resolved: true - name: "Hoodi ETH Node Peers count Check" @@ -37,13 +37,13 @@ endpoints: - "[BODY].result >= 10" definition: title: "Hoodi ETH Node Peers count Check" - 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 and another one when it has more than the peers defined." + 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." correlationId: "geth-eth-peers" isBanner: false alerts: - type: custom enabled: true description: "Geth Hoodi Node peers count" - failure-threshold: 2 + failure-threshold: 10 success-threshold: 1 send-on-resolved: true diff --git a/package_variants/lukso/lukso-notifications.yaml b/package_variants/lukso/lukso-notifications.yaml index 7bf8e46..1795184 100644 --- a/package_variants/lukso/lukso-notifications.yaml +++ b/package_variants/lukso/lukso-notifications.yaml @@ -20,7 +20,7 @@ endpoints: - type: custom enabled: true description: "Geth Lukso Node syncing" - failure-threshold: 2 + failure-threshold: 4 success-threshold: 1 send-on-resolved: true - name: "Lukso ETH Node Peers count Check" @@ -37,13 +37,13 @@ endpoints: - "[BODY].result >= 10" definition: title: "Lukso ETH Node Peers count Check" - 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 and another one when it has more than the peers defined." + 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." correlationId: "lukso-geth-eth-peers" isBanner: false alerts: - type: custom enabled: true description: "Geth Lukso Node peers count" - failure-threshold: 2 + failure-threshold: 10 success-threshold: 1 send-on-resolved: true diff --git a/package_variants/mainnet/mainnet-notifications.yaml b/package_variants/mainnet/mainnet-notifications.yaml index c59b1ed..86886bc 100644 --- a/package_variants/mainnet/mainnet-notifications.yaml +++ b/package_variants/mainnet/mainnet-notifications.yaml @@ -20,7 +20,7 @@ endpoints: - type: custom enabled: true description: "Geth Ethereum Node syncing" - failure-threshold: 2 + failure-threshold: 4 success-threshold: 1 send-on-resolved: true - name: "Mainnet ETH Node Peers count Check" @@ -37,13 +37,13 @@ endpoints: - "[BODY].result >= 10" definition: title: "Mainnet ETH Node Peers count Check" - 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." + 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." correlationId: "geth-eth-peers" isBanner: false alerts: - type: custom enabled: true description: "Geth Ethereum Node peers count" - failure-threshold: 2 + failure-threshold: 10 success-threshold: 1 send-on-resolved: true From d6827ed6a00fa3e6a7784bfd57612cb13d526877 Mon Sep 17 00:00:00 2001 From: Pablo Mendez Date: Thu, 22 May 2025 10:39:53 +0200 Subject: [PATCH 17/21] add priorities --- package_variants/holesky/holesky-notifications.yaml | 2 ++ package_variants/hoodi/hoodi-notifications.yaml | 2 ++ package_variants/lukso/lukso-notifications.yaml | 1 + package_variants/mainnet/mainnet-notifications.yaml | 2 ++ package_variants/sepolia/sepolia-notifications.yaml | 2 ++ 5 files changed, 9 insertions(+) diff --git a/package_variants/holesky/holesky-notifications.yaml b/package_variants/holesky/holesky-notifications.yaml index 284d05f..0eb38b2 100644 --- a/package_variants/holesky/holesky-notifications.yaml +++ b/package_variants/holesky/holesky-notifications.yaml @@ -16,6 +16,7 @@ endpoints: 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." correlationId: "geth-eth-syncing" isBanner: false + priority: "medium" alerts: - type: custom enabled: true @@ -40,6 +41,7 @@ endpoints: 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." correlationId: "geth-eth-peers" isBanner: false + priority: "low" alerts: - type: custom enabled: true diff --git a/package_variants/hoodi/hoodi-notifications.yaml b/package_variants/hoodi/hoodi-notifications.yaml index 00eddcb..b0f83b5 100644 --- a/package_variants/hoodi/hoodi-notifications.yaml +++ b/package_variants/hoodi/hoodi-notifications.yaml @@ -16,6 +16,7 @@ endpoints: 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." correlationId: "hoodi-geth-eth-syncing" isBanner: false + priority: "medium" alerts: - type: custom enabled: true @@ -40,6 +41,7 @@ endpoints: 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." correlationId: "geth-eth-peers" isBanner: false + priority: "low" alerts: - type: custom enabled: true diff --git a/package_variants/lukso/lukso-notifications.yaml b/package_variants/lukso/lukso-notifications.yaml index 1795184..c4802f9 100644 --- a/package_variants/lukso/lukso-notifications.yaml +++ b/package_variants/lukso/lukso-notifications.yaml @@ -40,6 +40,7 @@ endpoints: 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." correlationId: "lukso-geth-eth-peers" isBanner: false + priority: "low" alerts: - type: custom enabled: true diff --git a/package_variants/mainnet/mainnet-notifications.yaml b/package_variants/mainnet/mainnet-notifications.yaml index 86886bc..9dcae59 100644 --- a/package_variants/mainnet/mainnet-notifications.yaml +++ b/package_variants/mainnet/mainnet-notifications.yaml @@ -16,6 +16,7 @@ endpoints: 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." correlationId: "geth-eth-syncing" isBanner: false + priority: "medium" alerts: - type: custom enabled: true @@ -40,6 +41,7 @@ endpoints: 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." correlationId: "geth-eth-peers" isBanner: false + priority: "low" alerts: - type: custom enabled: true diff --git a/package_variants/sepolia/sepolia-notifications.yaml b/package_variants/sepolia/sepolia-notifications.yaml index 105c3bb..0dce71a 100644 --- a/package_variants/sepolia/sepolia-notifications.yaml +++ b/package_variants/sepolia/sepolia-notifications.yaml @@ -16,6 +16,7 @@ endpoints: 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." correlationId: "sepolia-geth-eth-syncing" isBanner: false + priority: "medium" alerts: - type: custom enabled: true @@ -40,6 +41,7 @@ endpoints: 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." correlationId: "sepolia-geth-eth-peers" isBanner: false + priority: "low" alerts: - type: custom enabled: true From 373ec4bb5c5ed9b38b698b6e88d59e4d9146ad15 Mon Sep 17 00:00:00 2001 From: Pablo Mendez Date: Thu, 22 May 2025 10:41:52 +0200 Subject: [PATCH 18/21] add prio --- package_variants/lukso/lukso-notifications.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/package_variants/lukso/lukso-notifications.yaml b/package_variants/lukso/lukso-notifications.yaml index c4802f9..0e3c19d 100644 --- a/package_variants/lukso/lukso-notifications.yaml +++ b/package_variants/lukso/lukso-notifications.yaml @@ -16,6 +16,7 @@ endpoints: 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." correlationId: "lukso-geth-eth-syncing" isBanner: false + priority: "medium" alerts: - type: custom enabled: true From 8f2b25f5bdacb46cc0382b092f6f1ba5c3ce918f Mon Sep 17 00:00:00 2001 From: Pablo Mendez Date: Thu, 22 May 2025 16:08:18 +0200 Subject: [PATCH 19/21] add peers unit --- package_variants/holesky/holesky-notifications.yaml | 4 ++++ package_variants/hoodi/hoodi-notifications.yaml | 4 ++++ package_variants/lukso/lukso-notifications.yaml | 4 ++++ package_variants/mainnet/mainnet-notifications.yaml | 4 ++++ package_variants/sepolia/sepolia-notifications.yaml | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/package_variants/holesky/holesky-notifications.yaml b/package_variants/holesky/holesky-notifications.yaml index 0eb38b2..cc93e43 100644 --- a/package_variants/holesky/holesky-notifications.yaml +++ b/package_variants/holesky/holesky-notifications.yaml @@ -42,6 +42,10 @@ endpoints: correlationId: "geth-eth-peers" isBanner: false priority: "low" + metric: + min: 0 + max: 50 + unit: "peers" alerts: - type: custom enabled: true diff --git a/package_variants/hoodi/hoodi-notifications.yaml b/package_variants/hoodi/hoodi-notifications.yaml index b0f83b5..70f8247 100644 --- a/package_variants/hoodi/hoodi-notifications.yaml +++ b/package_variants/hoodi/hoodi-notifications.yaml @@ -42,6 +42,10 @@ endpoints: correlationId: "geth-eth-peers" isBanner: false priority: "low" + metric: + min: 0 + max: 50 + unit: "peers" alerts: - type: custom enabled: true diff --git a/package_variants/lukso/lukso-notifications.yaml b/package_variants/lukso/lukso-notifications.yaml index 0e3c19d..6d6d3fb 100644 --- a/package_variants/lukso/lukso-notifications.yaml +++ b/package_variants/lukso/lukso-notifications.yaml @@ -42,6 +42,10 @@ endpoints: correlationId: "lukso-geth-eth-peers" isBanner: false priority: "low" + metric: + min: 0 + max: 50 + unit: "peers" alerts: - type: custom enabled: true diff --git a/package_variants/mainnet/mainnet-notifications.yaml b/package_variants/mainnet/mainnet-notifications.yaml index 9dcae59..5a3cd7a 100644 --- a/package_variants/mainnet/mainnet-notifications.yaml +++ b/package_variants/mainnet/mainnet-notifications.yaml @@ -42,6 +42,10 @@ endpoints: correlationId: "geth-eth-peers" isBanner: false priority: "low" + metric: + min: 0 + max: 50 + unit: "peers" alerts: - type: custom enabled: true diff --git a/package_variants/sepolia/sepolia-notifications.yaml b/package_variants/sepolia/sepolia-notifications.yaml index 0dce71a..4e2ea41 100644 --- a/package_variants/sepolia/sepolia-notifications.yaml +++ b/package_variants/sepolia/sepolia-notifications.yaml @@ -42,6 +42,10 @@ endpoints: correlationId: "sepolia-geth-eth-peers" isBanner: false priority: "low" + metric: + min: 0 + max: 50 + unit: "peers" alerts: - type: custom enabled: true From 2d5985836ac19f2960b016d0183a9261e81cf748 Mon Sep 17 00:00:00 2001 From: mateumiralles Date: Fri, 23 May 2025 15:54:26 +0200 Subject: [PATCH 20/21] correlationsIds fixes --- package_variants/holesky/holesky-notifications.yaml | 4 ++-- package_variants/hoodi/hoodi-notifications.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package_variants/holesky/holesky-notifications.yaml b/package_variants/holesky/holesky-notifications.yaml index cc93e43..40106c3 100644 --- a/package_variants/holesky/holesky-notifications.yaml +++ b/package_variants/holesky/holesky-notifications.yaml @@ -14,7 +14,7 @@ endpoints: definition: title: "Holesky ETH Node Synced Check" 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." - correlationId: "geth-eth-syncing" + correlationId: "holesky-geth-eth-syncing" isBanner: false priority: "medium" alerts: @@ -39,7 +39,7 @@ endpoints: definition: title: "Holesky ETH Node Peers count Check" 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." - correlationId: "geth-eth-peers" + correlationId: "holesky-geth-eth-peers" isBanner: false priority: "low" metric: diff --git a/package_variants/hoodi/hoodi-notifications.yaml b/package_variants/hoodi/hoodi-notifications.yaml index 70f8247..ee61702 100644 --- a/package_variants/hoodi/hoodi-notifications.yaml +++ b/package_variants/hoodi/hoodi-notifications.yaml @@ -39,7 +39,7 @@ endpoints: definition: title: "Hoodi ETH Node Peers count Check" 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." - correlationId: "geth-eth-peers" + correlationId: "hoodi-geth-eth-peers" isBanner: false priority: "low" metric: From 4ad71ae3798aa31ac61e13f364b3cf0c50c289f2 Mon Sep 17 00:00:00 2001 From: mateumiralles Date: Mon, 26 May 2025 16:58:47 +0200 Subject: [PATCH 21/21] peer notification update --- package_variants/holesky/holesky-notifications.yaml | 2 +- package_variants/hoodi/hoodi-notifications.yaml | 2 +- package_variants/lukso/lukso-notifications.yaml | 2 +- package_variants/mainnet/mainnet-notifications.yaml | 2 +- package_variants/sepolia/sepolia-notifications.yaml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package_variants/holesky/holesky-notifications.yaml b/package_variants/holesky/holesky-notifications.yaml index 40106c3..4101d96 100644 --- a/package_variants/holesky/holesky-notifications.yaml +++ b/package_variants/holesky/holesky-notifications.yaml @@ -49,7 +49,7 @@ endpoints: alerts: - type: custom enabled: true - description: "Geth Holesky Node peers count" + description: "Geth Holesky Node peers count is below [CONDITION_VALUE]" failure-threshold: 10 success-threshold: 1 send-on-resolved: true diff --git a/package_variants/hoodi/hoodi-notifications.yaml b/package_variants/hoodi/hoodi-notifications.yaml index ee61702..b04096e 100644 --- a/package_variants/hoodi/hoodi-notifications.yaml +++ b/package_variants/hoodi/hoodi-notifications.yaml @@ -49,7 +49,7 @@ endpoints: alerts: - type: custom enabled: true - description: "Geth Hoodi Node peers count" + description: "Geth Hoodi Node peers count is below [CONDITION_VALUE]" failure-threshold: 10 success-threshold: 1 send-on-resolved: true diff --git a/package_variants/lukso/lukso-notifications.yaml b/package_variants/lukso/lukso-notifications.yaml index 6d6d3fb..a6811d2 100644 --- a/package_variants/lukso/lukso-notifications.yaml +++ b/package_variants/lukso/lukso-notifications.yaml @@ -49,7 +49,7 @@ endpoints: alerts: - type: custom enabled: true - description: "Geth Lukso Node peers count" + description: "Geth Lukso Node peers count is below [CONDITION_VALUE]" failure-threshold: 10 success-threshold: 1 send-on-resolved: true diff --git a/package_variants/mainnet/mainnet-notifications.yaml b/package_variants/mainnet/mainnet-notifications.yaml index 5a3cd7a..a195923 100644 --- a/package_variants/mainnet/mainnet-notifications.yaml +++ b/package_variants/mainnet/mainnet-notifications.yaml @@ -49,7 +49,7 @@ endpoints: alerts: - type: custom enabled: true - description: "Geth Ethereum Node peers count" + description: "Geth Ethereum Node peers count is below [CONDITION_VALUE]" failure-threshold: 10 success-threshold: 1 send-on-resolved: true diff --git a/package_variants/sepolia/sepolia-notifications.yaml b/package_variants/sepolia/sepolia-notifications.yaml index 4e2ea41..f8e42f9 100644 --- a/package_variants/sepolia/sepolia-notifications.yaml +++ b/package_variants/sepolia/sepolia-notifications.yaml @@ -49,7 +49,7 @@ endpoints: alerts: - type: custom enabled: true - description: "Geth Sepolia Node peers count" + description: "Geth Sepolia Node peers count is below [CONDITION_VALUE]" failure-threshold: 2 success-threshold: 1 send-on-resolved: true