From f2f74f11ba5ee8211dcca2df131e8bf62fdf29d3 Mon Sep 17 00:00:00 2001 From: cventastic Date: Thu, 13 Jan 2022 23:07:39 +0100 Subject: [PATCH] added traefik metrics and more chains --- README.md | 28 +--------------------------- chains/chains_mainnet.json | 18 +++++++++++++++++- prometheus/prometheus.yml | 6 ++++++ traefik/traefik.toml | 10 +++++++++- 4 files changed, 33 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index b4a98862..1a7a0517 100644 --- a/README.md +++ b/README.md @@ -14,29 +14,7 @@ cd POKT_DOKT git reset --hard origin/main && git pull && ./util/prepare.sh ``` -This compose file needs the following env-vars for example in a .env file inside the repo root-folder: -``` -# Private Key for Pocket-Account mainnet can be generated here (https://wallet.pokt.network/) -POCKET_CORE_KEY= -POCKET_CORE_PASSPHRASE= -# Private Key for Pocket-Account testnet can be generated here (https://wallet.testnet.pokt.network/) -POCKET_CORE_KEY_TEST= -POCKET_CORE_PASSPHRASE_TEST= -# POCKET SEEDS (https://docs.pokt.network/home/resources/references/seeds) -POCKET_MAIN_SEEDS= -POCKET_TEST_SEEDS= -# SNAPSHOT (https://github.com/pokt-network/pocket-snapshots) -POCKET_SNAPSHOT="" -# LETSENCRYPT -DOMAIN= -MAIL= -SERVERPORT= -PUID= -PGID= -# IP WHITELIST FOR TRAFFIC -WHITELIST= -``` - +!!! This compose file needs env-vars, for example in a .env file inside the repo root-folder !!! !!! I added a simple test-script (util/test_relay.sh) to see if the (geth)chains are synced. Dont try to relay before they are.
To test if relaying chains works, pokt-testnet-service and pokt-mainnet service have to be provided with the following command parameters: ``` @@ -91,19 +69,15 @@ Check if there is a file here /traefic/letsencrypt/acme.json if yes, you have to Otherwise traefik will not issue the certificate for an existing domain.
#### TODO !!!! -HARMONY SYNC CHECK
General Monitoring
LOGFILES
Bootstrapping from Snapshots
Link-Timezone into containers. - - AVALANCHE: - Archive? - Monitoring https://docs.avax.network/build/tools/dashboards/README - ### Notes #### Monitoring Telegram get group ids the bot is in: diff --git a/chains/chains_mainnet.json b/chains/chains_mainnet.json index a1ac7bd0..19ba1cee 100644 --- a/chains/chains_mainnet.json +++ b/chains/chains_mainnet.json @@ -17,7 +17,23 @@ }, { "id": "0021", - "url": "https://${DOMAIN}/geth" + "url": "https://${DOMAIN}/erigon" + }, + { + "id": "0022", + "url": "https://${DOMAIN}/erigon" + }, + { + "id": "0028", + "url": "https://${DOMAIN}/erigon" + }, + { + "id": "0027", + "url": "https://${DOMAIN}/xdai" + }, + { + "id": "0005", + "url": "https://${DOMAIN}/fuse" }, { "id": "0040", diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml index 775e4c55..5a6d2508 100644 --- a/prometheus/prometheus.yml +++ b/prometheus/prometheus.yml @@ -45,3 +45,9 @@ scrape_configs: honor_labels: true static_configs: - targets: ['pocket-fr-1:8083'] + + - job_name: 'traefik' + scrape_interval: 10s + honor_labels: true + static_configs: + - targets: ['traefik:8082'] \ No newline at end of file diff --git a/traefik/traefik.toml b/traefik/traefik.toml index c7cbf273..b8d1a37c 100644 --- a/traefik/traefik.toml +++ b/traefik/traefik.toml @@ -28,7 +28,15 @@ [entryPoints.websecure] address = ":443" - + [entryPoints] + [entryPoints.metrics] + address = ":8082" + +# Monitoring +[metrics] + [metrics.prometheus] + entryPoint = "metrics" + ################################################################ # Traefik logs configuration ################################################################