From c94ab226f991fb9d64057fcd1bd88399a86354fc Mon Sep 17 00:00:00 2001 From: szczerbp <01159503@pw.edu.pl> Date: Tue, 21 Jan 2025 19:52:11 +0100 Subject: [PATCH 1/7] - Added update script for Lighthouse - Extended update scripts for Nimbus and Geth --- distros/raspberry_pi/scripts/update_geth.sh | 55 +++++++++++++--- .../raspberry_pi/scripts/update_lighthouse.sh | 64 +++++++++++++++++++ distros/raspberry_pi/scripts/update_nimbus.sh | 56 +++++++++++++--- 3 files changed, 156 insertions(+), 19 deletions(-) create mode 100644 distros/raspberry_pi/scripts/update_lighthouse.sh diff --git a/distros/raspberry_pi/scripts/update_geth.sh b/distros/raspberry_pi/scripts/update_geth.sh index 822d130..56f7a68 100644 --- a/distros/raspberry_pi/scripts/update_geth.sh +++ b/distros/raspberry_pi/scripts/update_geth.sh @@ -5,21 +5,58 @@ # https://geth.ethereum.org/docs/getting-started/installing-geth # +# Check if current Geth version is the latest +GETH_LATEST=$(curl -s https://api.github.com/repos/ethereum/go-ethereum/releases/latest | jq '.tag_name' | grep -o '[0-9.]*') +GETH_CURRENT=$(geth version | grep -o 'Version: [0-9.]*' | grep -o [0-9.]*) + +if [ "$GETH_LATEST" = "$GETH_CURRENT" ]; then + echo "Geth is up to date (version: $GETH_CURRENT)." + exit +else + echo "Update available: current version is $GETH_CURRENT, but latest version is $GETH_LATEST." +fi + # check for required privileges -if [ "$EUID" -ne 0 ] - then echo "Root privileges are required. Re-run with sudo" - exit 1 +if [ "$EUID" -ne 0 ]; then + echo -e "\nRoot privileges are required. Re-run with sudo" + exit 1 fi -# Stopping the node -echo "Stop Geth service" -sudo systemctl stop w3p_geth.service +# Temporary file for storing names of stopped Geth services +TMP_GETH_SERVICES="/tmp/stopped_geth_services" + +# Stop running geth services +echo -e "\nStopping all running Geth services..." +for service in $(systemctl list-units --type=service --state=running | grep geth | awk '{print $1}'); do + echo "Stopping $service..." + sudo systemctl stop "$service" + echo "$service" >>"$TMP_GETH_SERVICES" +done # Updating an existing Geth installation to the latest version sudo apt-get update sudo apt-get -y install ethereum sudo apt-get -y upgrade geth -# Starting the node -echo "Start Geth service" -sudo systemctl start w3p_geth.service \ No newline at end of file +# Start stopped Geth services +if [[ -s "$TMP_GETH_SERVICES" ]]; then + echo -e "\nStarting Geth services..." + while IFS= read -r service; do + echo "Starting $service..." + systemctl start "$service" + done <"$TMP_GETH_SERVICES" +fi + +# Remove temporary file +rm -f "$TMP_GETH_SERVICES" + +# Check if update was successful +GETH_CURRENT=$(geth version | grep -o 'Version: [0-9.]*' | grep -o [0-9.]*) + +if [ "$GETH_LATEST" = "$GETH_CURRENT" ]; then + echo -e "\nGeth updated succesfully (version: $GETH_CURRENT)." + exit 0 +else + echo "\nUpdate failed. Current Geth version: $GETH_CURRENT, but the latest is: $GETH_LATEST" + exit 2 +fi \ No newline at end of file diff --git a/distros/raspberry_pi/scripts/update_lighthouse.sh b/distros/raspberry_pi/scripts/update_lighthouse.sh new file mode 100644 index 0000000..e0d000f --- /dev/null +++ b/distros/raspberry_pi/scripts/update_lighthouse.sh @@ -0,0 +1,64 @@ +#!/bin/bash +# Description: This script updates Lighthouse to the latest version. + +# Web3 Pi - Lighthouse version update +# https://lighthouse-book.sigmaprime.io/installation.html +# + +# Check if current lighthouse version is the latest +LIGHTHOUSE_LATEST=$(curl -s https://api.github.com/repos/sigp/lighthouse/releases/latest | jq -r .tag_name) +LIGHTHOUSE_CURRENT=$(lighthouse --version | grep -o 'v[0-9.]*') + +if [ "$LIGHTHOUSE_LATEST" = "$LIGHTHOUSE_CURRENT" ]; then + echo "Lighthouse is up to date (version: $LIGHTHOUSE_CURRENT)." + exit +else + echo "Update available: current version is $LIGHTHOUSE_CURRENT, but latest version is $LIGHTHOUSE_LATEST." +fi + +# Check for required privileges +if [ "$EUID" -ne 0 ]; then + echo -e "\nRoot privileges are required. Re-run with sudo" + exit 1 +fi + +# Temporary file for storing names of stopped lighthouse services +TMP_LIGHTHOUSE_SERVICES="/tmp/stopped_lighthouse_services" + +# Stop every service with lighthouse in name +echo -e "\nStopping all running Lighthouse services..." +for service in $(systemctl list-units --type=service --state=running | grep lighthouse | awk '{print $1}'); do + echo "Stopping $service..." + sudo systemctl stop "$service" + echo "$service" >>"$TMP_LIGHTHOUSE_SERVICES" +done + +# Update Lighthouse +echo -e "\nDownloading latest version..." +curl -LO https://github.com/sigp/lighthouse/releases/download/${LIGHTHOUSE_LATEST}/lighthouse-${LIGHTHOUSE_LATEST}-aarch64-unknown-linux-gnu.tar.gz +tar -xvf lighthouse-${LIGHTHOUSE_LATEST}-aarch64-unknown-linux-gnu.tar.gz +mv ./lighthouse /usr/bin/lighthouse +rm -f lighthouse-${LIGHTHOUSE_LATEST}-aarch64-unknown-linux-gnu.tar.gz lighthouse-${LIGHTHOUSE_LATEST} + +# Start stopped lighthouse services +if [[ -s "$TMP_LIGHTHOUSE_SERVICES" ]]; then + echo -e "\nStarting Lighthouse services..." + while IFS= read -r service; do + echo "Starting $service..." + systemctl start "$service" + done <"$TMP_LIGHTHOUSE_SERVICES" +fi + +# Remove temporary file +rm -f "$TMP_LIGHTHOUSE_SERVICES" + +# Check if update was successful +LIGHTHOUSE_CURRENT=$(lighthouse --version | grep -o 'v[0-9.]*') + +if [ "$LIGHTHOUSE_LATEST" = "$LIGHTHOUSE_CURRENT" ]; then + echo -e "\nLighthouse updated succesfully (version: $LIGHTHOUSE_CURRENT)." + exit 0 +else + echo "\nUpdate failed. Current Lighthouse version: $LIGHTHOUSE_CURRENT, but the latest is: $LIGHTHOUSE_LATEST" + exit 2 +fi diff --git a/distros/raspberry_pi/scripts/update_nimbus.sh b/distros/raspberry_pi/scripts/update_nimbus.sh index b42be41..fbda163 100644 --- a/distros/raspberry_pi/scripts/update_nimbus.sh +++ b/distros/raspberry_pi/scripts/update_nimbus.sh @@ -1,25 +1,61 @@ #!/bin/bash # Description: This script updates Nimbus to the latest version. -# # Web3 Pi - Nimbus version update # https://nimbus.guide/keep-updated.html # +# Check if current Nimbus version is the latest +NIMBUS_LATEST=$(curl -s https://api.github.com/repos/status-im/nimbus-eth2/releases/latest | jq '.tag_name' | grep -o [0-9.]*) +NIMBUS_CURRENT=$(nimbus_beacon_node --version | grep -o 'Nimbus beacon node v[0-9.]*' | grep -o [0-9.]*) + +if [ "$NIMBUS_LATEST" = "$NIMBUS_CURRENT" ]; then + echo "Nimbus is up to date (version: $NIMBUS_CURRENT)." + exit +else + echo "Update available: current version is $NIMBUS_CURRENT, but latest version is $NIMBUS_LATEST." +fi + # check for required privileges -if [ "$EUID" -ne 0 ] - then echo "Root privileges are required. Re-run with sudo" - exit 1 +if [ "$EUID" -ne 0 ]; then + echo -e "\nRoot privileges are required. Re-run with sudo" + exit 1 fi -# Stopping the node -echo "Stop Nimbus service" -sudo systemctl stop w3p_nimbus-beacon.service +# Temporary file for storing names of stopped Nimbus services +TMP_NIMBUS_SERVICES="/tmp/stopped_nimbus_services" + +# Stop running nimbus services +echo -e "\nStopping all running Nimbus services..." +for service in $(systemctl list-units --type=service --state=running | grep nimbus | awk '{print $1}'); do + echo "Stopping $service..." + sudo systemctl stop "$service" + echo "$service" >>"$TMP_NIMBUS_SERVICES" +done # Updating an existing Nimbus installation to the latest version sudo apt-get update sudo apt-get -y upgrade nimbus-beacon-node -# Starting the node -echo "Start Nimbus service" -sudo systemctl start w3p_nimbus-beacon.service \ No newline at end of file +# Start stopped Nimbus services +if [[ -s "$TMP_NIMBUS_SERVICES" ]]; then + echo -e "\nStarting Nimbus services..." + while IFS= read -r service; do + echo "Starting $service..." + systemctl start "$service" + done <"$TMP_NIMBUS_SERVICES" +fi + +# Remove temporary file +rm -f "$TMP_NIMBUS_SERVICES" + +# Check if update was successful +NIMBUS_CURRENT=$(nimbus_beacon_node --version | grep -o 'Nimbus beacon node v[0-9.]*' | grep -o [0-9.]*) + +if [ "$NIMBUS_LATEST" = "$NIMBUS_CURRENT" ]; then + echo -e "\nNimbus updated succesfully (version: $NIMBUS_CURRENT)." + exit 0 +else + echo "\nUpdate failed. Current Nimbus version: $NIMBUS_CURRENT, but the latest is: $NIMBUS_LATEST" + exit 2 +fi \ No newline at end of file From 44a1d0ec383944c96f537f47e6a7653924a5eeab Mon Sep 17 00:00:00 2001 From: szczerbp <01159503@pw.edu.pl> Date: Sat, 22 Feb 2025 17:38:08 +0100 Subject: [PATCH 2/7] added new dashboard, changed branch name in file --- .../geth_sync_stages_monitoring.json | 4003 +++++++++++++++++ distros/raspberry_pi/rc.local | 2 +- 2 files changed, 4004 insertions(+), 1 deletion(-) create mode 100644 distros/raspberry_pi/grafana/dashboards/geth_sync_stages_monitoring.json diff --git a/distros/raspberry_pi/grafana/dashboards/geth_sync_stages_monitoring.json b/distros/raspberry_pi/grafana/dashboards/geth_sync_stages_monitoring.json new file mode 100644 index 0000000..c1302f1 --- /dev/null +++ b/distros/raspberry_pi/grafana/dashboards/geth_sync_stages_monitoring.json @@ -0,0 +1,4003 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P4B5EB7AC8565B06F" + }, + "enable": true, + "hide": false, + "iconColor": "#a2a2a2", + "mappings": { + "title": { + "source": "field", + "value": "tags" + } + }, + "name": "Show Geth stage starts", + "target": { + "fromAnnotations": true, + "name": "New annotation", + "query": "SELECT time as \"time\", stage as \"text\" FROM sync_status WHERE type = 'start' AND $timeFilter", + "queryType": "tags", + "rawQuery": true, + "refId": "", + "tagsColumn": "", + "textColumn": "text", + "textEditor": true, + "timeEndColumn": "", + "titleColumn": "" + } + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 2, + "links": [], + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 18, + "panels": [], + "title": "Single Device Node", + "type": "row" + }, + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "fieldMinMax": false, + "mappings": [ + { + "options": { + "from": 0, + "result": { + "index": 0, + "text": "inactive" + }, + "to": 25 + }, + "type": "range" + }, + { + "options": { + "from": 26, + "result": { + "index": 1, + "text": "syncing" + }, + "to": 75 + }, + "type": "range" + }, + { + "options": { + "from": 76, + "result": { + "index": 2, + "text": "synced" + }, + "to": 100 + }, + "type": "range" + } + ], + "noValue": "inactive", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#535353", + "value": null + }, + { + "color": "orange", + "value": 50 + }, + { + "color": "green", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 0, + "y": 1 + }, + "id": 47, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "valueSize": 20 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "datasource": "InfluxDB_v1", + "groupBy": [], + "measurement": "status_node", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT \"active_percent\" FROM \"status_node\" WHERE (\"host\"::tag =~ /^$|dev4$/) AND $timeFilter", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "active_percent" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$single_dev$/" + } + ] + } + ], + "title": "Node status", + "type": "stat" + }, + { + "datasource": { + "type": "influxdb", + "uid": "P4B5EB7AC8565B06F" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "fillOpacity": 69, + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineWidth": 0, + "spanNulls": false + }, + "fieldMinMax": false, + "mappings": [ + { + "options": { + "pattern": "/.*Not*./", + "result": { + "color": "transparent", + "index": 0 + } + }, + "type": "regex" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 0 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 20, + "x": 4, + "y": 1 + }, + "id": 46, + "options": { + "alignValue": "left", + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "mergeValues": true, + "rowHeight": 0.75, + "showValue": "never", + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "alias": "Looking for peers", + "groupBy": [], + "measurement": "sync_status", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT \"state_looking_for_peers\" FROM \"sync_status\" WHERE $timeFilter", + "rawQuery": true, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "state" + ], + "type": "field" + } + ] + ], + "tags": [] + }, + { + "alias": "Syncing beacon headers", + "datasource": { + "type": "influxdb", + "uid": "P4B5EB7AC8565B06F" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT \"state_syncing_beacon_headers\" FROM \"sync_status\" WHERE $timeFilter", + "rawQuery": true, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + }, + { + "alias": "Downloading chain", + "datasource": { + "type": "influxdb", + "uid": "P4B5EB7AC8565B06F" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT \"state_downloading_chain\" FROM \"sync_status\" WHERE $timeFilter", + "rawQuery": true, + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + }, + { + "alias": "Downloading state", + "datasource": { + "type": "influxdb", + "uid": "P4B5EB7AC8565B06F" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT \"state_downloading_state\" FROM \"sync_status\" WHERE $timeFilter", + "rawQuery": true, + "refId": "D", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + }, + { + "alias": "Healing state", + "datasource": { + "type": "influxdb", + "uid": "P4B5EB7AC8565B06F" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT \"state_healing_state\" FROM \"sync_status\" WHERE $timeFilter", + "rawQuery": true, + "refId": "E", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + }, + { + "alias": "Generating state snapshots", + "datasource": { + "type": "influxdb", + "uid": "P4B5EB7AC8565B06F" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT \"state_generating_state_snapshot\" FROM \"sync_status\" WHERE $timeFilter", + "rawQuery": true, + "refId": "G", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + }, + { + "alias": "Upgrading chain index", + "datasource": { + "type": "influxdb", + "uid": "P4B5EB7AC8565B06F" + }, + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT \"state_upgrading_chain_index\" FROM \"sync_status\" WHERE $timeFilter", + "rawQuery": true, + "refId": "F", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "title": "Geth sync stages", + "type": "state-timeline" + }, + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "fieldMinMax": false, + "mappings": [ + { + "options": { + "from": 0, + "result": { + "index": 0, + "text": "inactive" + }, + "to": 25 + }, + "type": "range" + }, + { + "options": { + "from": 26, + "result": { + "index": 1, + "text": "waiting" + }, + "to": 45 + }, + "type": "range" + }, + { + "options": { + "from": 46, + "result": { + "index": 2, + "text": "syncing" + }, + "to": 76 + }, + "type": "range" + }, + { + "options": { + "from": 77, + "result": { + "index": 3, + "text": "synced" + }, + "to": 100 + }, + "type": "range" + } + ], + "noValue": "inactive", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#535353", + "value": null + }, + { + "color": "light-yellow", + "value": 40 + }, + { + "color": "semi-dark-orange", + "value": 50 + }, + { + "color": "green", + "value": 90 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 0, + "y": 4 + }, + "id": 48, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "valueSize": 20 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "datasource": "InfluxDB_v1", + "groupBy": [], + "measurement": "status_exec", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "active_percent" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$single_dev$/" + } + ] + } + ], + "title": "Execution", + "type": "stat" + }, + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "fieldMinMax": false, + "mappings": [ + { + "options": { + "from": 0, + "result": { + "index": 0, + "text": "inactive" + }, + "to": 25 + }, + "type": "range" + }, + { + "options": { + "from": 26, + "result": { + "index": 1, + "text": "waiting" + }, + "to": 45 + }, + "type": "range" + }, + { + "options": { + "from": 46, + "result": { + "index": 2, + "text": "syncing" + }, + "to": 76 + }, + "type": "range" + }, + { + "options": { + "from": 77, + "result": { + "index": 3, + "text": "synced" + }, + "to": 100 + }, + "type": "range" + } + ], + "noValue": "inactive", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#535353", + "value": null + }, + { + "color": "light-yellow", + "value": 40 + }, + { + "color": "semi-dark-orange", + "value": 50 + }, + { + "color": "green", + "value": 90 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 2, + "y": 4 + }, + "id": 49, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "valueSize": 20 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "datasource": "InfluxDB_v1", + "groupBy": [], + "measurement": "status_consensus", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "active_percent" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$single_dev$/" + } + ] + } + ], + "title": "Consensus", + "type": "stat" + }, + { + "datasource": "InfluxDB_v1", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 17, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 4, + "x": 0, + "y": 6 + }, + "id": 14, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "datasource": "InfluxDB_v1", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "chain", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "last_block" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$single_dev$/" + } + ] + } + ], + "title": "Chain head", + "type": "timeseries" + }, + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd", + "seriesBy": "last" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "CPU usage", + "axisPlacement": "auto", + "axisSoftMin": 0, + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": 60000, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "fieldMinMax": false, + "mappings": [], + "max": 400, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 320 + } + ] + }, + "unit": "percent" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "temp" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "right" + }, + { + "id": "custom.axisLabel", + "value": "CPU temperature" + }, + { + "id": "custom.axisColorMode", + "value": "text" + }, + { + "id": "unit", + "value": "celsius" + }, + { + "id": "min", + "value": 30 + }, + { + "id": "max", + "value": 90 + }, + { + "id": "color", + "value": { + "fixedColor": "dark-blue", + "mode": "continuous-blues", + "seriesBy": "max" + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 20, + "x": 4, + "y": 6 + }, + "id": 44, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "alias": "cpu_usage", + "datasource": "InfluxDB_v1", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + } + ], + "measurement": "cpu", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"used_percent\") FROM \"cpu\" WHERE (\"host\"::tag = 'ethtest1.local') AND $timeFilter GROUP BY time($__interval)", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "used_percent" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$single_dev$/" + } + ] + }, + { + "alias": "temp", + "datasource": "InfluxDB_v1", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + } + ], + "hide": false, + "measurement": "temp", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"used_percent\") FROM \"cpu\" WHERE (\"host\"::tag = 'ethtest1.local') AND $timeFilter GROUP BY time($__interval)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "deg_C" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$single_dev$/" + } + ] + } + ], + "title": "CPU load & temperature history", + "type": "timeseries" + }, + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "displayName": "progress", + "fieldMinMax": false, + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 10, + "w": 4, + "x": 0, + "y": 12 + }, + "id": 16, + "options": { + "displayMode": "lcd", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "maxVizHeight": 300, + "minVizHeight": 16, + "minVizWidth": 0, + "namePlacement": "auto", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "text": { + "titleSize": 10, + "valueSize": 10 + }, + "valueMode": "text" + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "datasource": "InfluxDB_v1", + "groupBy": [], + "measurement": "chain", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "sync_part_perc_0" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$single_dev$/" + } + ] + }, + { + "datasource": "InfluxDB_v1", + "groupBy": [], + "hide": false, + "measurement": "chain", + "orderByTime": "ASC", + "policy": "default", + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "sync_part_perc_1" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$single_dev$/" + } + ] + }, + { + "datasource": "InfluxDB_v1", + "groupBy": [], + "hide": false, + "measurement": "chain", + "orderByTime": "ASC", + "policy": "default", + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "sync_part_perc_2" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$single_dev$/" + } + ] + }, + { + "datasource": "InfluxDB_v1", + "groupBy": [], + "hide": false, + "measurement": "chain", + "orderByTime": "ASC", + "policy": "default", + "refId": "D", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "sync_part_perc_3" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$single_dev$/" + } + ] + } + ], + "title": "Sync progress", + "type": "bargauge" + }, + { + "datasource": "InfluxDB_v1", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Memory used GB", + "axisPlacement": "auto", + "axisSoftMax": 8000000000, + "axisSoftMin": 0, + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 17, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": 60000, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed+area" + } + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 7000000000 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [ + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": [ + "mem.mean" + ], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": false + } + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 20, + "x": 4, + "y": 12 + }, + "id": 2, + "options": { + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true, + "sortBy": "Name", + "sortDesc": false + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "datasource": "InfluxDB_v1", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "mem", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"used_bytes\") FROM \"mem\" WHERE (\"host\"::tag = 'ethtest1.local') AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "used_bytes" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$single_dev$/" + } + ] + }, + { + "datasource": "InfluxDB_v1", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "swap", + "orderByTime": "ASC", + "policy": "default", + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "used_bytes" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$single_dev$/" + } + ] + } + ], + "title": "Memory use", + "type": "timeseries" + }, + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "green", + "mode": "fixed", + "seriesBy": "last" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Transfer rate", + "axisPlacement": "auto", + "axisSoftMin": 0, + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": 60000, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "Bps" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "upload" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "yellow", + "mode": "fixed" + } + } + ] + } + ] + }, + "gridPos": { + "h": 5, + "w": 10, + "x": 4, + "y": 17 + }, + "id": 45, + "options": { + "legend": { + "calcs": [ + "max" + ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "alias": "download", + "datasource": "InfluxDB_v1", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + } + ], + "hide": false, + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"used_percent\") FROM \"cpu\" WHERE (\"host\"::tag = 'ethtest1.local') AND $timeFilter GROUP BY time($__interval)", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "download_rate" + ], + "type": "field" + }, + { + "params": [], + "type": "last" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$single_dev$/" + } + ] + }, + { + "alias": "upload", + "datasource": "InfluxDB_v1", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + } + ], + "hide": false, + "measurement": "net", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"used_percent\") FROM \"cpu\" WHERE (\"host\"::tag = 'ethtest1.local') AND $timeFilter GROUP BY time($__interval)", + "rawQuery": false, + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "upload_rate" + ], + "type": "field" + }, + { + "params": [], + "type": "last" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$single_dev$/" + } + ] + } + ], + "title": "Network", + "type": "timeseries" + }, + { + "datasource": "InfluxDB_v1", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Disk used GB", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 17, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepAfter", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed+area" + } + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 1800000000000 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 10, + "x": 14, + "y": 17 + }, + "id": 9, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false, + "sortBy": "Name", + "sortDesc": false + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "datasource": "InfluxDB_v1", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "disk", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "used_bytes" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$single_dev$/" + } + ] + } + ], + "title": "Disk use", + "type": "timeseries" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 22 + }, + "id": 19, + "panels": [ + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "fieldMinMax": false, + "mappings": [ + { + "options": { + "from": 0, + "result": { + "index": 0, + "text": "inactive" + }, + "to": 25 + }, + "type": "range" + }, + { + "options": { + "from": 26, + "result": { + "index": 1, + "text": "syncing" + }, + "to": 75 + }, + "type": "range" + }, + { + "options": { + "from": 76, + "result": { + "index": 2, + "text": "synced" + }, + "to": 100 + }, + "type": "range" + } + ], + "noValue": "inactive", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#535353" + }, + { + "color": "orange", + "value": 50 + }, + { + "color": "green", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 4, + "x": 0, + "y": 21 + }, + "id": 31, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "datasource": "InfluxDB_v1", + "groupBy": [], + "measurement": "status_node", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "active_percent" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$dual_dev$/" + } + ] + } + ], + "title": "Node status", + "type": "stat" + }, + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "displayName": "CPU", + "fieldMinMax": false, + "mappings": [], + "max": 400, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 320 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 3, + "x": 4, + "y": 21 + }, + "id": 36, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "datasource": "InfluxDB_v1", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "cpu", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "used_percent" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$dual_exec$/" + } + ] + } + ], + "title": "Exec dev CPU load", + "type": "gauge" + }, + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd", + "seriesBy": "last" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Load percent", + "axisPlacement": "auto", + "axisSoftMin": 0, + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "max": 400, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 320 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 17, + "x": 7, + "y": 21 + }, + "id": 37, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "alias": "", + "datasource": "InfluxDB_v1", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + } + ], + "measurement": "cpu", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"used_percent\") FROM \"cpu\" WHERE (\"host\"::tag = 'ethtest1.local') AND $timeFilter GROUP BY time($__interval)", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "used_percent" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$dual_exec$/" + } + ] + } + ], + "title": "Execution device CPU load history", + "type": "timeseries" + }, + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "fieldMinMax": false, + "mappings": [ + { + "options": { + "from": 0, + "result": { + "index": 0, + "text": "inactive" + }, + "to": 25 + }, + "type": "range" + }, + { + "options": { + "from": 26, + "result": { + "index": 1, + "text": "waiting" + }, + "to": 45 + }, + "type": "range" + }, + { + "options": { + "from": 46, + "result": { + "index": 2, + "text": "syncing" + }, + "to": 75 + }, + "type": "range" + }, + { + "options": { + "from": 76, + "result": { + "index": 3, + "text": "synced" + }, + "to": 100 + }, + "type": "range" + } + ], + "noValue": "inactive", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#535353" + }, + { + "color": "yellow", + "value": 40 + }, + { + "color": "orange", + "value": 50 + }, + { + "color": "green", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 0, + "y": 23 + }, + "id": 32, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "datasource": "InfluxDB_v1", + "groupBy": [], + "measurement": "status_exec", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "active_percent" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$dual_dev$/" + } + ] + } + ], + "title": "Execution", + "type": "stat" + }, + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "fieldMinMax": false, + "mappings": [ + { + "options": { + "from": 0, + "result": { + "index": 0, + "text": "inactive" + }, + "to": 25 + }, + "type": "range" + }, + { + "options": { + "from": 26, + "result": { + "index": 1, + "text": "waiting" + }, + "to": 45 + }, + "type": "range" + }, + { + "options": { + "from": 46, + "result": { + "index": 2, + "text": "syncing" + }, + "to": 75 + }, + "type": "range" + }, + { + "options": { + "from": 76, + "result": { + "index": 3, + "text": "synced" + }, + "to": 100 + }, + "type": "range" + } + ], + "noValue": "inactive", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#535353" + }, + { + "color": "yellow", + "value": 40 + }, + { + "color": "orange", + "value": 50 + }, + { + "color": "green", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 2, + "y": 23 + }, + "id": 33, + "options": { + "colorMode": "background", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "datasource": "InfluxDB_v1", + "groupBy": [], + "measurement": "status_consensus", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "active_percent" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$dual_dev$/" + } + ] + } + ], + "title": "Consensus", + "type": "stat" + }, + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "displayName": "progress", + "fieldMinMax": false, + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "percentage", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 4, + "x": 0, + "y": 25 + }, + "id": 35, + "options": { + "displayMode": "lcd", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "maxVizHeight": 300, + "minVizHeight": 16, + "minVizWidth": 0, + "namePlacement": "auto", + "orientation": "vertical", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "text": { + "titleSize": 10, + "valueSize": 10 + }, + "valueMode": "text" + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "datasource": "InfluxDB_v1", + "groupBy": [], + "measurement": "chain", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "sync_part_perc_0" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$dual_dev$/" + } + ] + }, + { + "datasource": "InfluxDB_v1", + "groupBy": [], + "hide": false, + "measurement": "chain", + "orderByTime": "ASC", + "policy": "default", + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "sync_part_perc_1" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$dual_dev$/" + } + ] + }, + { + "datasource": "InfluxDB_v1", + "groupBy": [], + "hide": false, + "measurement": "chain", + "orderByTime": "ASC", + "policy": "default", + "refId": "C", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "sync_part_perc_2" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$dual_dev$/" + } + ] + }, + { + "datasource": "InfluxDB_v1", + "groupBy": [], + "hide": false, + "measurement": "chain", + "orderByTime": "ASC", + "policy": "default", + "refId": "D", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "sync_part_perc_3" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$dual_dev$/" + } + ] + } + ], + "title": "Sync progress", + "type": "bargauge" + }, + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Memory used GB", + "axisPlacement": "auto", + "axisSoftMax": 8000000000, + "axisSoftMin": 0, + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 17, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed+area" + } + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 7000000000 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [ + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": [ + "mem.mean" + ], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": false + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 10, + "x": 4, + "y": 27 + }, + "id": 38, + "options": { + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true, + "sortBy": "Name", + "sortDesc": false + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "datasource": "InfluxDB_v1", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "mem", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"used_bytes\") FROM \"mem\" WHERE (\"host\"::tag = 'ethtest1.local') AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "used_bytes" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$dual_exec$/" + } + ] + }, + { + "datasource": "InfluxDB_v1", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "swap", + "orderByTime": "ASC", + "policy": "default", + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "used_bytes" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$dual_exec$/" + } + ] + } + ], + "title": "Execution device memory use", + "type": "timeseries" + }, + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Disk used GB", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 17, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed+area" + } + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 1800000000000 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 10, + "x": 14, + "y": 27 + }, + "id": 39, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false, + "sortBy": "Name", + "sortDesc": false + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "datasource": "InfluxDB_v1", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "disk", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "used_bytes" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$dual_exec$/" + } + ] + } + ], + "title": "Execution device disk use", + "type": "timeseries" + }, + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds", + "seriesBy": "last" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisGridShow": false, + "axisLabel": "Sync status", + "axisPlacement": "auto", + "axisSoftMax": 100, + "axisSoftMin": 0, + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 31, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepBefore", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 3, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [ + { + "options": { + "from": 0, + "result": { + "index": 0, + "text": "0" + }, + "to": 20 + }, + "type": "range" + }, + { + "options": { + "from": 21, + "result": { + "index": 1, + "text": "S" + }, + "to": 80 + }, + "type": "range" + }, + { + "options": { + "from": 81, + "result": { + "index": 2, + "text": "1" + }, + "to": 100 + }, + "type": "range" + } + ], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 4, + "x": 0, + "y": 31 + }, + "id": 41, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "alias": "", + "datasource": "InfluxDB_v1", + "groupBy": [], + "measurement": "status_node", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"used_percent\") FROM \"cpu\" WHERE (\"host\"::tag = 'ethtest1.local') AND $timeFilter GROUP BY time($__interval)", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "active_percent" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$dual_dev$/" + } + ] + } + ], + "title": "Sync status history", + "type": "timeseries" + }, + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "displayName": "CPU", + "fieldMinMax": false, + "mappings": [], + "max": 400, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 320 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 3, + "x": 4, + "y": 33 + }, + "id": 21, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "datasource": "InfluxDB_v1", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "cpu", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "used_percent" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$dual_consensus$/" + } + ] + } + ], + "title": "Cons dev CPU load", + "type": "gauge" + }, + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "continuous-GrYlRd", + "seriesBy": "last" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Load percent", + "axisPlacement": "auto", + "axisSoftMin": 0, + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "scheme", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "max": 400, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 320 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 17, + "x": 7, + "y": 33 + }, + "id": 23, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.5.1", + "targets": [ + { + "alias": "", + "datasource": "InfluxDB_v1", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + } + ], + "measurement": "cpu", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"used_percent\") FROM \"cpu\" WHERE (\"host\"::tag = 'ethtest1.local') AND $timeFilter GROUP BY time($__interval)", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "used_percent" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$dual_consensus$/" + } + ] + } + ], + "title": "Consensus device CPU load history", + "type": "timeseries" + }, + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 4, + "x": 0, + "y": 37 + }, + "id": 43, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "/^chain\\.last_block$/", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.2.2", + "targets": [ + { + "datasource": "InfluxDB_v1", + "groupBy": [], + "measurement": "chain", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "last_block" + ], + "type": "field" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$dual_dev$/" + } + ] + } + ], + "title": "Latest block", + "type": "stat" + }, + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 17, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineStyle": { + "fill": "solid" + }, + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 4, + "x": 0, + "y": 39 + }, + "id": 29, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": "InfluxDB_v1", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "chain", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "last_block" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$dual_dev$/" + } + ] + } + ], + "title": "Chain head", + "type": "timeseries" + }, + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Memory used GB", + "axisPlacement": "auto", + "axisSoftMax": 8000000000, + "axisSoftMin": 0, + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 17, + "gradientMode": "opacity", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed+area" + } + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 7000000000 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [ + { + "__systemRef": "hideSeriesFrom", + "matcher": { + "id": "byNames", + "options": { + "mode": "exclude", + "names": [ + "mem.mean" + ], + "prefix": "All except:", + "readOnly": true + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": false, + "tooltip": false, + "viz": false + } + } + ] + } + ] + }, + "gridPos": { + "h": 6, + "w": 10, + "x": 4, + "y": 39 + }, + "id": 25, + "options": { + "legend": { + "calcs": [ + "lastNotNull" + ], + "displayMode": "list", + "placement": "bottom", + "showLegend": true, + "sortBy": "Name", + "sortDesc": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": "InfluxDB_v1", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "mem", + "orderByTime": "ASC", + "policy": "default", + "query": "SELECT mean(\"used_bytes\") FROM \"mem\" WHERE (\"host\"::tag = 'ethtest1.local') AND $timeFilter GROUP BY time($__interval) fill(null)", + "rawQuery": false, + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "used_bytes" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$dual_consensus$/" + } + ] + }, + { + "datasource": "InfluxDB_v1", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "hide": false, + "measurement": "swap", + "orderByTime": "ASC", + "policy": "default", + "refId": "B", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "used_bytes" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$dual_consensus$/" + } + ] + } + ], + "title": "Consensus device memory use", + "type": "timeseries" + }, + { + "datasource": "InfluxDB_v1", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Disk used GB", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 17, + "gradientMode": "hue", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "smooth", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "dashed+area" + } + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 1800000000000 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 10, + "x": 14, + "y": 39 + }, + "id": 27, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false, + "sortBy": "Name", + "sortDesc": false + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": "InfluxDB_v1", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "disk", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "used_bytes" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "key": "host::tag", + "operator": "=~", + "value": "/^$dual_consensus$/" + } + ] + } + ], + "title": "Consensus device disk use", + "type": "timeseries" + } + ], + "title": "Dual Device Node", + "type": "row" + } + ], + "preload": false, + "refresh": "10s", + "schemaVersion": 40, + "tags": [], + "templating": { + "list": [ + { + "current": { + "text": "eop-1_s", + "value": "eop-1_s" + }, + "datasource": "InfluxDB_v1", + "definition": "SHOW TAG VALUES FROM \"status_node\" with Key= \"host\" ", + "description": "Single device Ethereum nodes", + "includeAll": false, + "label": "Single device nodes", + "name": "single_dev", + "options": [], + "query": "SHOW TAG VALUES FROM \"status_node\" with Key= \"host\" ", + "refresh": 1, + "regex": "/^.*_s$/", + "type": "query" + }, + { + "current": { + "text": "", + "value": "" + }, + "datasource": "InfluxDB_v1", + "definition": "SHOW TAG VALUES FROM \"status_node\" with Key= \"host\" ", + "description": "Ethereum node based on two devices", + "includeAll": false, + "label": "Dual device nodes", + "name": "dual_dev", + "options": [], + "query": "SHOW TAG VALUES FROM \"status_node\" with Key= \"host\" ", + "refresh": 1, + "regex": "/^.*_d$/", + "type": "query" + }, + { + "current": { + "text": "_exec", + "value": "_exec" + }, + "hide": 2, + "includeAll": false, + "name": "dual_exec", + "options": [ + { + "selected": true, + "text": "_exec", + "value": "_exec" + } + ], + "query": "${dual_dev}_exec", + "type": "custom" + }, + { + "current": { + "text": "_consensus", + "value": "_consensus" + }, + "hide": 2, + "includeAll": false, + "name": "dual_consensus", + "options": [ + { + "selected": true, + "text": "_consensus", + "value": "_consensus" + } + ], + "query": "${dual_dev}_consensus", + "type": "custom" + } + ] + }, + "time": { + "from": "now-24h", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "Sync Stages Monitor", + "uid": "web3pip6p6eiob", + "version": 1, + "weekStart": "" + } \ No newline at end of file diff --git a/distros/raspberry_pi/rc.local b/distros/raspberry_pi/rc.local index d931bd0..ea29aee 100644 --- a/distros/raspberry_pi/rc.local +++ b/distros/raspberry_pi/rc.local @@ -3,7 +3,7 @@ # Web3 Pi - rc.local # -BRANCH="r0.7.5" +BRANCH="piotrek" # Function: echolog # Description: Logs messages with a timestamp prefix. If no arguments are provided, From 8e7a5baffd7e2b5918dc6de67d409c90653c40c8 Mon Sep 17 00:00:00 2001 From: szczerbp <01159503@pw.edu.pl> Date: Sat, 22 Feb 2025 18:11:23 +0100 Subject: [PATCH 3/7] added w3p_gssm support --- distros/raspberry_pi/config.txt | 2 ++ distros/raspberry_pi/gssm/run.sh | 7 ++++++ distros/raspberry_pi/gssm/w3p_gssm.service | 11 +++++++++ distros/raspberry_pi/install.sh | 26 ++++++++++++++++++++++ 4 files changed, 46 insertions(+) create mode 100644 distros/raspberry_pi/gssm/run.sh create mode 100644 distros/raspberry_pi/gssm/w3p_gssm.service diff --git a/distros/raspberry_pi/config.txt b/distros/raspberry_pi/config.txt index be7c93f..5473e6d 100644 --- a/distros/raspberry_pi/config.txt +++ b/distros/raspberry_pi/config.txt @@ -11,6 +11,8 @@ grafana=true bsm=true # Basic Eth2 Node Monitor bnm=true +# Geth Sync Stges Monitor +gssm=true # Execution endpoint address exec_url=http://localhost:8551 diff --git a/distros/raspberry_pi/gssm/run.sh b/distros/raspberry_pi/gssm/run.sh new file mode 100644 index 0000000..0248d6a --- /dev/null +++ b/distros/raspberry_pi/gssm/run.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -e +cd /opt/web3pi/geth-sync-stages-monitoring +source "venv/bin/activate" +python3 -m pip install -r requirements.txt +python3 sync_stages_monitor.py diff --git a/distros/raspberry_pi/gssm/w3p_gssm.service b/distros/raspberry_pi/gssm/w3p_gssm.service new file mode 100644 index 0000000..08aba6a --- /dev/null +++ b/distros/raspberry_pi/gssm/w3p_gssm.service @@ -0,0 +1,11 @@ +[Unit] +Description=Web3 Pi Geth Sync Monitoring +After=network.target + +[Service] +ExecStart=/opt/web3pi/geth-sync-stages-monitoring/run.sh +Restart=always +RestartSec=60s + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/distros/raspberry_pi/install.sh b/distros/raspberry_pi/install.sh index bc9e1fe..d8df141 100644 --- a/distros/raspberry_pi/install.sh +++ b/distros/raspberry_pi/install.sh @@ -589,6 +589,7 @@ if [ "$(get_install_stage)" -eq 2 ]; then cp /opt/web3pi/Ethereum-On-Raspberry-Pi/distros/raspberry_pi/geth/w3p_geth.service /etc/systemd/system/w3p_geth.service cp /opt/web3pi/Ethereum-On-Raspberry-Pi/distros/raspberry_pi/lighthouse/w3p_lighthouse-beacon.service /etc/systemd/system/w3p_lighthouse-beacon.service cp /opt/web3pi/Ethereum-On-Raspberry-Pi/distros/raspberry_pi/nimbus/w3p_nimbus-beacon.service /etc/systemd/system/w3p_nimbus-beacon.service + cp /opt/web3pi/Ethereum-On-Raspberry-Pi/distros/raspberry_pi/gssm/w3p_gssm.service /etc/systemd/system/w3p_gssm.service ## 9. CLIENTS CONFIGURATION ############################################################################ @@ -616,6 +617,9 @@ if [ "$(get_install_stage)" -eq 2 ]; then cp /opt/web3pi/Ethereum-On-Raspberry-Pi/distros/raspberry_pi/bnm/run.sh /opt/web3pi/basic-eth2-node-monitor/run.sh chmod +x /opt/web3pi/basic-eth2-node-monitor/run.sh + cp /opt/web3pi/Ethereum-On-Raspberry-Pi/distros/raspberry_pi/gssm/run.sh /opt/web3pi/geth-sync-stages-monitoring/run.sh + chmod +x /opt/web3pi/geth-sync-stages-monitoring/run.sh + chown -R ethereum:ethereum /home/ethereum/clients ## 10. ADDITIONAL DIRECTORIES ########################################################################### @@ -740,6 +744,17 @@ if [ "$(get_install_stage)" -eq 2 ]; then echolog "Service config: NoChange w3p_bnm.service" fi + if [ "$(config_get gssm)" = "true" ]; then + echolog "Service config: Enable gssm.service" + systemctl enable w3p_gssm.service + # systemctl start w3p_gssm.service + elif [ "$(config_get bnm)" = "false" ]; then + echolog "Service config: Disable w3p_gssm.service" + systemctl disable w3p_gssm.service + else + echolog "Service config: NoChange w3p_gssm.service" + fi + if [ "$(config_get geth)" = "true" ]; then echolog "Service config: Enable w3p_geth.service" systemctl enable w3p_geth.service @@ -854,6 +869,17 @@ if [ "$(get_install_stage)" -eq 100 ]; then echolog "Service config: NoChange w3p_bnm.service" fi + if [ "$(config_get gssm)" = "true" ]; then + echolog "Service config: Enable gssm.service" + systemctl enable w3p_gssm.service + systemctl start w3p_gssm.service + elif [ "$(config_get gssm)" = "false" ]; then + echolog "Service config: Disable w3p_gssm.service" + systemctl disable w3p_gssm.service + else + echolog "Service config: NoChange w3p_gssm.service" + fi + if [ "$(config_get geth)" = "true" ]; then echolog "Service config: Enable w3p_geth.service" systemctl enable w3p_geth.service From 0b8e4ca9e0d54cc579858d178b13ae2c2b2ea5d9 Mon Sep 17 00:00:00 2001 From: szczerbp <01159503@pw.edu.pl> Date: Tue, 25 Feb 2025 16:14:14 +0100 Subject: [PATCH 4/7] added creating venv for gssm --- distros/raspberry_pi/install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/distros/raspberry_pi/install.sh b/distros/raspberry_pi/install.sh index d8df141..5c368aa 100644 --- a/distros/raspberry_pi/install.sh +++ b/distros/raspberry_pi/install.sh @@ -674,6 +674,13 @@ if [ "$(get_install_stage)" -eq 2 ]; then chmod +x /opt/web3pi/basic-eth2-node-monitor/run.sh + set_status "[install.sh] - Create a virtual environment for geth-sync-stages-monitoring" + echolog "geth-sync-stages-monitoring venv conf" + cd /opt/web3pi/geth-sync-stages-monitoring + python3 -m venv venv + + chmod +x /opt/web3pi/geth-sync-stages-monitoring/run.sh + chown -R ethereum:ethereum /opt/web3pi ## 12. CLEANUP ########################################################################################### From 745955695fd6e30a10a74c4f833e58617e149bd7 Mon Sep 17 00:00:00 2001 From: szczerbp <01159503@pw.edu.pl> Date: Fri, 28 Feb 2025 05:50:33 +0100 Subject: [PATCH 5/7] added +x for gssm *.sh files --- distros/raspberry_pi/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distros/raspberry_pi/install.sh b/distros/raspberry_pi/install.sh index 5c368aa..c196a19 100644 --- a/distros/raspberry_pi/install.sh +++ b/distros/raspberry_pi/install.sh @@ -618,7 +618,7 @@ if [ "$(get_install_stage)" -eq 2 ]; then chmod +x /opt/web3pi/basic-eth2-node-monitor/run.sh cp /opt/web3pi/Ethereum-On-Raspberry-Pi/distros/raspberry_pi/gssm/run.sh /opt/web3pi/geth-sync-stages-monitoring/run.sh - chmod +x /opt/web3pi/geth-sync-stages-monitoring/run.sh + chmod +x /opt/web3pi/geth-sync-stages-monitoring/*.sh chown -R ethereum:ethereum /home/ethereum/clients @@ -679,7 +679,7 @@ if [ "$(get_install_stage)" -eq 2 ]; then cd /opt/web3pi/geth-sync-stages-monitoring python3 -m venv venv - chmod +x /opt/web3pi/geth-sync-stages-monitoring/run.sh + chmod +x /opt/web3pi/geth-sync-stages-monitoring/*.sh chown -R ethereum:ethereum /opt/web3pi From 7ee92b628d7faeb78fe6f091db3fe588443014c1 Mon Sep 17 00:00:00 2001 From: szczerbp <01159503@pw.edu.pl> Date: Fri, 28 Feb 2025 05:51:13 +0100 Subject: [PATCH 6/7] added journalctl logging for gssm --- distros/raspberry_pi/gssm/run.sh | 2 +- distros/raspberry_pi/gssm/w3p_gssm.service | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/distros/raspberry_pi/gssm/run.sh b/distros/raspberry_pi/gssm/run.sh index 0248d6a..f5197ec 100644 --- a/distros/raspberry_pi/gssm/run.sh +++ b/distros/raspberry_pi/gssm/run.sh @@ -4,4 +4,4 @@ set -e cd /opt/web3pi/geth-sync-stages-monitoring source "venv/bin/activate" python3 -m pip install -r requirements.txt -python3 sync_stages_monitor.py +python3 -u sync_stages_monitor.py diff --git a/distros/raspberry_pi/gssm/w3p_gssm.service b/distros/raspberry_pi/gssm/w3p_gssm.service index 08aba6a..5d6e659 100644 --- a/distros/raspberry_pi/gssm/w3p_gssm.service +++ b/distros/raspberry_pi/gssm/w3p_gssm.service @@ -6,6 +6,8 @@ After=network.target ExecStart=/opt/web3pi/geth-sync-stages-monitoring/run.sh Restart=always RestartSec=60s +StandardOutput=journal +StandardError=journal [Install] WantedBy=multi-user.target \ No newline at end of file From a0288ef1684412da264ab6f77a99b9db17f2fbed Mon Sep 17 00:00:00 2001 From: szczerbp <01159503@pw.edu.pl> Date: Wed, 9 Apr 2025 15:19:13 +0200 Subject: [PATCH 7/7] Add hoodi support --- distros/raspberry_pi/nimbus/nimbus.sh | 49 ++++++++++++++----- .../scripts/servers_list_hoodi.txt | 3 ++ 2 files changed, 39 insertions(+), 13 deletions(-) create mode 100644 distros/raspberry_pi/scripts/servers_list_hoodi.txt diff --git a/distros/raspberry_pi/nimbus/nimbus.sh b/distros/raspberry_pi/nimbus/nimbus.sh index 00cd3f1..b6ccfaf 100644 --- a/distros/raspberry_pi/nimbus/nimbus.sh +++ b/distros/raspberry_pi/nimbus/nimbus.sh @@ -44,9 +44,9 @@ get_install_stage() { set_status() { local status="$1" # Assign the first argument to a local variable echo "STAGE $(get_install_stage): $status" > /opt/web3pi/status.txt # Write the string to the file - echolog " " - echolog "STAGE $(get_install_stage): $status" - echolog " " + echolog " " + echolog "STAGE $(get_install_stage): $status" + echolog " " } # Function to calculate average ping time @@ -110,17 +110,17 @@ while read -r server; do echolog "Attempting to sync with server: $server" avg_ping=$(calculate_average_ping "$server") echolog "Average ping = $avg_ping ms" - + # Run the Nimbus beacon node command and display output in real time output=$(nimbus_beacon_node trustedNodeSync --network=${eth_network} --data-dir="$nimbus_dir" --trusted-node-url="$server" --backfill=false 2>&1) # output=$(nimbus_beacon_node trustedNodeSync --network=mainnet --data-dir="$nimbus_dir" --trusted-node-url="$server" --backfill=false 2>&1 | tee /dev/tty) - - # Searching for a line containing 'horizon' and extracting the value. - horizon_value=$(echo "$output" | grep -oP 'horizon=\K\d+') - echolog "horizon=$horizon_value " - + + # Check if output contains line indicating success + echo "$output" | grep -q "Done, your beacon node is ready to serve you!" + finished=$? + # Check the output for success messages - if [ "$horizon_value" -gt 0 ]; then + if [ "$finished" -eq 0 ]; then echolog "Sync successful with server: $server " success=true break @@ -132,13 +132,36 @@ while read -r server; do fi done < "$SERVERS_FILE" +# If trustedNodeSync failed with all, try downloading finalized state via curl from each server +if [ "$success" = false ]; then + echolog "All trustedNodeSync attempts failed. Trying to download finalized state from servers..." + + while read -r server; do + if [[ -n "$server" ]]; then + url="${server%/}/eth/v2/debug/beacon/states/finalized" + echolog "Attempting to download finalized state from: $url" + + mkdir -p "$nimbus_dir" + curl -sSf -o "$nimbus_dir/state.finalized.ssz" -H 'Accept: application/octet-stream' "$url" + if [ $? -eq 0 ]; then + echolog "Successfully downloaded finalized state from $server" + success=true + state_finalized=true + break + else + echolog "Failed to download from $server, trying next..." + rm -f "$nimbus_dir/state.finalized.ssz" + fi + fi + done < "$SERVERS_FILE" +fi # If the trustedNodeSync was successful if [ "$success" = true ]; then echolog "Run Nimbus beacon node" - nimbus_beacon_node --non-interactive --tcp-port=${nimbus_port} --udp-port=${nimbus_port} --el=${exec_url} --network=${eth_network} --data-dir=${nimbus_dir} --jwt-secret=/home/ethereum/clients/secrets/jwt.hex --rest=true --rest-port=5052 --rest-address=0.0.0.0 --rest-allow-origin='*' --enr-auto-update + nimbus_beacon_node --non-interactive --tcp-port=${nimbus_port} --udp-port=${nimbus_port} --el=${exec_url} --network=${eth_network} --data-dir=${nimbus_dir} --jwt-secret=/home/ethereum/clients/secrets/jwt.hex --rest=true --rest-port=5052 --rest-address=0.0.0.0 --rest-allow-origin='*' --enr-auto-update ${state_finalized:+--finalized-checkpoint-state="$nimbus_dir/state.finalized.ssz"} else # If no server was successful - echolog "All servers failed to complete the trustedNodeSync." + echolog "All sync attempts failed. Nimbus will not be started." exit 1 -fi +fi \ No newline at end of file diff --git a/distros/raspberry_pi/scripts/servers_list_hoodi.txt b/distros/raspberry_pi/scripts/servers_list_hoodi.txt new file mode 100644 index 0000000..802d08e --- /dev/null +++ b/distros/raspberry_pi/scripts/servers_list_hoodi.txt @@ -0,0 +1,3 @@ +https://hoodi.beaconstate.info +https://hoodi-checkpoint-sync.attestant.io +https://beaconstate-hoodi.chainsafe.io \ No newline at end of file