From 0a090cff094bdb2ee7ceb627657e7b5c8c102993 Mon Sep 17 00:00:00 2001 From: cventastic Date: Wed, 12 Jan 2022 17:09:20 +0100 Subject: [PATCH 1/8] new xdai.json --- xdai/xdai.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/xdai/xdai.json b/xdai/xdai.json index 4c0f4f60..c7e461b7 100644 --- a/xdai/xdai.json +++ b/xdai/xdai.json @@ -58,6 +58,15 @@ "eip2565Transition": 16101500, "eip2929Transition": 16101500, "eip2930Transition": 16101500, + "eip3198Transition": 19040000, + "eip3529Transition": 19040000, + "eip3541Transition": 19040000, + "eip1559Transition": 19040000, + "eip1559BaseFeeMaxChangeDenominator": "0x8", + "eip1559ElasticityMultiplier": "0x2", + "eip1559BaseFeeInitialValue": "0x3b9aca00", + "eip1559FeeCollector": "0x6BBe78ee9e474842Dbd4AB4987b3CeFE88426A92", + "eip1559FeeCollectorTransition": 19040000, "registrar": "0x6B53721D4f2Fb9514B85f5C49b197D857e36Cf03", "transactionPermissionContract": "0x7Dd7032AA75A37ea0b150f57F899119C7379A78b", "transactionPermissionContractTransition": 9186425 @@ -270,4 +279,4 @@ } } } -} \ No newline at end of file +} From 9141f629354ec412862f63e9fed898d10db919e5 Mon Sep 17 00:00:00 2001 From: cventastic Date: Wed, 12 Jan 2022 19:00:12 +0100 Subject: [PATCH 2/8] add erigon, simple stupid alarming --- docker-compose-rpc.yml | 3 +-- util/relay.sh | 11 +++++++---- util/sync_alert_nooby.sh | 26 ++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 util/sync_alert_nooby.sh diff --git a/docker-compose-rpc.yml b/docker-compose-rpc.yml index 879ad39a..21d299ee 100644 --- a/docker-compose-rpc.yml +++ b/docker-compose-rpc.yml @@ -165,7 +165,6 @@ services: - "traefik.http.routers.harmony-mainnet.tls.certresolver=myresolver" - "traefik.http.routers.harmony-mainnet.rule=Host(`$DOMAIN`) && PathPrefix(`/harmony`)" - "traefik.http.routers.harmony-mainnet.middlewares=harmony-mainnet-stripprefix, ipwhitelist" - erigon-trace: image: thorax/erigon @@ -180,7 +179,7 @@ services: rpcdaemon: image: thorax/erigon:latest - command: rpcdaemon --datadir=/home/erigon/.local/share/erigon --private.api.addr=erigon-trace:9090 --txpool.api.addr=erigon-trace:9090 --http.addr=0.0.0.0 --http.vhosts=* --http.corsdomain=* --http.api=eth,debug,net,trace --ws + command: rpcdaemon --datadir=/home/erigon/.local/share/erigon --private.api.addr=erigon-trace:9090 --txpool.api.addr=erigon-trace:9090 --http.addr=0.0.0.0 --http.vhosts=* --http.corsdomain=* --http.api=eth,erigon,web3,net,debug,trace,txpool --ws pid: service:erigon-trace # Use erigon's PID namespace. It's required to open Erigon's DB from another process (RPCDaemon local-mode) volumes: - erigon-trace:/home/erigon/.local/share/erigon diff --git a/util/relay.sh b/util/relay.sh index 101a712b..68e51923 100644 --- a/util/relay.sh +++ b/util/relay.sh @@ -6,6 +6,13 @@ chain_arr[goerli]="0026" chain_arr[rinkeby]="0025" chain_arr[ropsten]="0023" chain_arr[mainnet]="0021" +chain_arr[harmony]="040" +chain_arr[xdai]="0027" +# ARCHIVAL TRACE +chain_arr[erigon]="0028" +chain_arr[erigon]="0021" +# ARCHIVE +chain_arr[erigon]="0022" for i in ${!chain_arr[@]}; do echo curl ${i} ${chain_arr[${i}]} @@ -15,7 +22,3 @@ done POKT="0001" curl -X POST --data '{"relay_network_id":"'$POKT'","payload":{"data":"{}","method":"POST","path":"v1/query/height","headers":{}}}' http://localhost:8081/v1/client/sim echo \n - -HARMONY="0040" -curl -X POST --data '{"relay_network_id":"'$HARMONY'","payload":{"data":"{\"jsonrpc\": \"2.0\", \"method\": \"hmy_latestHeader\", \"params\": [], \"id\": 1}","method":"POST","path":"v1/query/height","headers":{}}}' http://localhost:8081/v1/client/sim -echo \n diff --git a/util/sync_alert_nooby.sh b/util/sync_alert_nooby.sh new file mode 100644 index 00000000..5ce9b39d --- /dev/null +++ b/util/sync_alert_nooby.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +TELEGRAM_AUTH_TOKEN=5077327159:AAELNjCtFZTrLz7h5PW9Td1RTl8beNFgMbo +TELEGRAM_CHAT_ID=-697908946 + +curl_w() { +curl \ +–retry-connrefused \ +-sf "$@" +} + +send_message() { +curl_w -X POST "https://api.telegram.org/bot${TELEGRAM_AUTH_TOKEN}/sendMessage" \ +-H "Content-Type: application/json" \ +-d "{\"chat_id\": \"${TELEGRAM_CHAT_ID}\", \"text\": \"${*}\", \"disable_notification\": false}" +} + + +chain_list="goerli ropsten rinkeby geth erigon harmony" + +for i in $chain_list; do + output=$(curl -s -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' https://bsc-1.stakesquid-db.ml/$i) + if [ $output != '{"jsonrpc":"2.0","id":1,"result":false}' ]; then + send_message "$i not in sync" + fi +done From f0a22fe44ef67debede91a57ceee66af9e4e76d9 Mon Sep 17 00:00:00 2001 From: cventastic Date: Wed, 12 Jan 2022 19:06:08 +0100 Subject: [PATCH 3/8] fix script --- util/relay.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/util/relay.sh b/util/relay.sh index 68e51923..2c2ea34f 100644 --- a/util/relay.sh +++ b/util/relay.sh @@ -8,11 +8,9 @@ chain_arr[ropsten]="0023" chain_arr[mainnet]="0021" chain_arr[harmony]="040" chain_arr[xdai]="0027" -# ARCHIVAL TRACE -chain_arr[erigon]="0028" -chain_arr[erigon]="0021" -# ARCHIVE -chain_arr[erigon]="0022" +chain_arr[erigon-archival-trace]="0028" +chain_arr[erigon-mainnet]="0021" +chain_arr[erigon-archive]="0022" for i in ${!chain_arr[@]}; do echo curl ${i} ${chain_arr[${i}]} From e8930106d73d09ac94b5236457e5f4aa333ba08b Mon Sep 17 00:00:00 2001 From: cventastic Date: Wed, 12 Jan 2022 19:19:42 +0100 Subject: [PATCH 4/8] not working --- util/sync_alert_nooby.sh | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 util/sync_alert_nooby.sh diff --git a/util/sync_alert_nooby.sh b/util/sync_alert_nooby.sh deleted file mode 100644 index 5ce9b39d..00000000 --- a/util/sync_alert_nooby.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -TELEGRAM_AUTH_TOKEN=5077327159:AAELNjCtFZTrLz7h5PW9Td1RTl8beNFgMbo -TELEGRAM_CHAT_ID=-697908946 - -curl_w() { -curl \ -–retry-connrefused \ --sf "$@" -} - -send_message() { -curl_w -X POST "https://api.telegram.org/bot${TELEGRAM_AUTH_TOKEN}/sendMessage" \ --H "Content-Type: application/json" \ --d "{\"chat_id\": \"${TELEGRAM_CHAT_ID}\", \"text\": \"${*}\", \"disable_notification\": false}" -} - - -chain_list="goerli ropsten rinkeby geth erigon harmony" - -for i in $chain_list; do - output=$(curl -s -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' https://bsc-1.stakesquid-db.ml/$i) - if [ $output != '{"jsonrpc":"2.0","id":1,"result":false}' ]; then - send_message "$i not in sync" - fi -done From 8805987f9b77c16a0b11acd64a037a903129dc5b Mon Sep 17 00:00:00 2001 From: cventastic Date: Thu, 13 Jan 2022 17:33:27 +0100 Subject: [PATCH 5/8] added pokt monitoring for earnings. work in progress --- .../provisioning/dashboards/basic/pokt.json | 1906 +++++++++++++++++ prometheus/prometheus.yml | 6 + traefik/traefik.toml | 2 +- 3 files changed, 1913 insertions(+), 1 deletion(-) create mode 100644 grafana/provisioning/dashboards/basic/pokt.json diff --git a/grafana/provisioning/dashboards/basic/pokt.json b/grafana/provisioning/dashboards/basic/pokt.json new file mode 100644 index 00000000..6db2b8f0 --- /dev/null +++ b/grafana/provisioning/dashboards/basic/pokt.json @@ -0,0 +1,1906 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "$DS_PROMETHEUS", + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" + }, + "type": "dashboard" + } + ] + }, + "description": "", + "editable": true, + "fiscalYearStartMonth": 0, + "gnetId": 7044, + "graphTooltip": 0, + "id": 2, + "links": [], + "liveNow": false, + "panels": [ + { + "collapsed": true, + "datasource": "$DS_PROMETHEUS", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 56, + "panels": [], + "title": "Node1", + "type": "row" + }, + { + "datasource": "$DS_PROMETHEUS", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 9, + "x": 0, + "y": 1 + }, + "id": 54, + "options": { + "displayMode": "gradient", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "text": {} + }, + "pluginVersion": "8.2.3-40566", + "targets": [ + { + "exemplar": true, + "expr": "pocketcore_service_relay_count_for_0040", + "format": "table", + "interval": "", + "intervalFactor": 1, + "legendFormat": "", + "refId": "Harmony-One" + }, + { + "exemplar": true, + "expr": "pocketcore_service_relay_count_for_0021{}", + "format": "table", + "hide": false, + "interval": "", + "legendFormat": "", + "refId": "ETH-Mainnet" + }, + { + "exemplar": true, + "expr": "pocketcore_service_relay_count_for_0005", + "format": "table", + "hide": false, + "interval": "", + "legendFormat": "", + "refId": "Fuse" + }, + { + "exemplar": true, + "expr": "pocketcore_service_relay_count_for_0023", + "format": "table", + "hide": false, + "interval": "", + "legendFormat": "", + "refId": "Avax" + }, + { + "exemplar": true, + "expr": "pocketcore_service_relay_count_for_0026", + "format": "table", + "hide": false, + "interval": "", + "legendFormat": "", + "refId": "eth-goerli" + }, + { + "exemplar": true, + "expr": "pocketcore_service_relay_count_for_0027{}", + "format": "table", + "hide": false, + "interval": "", + "legendFormat": "", + "refId": "xdai-mainnet" + } + ], + "title": "Relay Counter", + "type": "bargauge" + }, + { + "datasource": "$DS_PROMETHEUS", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 7, + "x": 9, + "y": 1 + }, + "id": 58, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "text": {} + }, + "pluginVersion": "8.2.3-40566", + "targets": [ + { + "exemplar": true, + "expr": "pocketcore_service_tokens_earned_for_all{}", + "format": "table", + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Token Rewards", + "type": "gauge" + }, + { + "datasource": "$DS_PROMETHEUS", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 50000 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 7, + "x": 16, + "y": 1 + }, + "id": 60, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "text": {} + }, + "pluginVersion": "8.2.3-40566", + "targets": [ + { + "exemplar": true, + "expr": "pocketcore_service_relay_count_for_all{}", + "format": "table", + "interval": "", + "legendFormat": "", + "refId": "A" + } + ], + "title": "Total Relays ", + "type": "gauge" + }, + { + "collapsed": false, + "datasource": "$DS_PROMETHEUS", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 8 + }, + "id": 24, + "panels": [], + "title": "Overview", + "type": "row" + }, + { + "cacheTimeout": null, + "datasource": "Node1", + "description": "Height of the chain", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 5, + "x": 0, + "y": 9 + }, + "id": 4, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.2.3-40566", + "targets": [ + { + "expr": "tendermint_consensus_height", + "format": "time_series", + "hide": false, + "instant": true, + "interval": "", + "intervalFactor": 1, + "legendFormat": "", + "refId": "A" + } + ], + "title": "Block Height", + "type": "stat" + }, + { + "cacheTimeout": null, + "datasource": "Node1", + "description": "Number of peers node's connected to\n\n(Need to change Threshold)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#FFFFFF", + "value": null + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 2 + }, + { + "color": "#d44a3a", + "value": 2 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 5, + "x": 5, + "y": 9 + }, + "id": 40, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.2.3-40566", + "targets": [ + { + "expr": "tendermint_p2p_peers", + "format": "time_series", + "hide": false, + "instant": true, + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "Connected Peers", + "type": "stat" + }, + { + "cacheTimeout": null, + "datasource": "Node1", + "description": "Total voting power of all validators", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 5, + "x": 10, + "y": 9 + }, + "id": 8, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.2.3-40566", + "targets": [ + { + "expr": "tendermint_consensus_validators_power", + "format": "time_series", + "instant": true, + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "Total Voting Power", + "type": "stat" + }, + { + "cacheTimeout": null, + "datasource": "Node1", + "description": "Number of rounds", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 5, + "x": 15, + "y": 9 + }, + "id": 30, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.2.3-40566", + "targets": [ + { + "expr": "tendermint_consensus_rounds", + "format": "time_series", + "instant": true, + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "Consensus Rounds At Current Height", + "type": "stat" + }, + { + "cacheTimeout": null, + "datasource": "Node1", + "description": "Number of transactions", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 5, + "x": 0, + "y": 11 + }, + "id": 32, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.2.3-40566", + "targets": [ + { + "expr": "tendermint_consensus_num_txs", + "format": "time_series", + "instant": true, + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "Transactions At Current Height", + "type": "stat" + }, + { + "cacheTimeout": null, + "datasource": "Node1", + "description": "Total number of transactions committed", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 5, + "x": 5, + "y": 11 + }, + "id": 36, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.2.3-40566", + "targets": [ + { + "expr": "tendermint_consensus_total_txs", + "format": "time_series", + "instant": true, + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "Confirmed Transactions", + "type": "stat" + }, + { + "cacheTimeout": null, + "datasource": "Node1", + "description": "Block size in bytes", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 5, + "x": 10, + "y": 11 + }, + "id": 38, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.2.3-40566", + "targets": [ + { + "expr": "tendermint_consensus_block_size_bytes", + "format": "time_series", + "instant": true, + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "Block Size (bytes)", + "type": "stat" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Node1", + "description": "Time between this and last block (Block.Header.Time) in seconds", + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 10, + "x": 0, + "y": 13 + }, + "hiddenSeries": false, + "id": 28, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.2.3-40566", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "tendermint_consensus_block_interval_seconds", + "format": "time_series", + "hide": false, + "instant": false, + "intervalFactor": 1, + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Block TIme (seconds)", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Node1", + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 10, + "x": 10, + "y": 13 + }, + "hiddenSeries": false, + "id": 10, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.2.3-40566", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "tendermint_consensus_validators_power", + "format": "time_series", + "intervalFactor": 1, + "legendFormat": "", + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Total Voting Power", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": false, + "values": [] + }, + "yaxes": [ + { + "format": "none", + "label": "STEAK", + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "dateTimeAsUS", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + }, + { + "collapsed": false, + "datasource": "$DS_PROMETHEUS", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 21 + }, + "id": 47, + "panels": [], + "title": "Mempool Transactions", + "type": "row" + }, + { + "cacheTimeout": null, + "datasource": "Node1", + "description": "Number of uncommitted transactions", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 5, + "x": 0, + "y": 22 + }, + "id": 34, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.2.3-40566", + "targets": [ + { + "expr": "tendermint_mempool_size", + "format": "time_series", + "instant": true, + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "Unconfirmed", + "type": "stat" + }, + { + "cacheTimeout": null, + "datasource": "Node1", + "description": "Cumulative count", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 5, + "x": 5, + "y": 22 + }, + "id": 45, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.2.3-40566", + "targets": [ + { + "expr": "tendermint_mempool_failed_txs", + "format": "time_series", + "instant": true, + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "Failed", + "type": "stat" + }, + { + "cacheTimeout": null, + "datasource": "Node1", + "description": "Cumulative count", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 5, + "x": 10, + "y": 22 + }, + "id": 48, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.2.3-40566", + "targets": [ + { + "expr": "tendermint_mempool_recheck_times", + "format": "time_series", + "instant": true, + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "Rechecked", + "type": "stat" + }, + { + "cacheTimeout": null, + "datasource": "Node1", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 5, + "x": 15, + "y": 22 + }, + "id": 49, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.2.3-40566", + "targets": [ + { + "expr": "tendermint_mempool_tx_size_bytes_count", + "format": "time_series", + "instant": true, + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "Size (bytes)", + "type": "stat" + }, + { + "collapsed": false, + "datasource": "$DS_PROMETHEUS", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 24 + }, + "id": 22, + "panels": [], + "title": "Validator", + "type": "row" + }, + { + "cacheTimeout": null, + "datasource": "Node1", + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 5, + "x": 0, + "y": 25 + }, + "id": 12, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.2.3-40566", + "targets": [ + { + "expr": "tendermint_consensus_validators-tendermint_consensus_missing_validators", + "format": "time_series", + "instant": true, + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "Online", + "type": "stat" + }, + { + "cacheTimeout": null, + "datasource": "Node1", + "description": "Number of validators who did not sign", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 5, + "x": 5, + "y": 25 + }, + "id": 50, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.2.3-40566", + "targets": [ + { + "expr": "tendermint_consensus_missing_validators", + "format": "time_series", + "instant": true, + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "Missing", + "type": "stat" + }, + { + "cacheTimeout": null, + "datasource": "Node1", + "description": "Number of validators who tried to double sign", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 5, + "x": 10, + "y": 25 + }, + "id": 20, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.2.3-40566", + "targets": [ + { + "expr": "tendermint_consensus_byzantine_validators", + "format": "time_series", + "instant": true, + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "Byzantine", + "type": "stat" + }, + { + "cacheTimeout": null, + "datasource": "Node1", + "description": "Percentage of missing + byzantine validators", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 5, + "x": 0, + "y": 27 + }, + "id": 42, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.2.3-40566", + "targets": [ + { + "expr": "((tendermint_consensus_byzantine_validators_power + tendermint_consensus_missing_validators_power) / tendermint_consensus_validators_power) * 100", + "format": "time_series", + "instant": true, + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "% of (Missing+Byzantine)", + "type": "stat" + }, + { + "cacheTimeout": null, + "datasource": "Node1", + "description": "Total voting power of the missing validators", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 5, + "x": 5, + "y": 27 + }, + "id": 18, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.2.3-40566", + "targets": [ + { + "expr": "tendermint_consensus_missing_validators_power", + "format": "time_series", + "instant": true, + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "Voting Power of Missing", + "type": "stat" + }, + { + "cacheTimeout": null, + "datasource": "Node1", + "description": "Total voting power of the byzantine validators", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 5, + "x": 10, + "y": 27 + }, + "id": 26, + "interval": null, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "8.2.3-40566", + "targets": [ + { + "expr": "tendermint_consensus_byzantine_validators_power", + "format": "time_series", + "instant": true, + "intervalFactor": 1, + "refId": "A" + } + ], + "title": "Voting Power of Byzantine", + "type": "stat" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Node1", + "description": "Number of validators who did not sign", + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 9, + "w": 10, + "x": 0, + "y": 29 + }, + "hiddenSeries": false, + "id": 16, + "legend": { + "avg": false, + "current": false, + "max": false, + "min": false, + "show": true, + "total": false, + "values": false + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.2.3-40566", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "tendermint_consensus_missing_validators", + "format": "time_series", + "hide": false, + "intervalFactor": 1, + "refId": "A" + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Missing Validators History", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + }, + { + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + } + } + ], + "refresh": "1m", + "schemaVersion": 32, + "style": "dark", + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": { + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "browser", + "title": "Node1 Dashboard", + "uid": "", + "version": 10 +} \ No newline at end of file diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml index 8717b3f1..89b337e7 100644 --- a/prometheus/prometheus.yml +++ b/prometheus/prometheus.yml @@ -34,6 +34,12 @@ scrape_configs: static_configs: - targets: ['pushgateway:9091'] + - job_name: 'pocket' + scrape_interval: 10s + honor_labels: true + static_configs: + - targets: ['pocket-mainnet:8083'] + alerting: alertmanagers: - scheme: http diff --git a/traefik/traefik.toml b/traefik/traefik.toml index cb8c4526..c7cbf273 100644 --- a/traefik/traefik.toml +++ b/traefik/traefik.toml @@ -45,7 +45,7 @@ # Optional # Default: "ERROR" # - level = "DEBUG" + level = "ERROR" # Sets the filepath for the traefik log. If not specified, stdout will be used. # Intermediate directories are created if necessary. From 346c6bccd6afb490c360c6797184071b6a3c8876 Mon Sep 17 00:00:00 2001 From: cventastic Date: Thu, 13 Jan 2022 18:21:09 +0100 Subject: [PATCH 6/8] second node on iokula --- docker-compose.pokt-mainnet.yml | 45 ++++++++++++++++++++++++++------- util/prepare.sh | 3 +-- 2 files changed, 37 insertions(+), 11 deletions(-) diff --git a/docker-compose.pokt-mainnet.yml b/docker-compose.pokt-mainnet.yml index ae77f663..1a391d6d 100644 --- a/docker-compose.pokt-mainnet.yml +++ b/docker-compose.pokt-mainnet.yml @@ -117,7 +117,7 @@ services: org.label-schema.group: "monitoring" ### POKT - pocket-mainnet: + pocket-fr-1: image: poktnetwork/pocket-core:stagenet-latest ports: - "127.0.0.1:8081:8081" @@ -129,8 +129,8 @@ services: command: /home/app/.pocket/pokt_mainnet.sh && pocket start --seeds=$POCKET_MAIN_SEEDS --mainnet #command: pocket start --simulateRelay environment: - - POCKET_CORE_KEY=$POCKET_CORE_KEY - - POCKET_CORE_PASSPHRASE=$POCKET_CORE_PASSPHRASE + - POCKET_CORE_KEY=$POKT-FR-1-POCKET_CORE_KEY + - POCKET_CORE_PASSPHRASE=$POKT-FR-1-POCKET_CORE_PASSPHRASE - POCKET_SNAPSHOT=$POCKET_SNAPSHOT volumes: - ./chains/chains_mainnet.json:/home/app/.pocket/config/chains.json @@ -139,13 +139,40 @@ services: restart: unless-stopped labels: - "traefik.enable=true" - - "traefik.http.services.pocket-mainnet.loadbalancer.server.port=8081" - - "traefik.http.routers.pocket-mainnet.entrypoints=websecure" - - "traefik.http.routers.pocket-mainnet.tls.certresolver=myresolver" - - "traefik.http.routers.pocket-mainnet.rule=Host(`$RELAYDOMAIN`)" + - "traefik.http.services.pocket-fr-1.loadbalancer.server.port=8081" + - "traefik.http.routers.pocket-fr-1.entrypoints=websecure" + - "traefik.http.routers.pocket-fr-1.tls.certresolver=myresolver" + - "traefik.http.routers.pocket-fr-1.rule=Host(`$POKT-FR-1-DOMAIN`)" + + pocket-fr-2: + image: poktnetwork/pocket-core:stagenet-latest + ports: + - "127.0.0.1:8082:8081" + - "26656:26656" + expose: + - 26656 + - 8081 + - 8083 + command: /home/app/.pocket/pokt_mainnet.sh && pocket start --seeds=$POCKET_MAIN_SEEDS --mainnet + #command: pocket start --simulateRelay + environment: + - POCKET_CORE_KEY=$POKT-FR-2-POCKET_CORE_KEY + - POCKET_CORE_PASSPHRASE=$POKT-FR-2-POCKET_CORE_PASSPHRASE + - POCKET_SNAPSHOT=$POCKET_SNAPSHOT + volumes: + - ./chains/chains_mainnet.json:/home/app/.pocket/config/chains.json + - ./bootstrap_skript/pokt_mainnet.sh:/home/app/.pocket/pokt_mainnet.sh + - pocket-fr-2:/home/app/.pocket + restart: unless-stopped + labels: + - "traefik.enable=true" + - "traefik.http.services.pocket-fr-2.loadbalancer.server.port=8081" + - "traefik.http.routers.pocket-fr-2.entrypoints=websecure" + - "traefik.http.routers.pocket-fr-2.tls.certresolver=myresolver" + - "traefik.http.routers.pocket-fr-2.rule=Host(`$POKT-FR-2-DOMAIN`)" ### VOLUMES volumes: pocket-mainnet: - prometheus_data: - + pocket-fr-2: + prometheus_data: \ No newline at end of file diff --git a/util/prepare.sh b/util/prepare.sh index 3af761a6..cb4137fc 100755 --- a/util/prepare.sh +++ b/util/prepare.sh @@ -1,8 +1,7 @@ #!/bin/bash source .env - -export DOMAIN=$DOMAIN +export DOMAIN=$RPC_DOMAIN chown -R root:root chains bootstrap_skript From d78a88449acadbd9058511ce2ed32a2512aad782 Mon Sep 17 00:00:00 2001 From: cventastic Date: Thu, 13 Jan 2022 18:27:01 +0100 Subject: [PATCH 7/8] added scond pokt node --- docker-compose.pokt-mainnet.yml | 2 +- prometheus/prometheus-rpc.yml | 7 ------- prometheus/prometheus.yml | 13 ++++++------- 3 files changed, 7 insertions(+), 15 deletions(-) diff --git a/docker-compose.pokt-mainnet.yml b/docker-compose.pokt-mainnet.yml index 1a391d6d..0cad3c1c 100644 --- a/docker-compose.pokt-mainnet.yml +++ b/docker-compose.pokt-mainnet.yml @@ -148,7 +148,7 @@ services: image: poktnetwork/pocket-core:stagenet-latest ports: - "127.0.0.1:8082:8081" - - "26656:26656" + - "26657:26656" expose: - 26656 - 8081 diff --git a/prometheus/prometheus-rpc.yml b/prometheus/prometheus-rpc.yml index 008c6cb5..0cf821d8 100644 --- a/prometheus/prometheus-rpc.yml +++ b/prometheus/prometheus-rpc.yml @@ -77,10 +77,3 @@ scrape_configs: regex: (.*) replacement: $1 target_label: geth_ropsten - -alerting: - alertmanagers: - - scheme: http - static_configs: - - targets: - - 'alertmanager:9093' \ No newline at end of file diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml index 89b337e7..775e4c55 100644 --- a/prometheus/prometheus.yml +++ b/prometheus/prometheus.yml @@ -34,15 +34,14 @@ scrape_configs: static_configs: - targets: ['pushgateway:9091'] - - job_name: 'pocket' + - job_name: 'pocket-fr-1' scrape_interval: 10s honor_labels: true static_configs: - - targets: ['pocket-mainnet:8083'] + - targets: ['pocket-fr-1:8083'] -alerting: - alertmanagers: - - scheme: http + - job_name: 'pocket-fr-2' + scrape_interval: 10s + honor_labels: true static_configs: - - targets: - - 'alertmanager:9093' \ No newline at end of file + - targets: ['pocket-fr-1:8083'] From 0e5b043460bcd9a37b3e301f8866aedbd5a62dda Mon Sep 17 00:00:00 2001 From: cventastic Date: Thu, 13 Jan 2022 18:38:59 +0100 Subject: [PATCH 8/8] fix env --- docker-compose.pokt-mainnet.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose.pokt-mainnet.yml b/docker-compose.pokt-mainnet.yml index 0cad3c1c..795153bb 100644 --- a/docker-compose.pokt-mainnet.yml +++ b/docker-compose.pokt-mainnet.yml @@ -129,8 +129,8 @@ services: command: /home/app/.pocket/pokt_mainnet.sh && pocket start --seeds=$POCKET_MAIN_SEEDS --mainnet #command: pocket start --simulateRelay environment: - - POCKET_CORE_KEY=$POKT-FR-1-POCKET_CORE_KEY - - POCKET_CORE_PASSPHRASE=$POKT-FR-1-POCKET_CORE_PASSPHRASE + - POCKET_CORE_KEY=$POKT_FR_1_POCKET_CORE_KEY + - POCKET_CORE_PASSPHRASE=$POKT_FR_1_POCKET_CORE_PASSPHRASE - POCKET_SNAPSHOT=$POCKET_SNAPSHOT volumes: - ./chains/chains_mainnet.json:/home/app/.pocket/config/chains.json @@ -156,8 +156,8 @@ services: command: /home/app/.pocket/pokt_mainnet.sh && pocket start --seeds=$POCKET_MAIN_SEEDS --mainnet #command: pocket start --simulateRelay environment: - - POCKET_CORE_KEY=$POKT-FR-2-POCKET_CORE_KEY - - POCKET_CORE_PASSPHRASE=$POKT-FR-2-POCKET_CORE_PASSPHRASE + - POCKET_CORE_KEY=$POKT_FR_2_POCKET_CORE_KEY + - POCKET_CORE_PASSPHRASE=$POKT_FR_2_POCKET_CORE_PASSPHRASE - POCKET_SNAPSHOT=$POCKET_SNAPSHOT volumes: - ./chains/chains_mainnet.json:/home/app/.pocket/config/chains.json