diff --git a/package_variants/sepolia/dappnode_package.json b/package_variants/sepolia/dappnode_package.json new file mode 100644 index 0000000..0263166 --- /dev/null +++ b/package_variants/sepolia/dappnode_package.json @@ -0,0 +1,9 @@ +{ + "name": "sepolia-reth.dnp.dappnode.eth", + "version": "0.1.2", + "links": { + "api": "http://sepolia-reth.dappnode:8545", + "apiEngine": "http://sepolia-reth.dappnode:8551", + "homepage": "https://github.com/dappnode/DAppNodePackage-reth-generic#readme" + } +} diff --git a/package_variants/sepolia/docker-compose.yml b/package_variants/sepolia/docker-compose.yml new file mode 100644 index 0000000..c45a29f --- /dev/null +++ b/package_variants/sepolia/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3.5" +services: + reth: + build: + args: + NETWORK: sepolia + P2P_PORT: 30507 + ports: + - 30507:30507/tcp + - 30507:30507/udp diff --git a/package_variants/sepolia/hoodi-notifications.yaml b/package_variants/sepolia/hoodi-notifications.yaml new file mode 100644 index 0000000..66321d7 --- /dev/null +++ b/package_variants/sepolia/hoodi-notifications.yaml @@ -0,0 +1,55 @@ +endpoints: + - name: "Sepolia ETH Node Syncing Check" + enabled: true + group: "sepolia" + url: "http://sepolia-reth.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-reth-eth-syncing" + isBanner: false + priority: "medium" + alerts: + - type: custom + enabled: true + description: "Reth Sepolia Node syncing" + failure-threshold: 4 + success-threshold: 1 + send-on-resolved: true + - name: "Sepolia ETH Node Peers count Check" + enabled: true + group: "sepolia" + url: "http://sepolia-reth.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 for 5 minutes and another one when it has more than the peers defined." + correlationId: "sepolia-reth-eth-peers" + isBanner: false + priority: "low" + metric: + min: 0 + max: 50 + unit: "peers" + alerts: + - type: custom + enabled: true + description: "Reth Sepolia Node peers count is below [CONDITION_VALUE]" + failure-threshold: 10 + success-threshold: 1 + send-on-resolved: true \ No newline at end of file diff --git a/package_variants/sepolia/prometheus-targets.json b/package_variants/sepolia/prometheus-targets.json new file mode 100644 index 0000000..7aa503e --- /dev/null +++ b/package_variants/sepolia/prometheus-targets.json @@ -0,0 +1,11 @@ +[ + { + "labels": { + "package": "sepolia-reth.dnp.dappnode.eth", + "service": "reth" + }, + "targets": [ + "sepolia-reth.dappnode:6060" + ] + } +] \ No newline at end of file