diff --git a/distros/raspberry_pi/config.txt b/distros/raspberry_pi/config.txt index 686e689..8f085f7 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/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/gssm/run.sh b/distros/raspberry_pi/gssm/run.sh new file mode 100644 index 0000000..f5197ec --- /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 -u 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..5d6e659 --- /dev/null +++ b/distros/raspberry_pi/gssm/w3p_gssm.service @@ -0,0 +1,13 @@ +[Unit] +Description=Web3 Pi Geth Sync Monitoring +After=network.target + +[Service] +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 diff --git a/distros/raspberry_pi/install.sh b/distros/raspberry_pi/install.sh index 2875bfe..ab8381d 100644 --- a/distros/raspberry_pi/install.sh +++ b/distros/raspberry_pi/install.sh @@ -614,6 +614,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 ############################################################################ @@ -637,6 +638,9 @@ if [ "$(get_install_stage)" -eq 2 ]; then set_status "[install.sh] - basic-system-monitor, basic-eth2-node-monitor, w3p-lcd-dashboardInstall" apt install -y w3p-system-monitor w3p-node-monitor w3p-lcd-dashboard + 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/*.sh + chown -R ethereum:ethereum /home/ethereum/clients ## 10. ADDITIONAL DIRECTORIES ########################################################################### @@ -691,6 +695,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/*.sh + chown -R ethereum:ethereum /opt/web3pi set_status "[install.sh] - Installing w3p-installation-status" @@ -764,6 +775,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 @@ -882,6 +904,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 diff --git a/distros/raspberry_pi/nimbus/nimbus.sh b/distros/raspberry_pi/nimbus/nimbus.sh index 7bf1cac..b6ccfaf 100644 --- a/distros/raspberry_pi/nimbus/nimbus.sh +++ b/distros/raspberry_pi/nimbus/nimbus.sh @@ -164,4 +164,4 @@ else # If no server was successful 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/rc.local b/distros/raspberry_pi/rc.local index 22a0d8a..8acdd93 100644 --- a/distros/raspberry_pi/rc.local +++ b/distros/raspberry_pi/rc.local @@ -3,7 +3,7 @@ # Web3 Pi - rc.local # -BRANCH="main" +BRANCH="piotrek" # Function: echolog # Description: Logs messages with a timestamp prefix. If no arguments are provided,