diff --git a/central-metrics.yml b/central-metrics.yml index 94023004..04156168 100644 --- a/central-metrics.yml +++ b/central-metrics.yml @@ -10,18 +10,14 @@ x-logging: &logging services: ethereum-metrics-exporter: restart: "unless-stopped" - build: - context: ./eth-metrics - image: ethereum-metrics-exporter:local - pull_policy: never - environment: - - CLIENT=${COMPOSE_FILE} + image: samcm/ethereum-metrics-exporter:0.23.0-debian entrypoint: - - docker-entrypoint.sh - /ethereum-metrics-exporter + - --consensus-url=${CL_NODE} + - --execution-url=${EL_NODE} + <<: *logging labels: - metrics.scrape=true - metrics.path=/metrics - metrics.port=9090 - metrics.instance=ethereum-metrics-exporter - <<: *logging diff --git a/eth-metrics/Dockerfile b/eth-metrics/Dockerfile deleted file mode 100644 index cb178bbf..00000000 --- a/eth-metrics/Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM samcm/ethereum-metrics-exporter:0.23.0-debian - -COPY ./docker-entrypoint.sh /usr/local/bin/ diff --git a/eth-metrics/docker-entrypoint.sh b/eth-metrics/docker-entrypoint.sh deleted file mode 100755 index ff72785e..00000000 --- a/eth-metrics/docker-entrypoint.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -__consensus="" -__execution="" - -case "$CLIENT" in - *lighthouse* | *prysm* | *nimbus* | *teku* | *lodestar* | *grandine* ) __consensus="--consensus-url=http://consensus:5052" ;;& - *geth* | *besu* | *nethermind* | *erigon* | *reth* ) __execution="--execution-url=http://execution:8545" ;; -esac - -exec "$@" $__consensus $__execution diff --git a/grafana-cloud.yml b/grafana-cloud.yml index f4ad2722..99f08501 100644 --- a/grafana-cloud.yml +++ b/grafana-cloud.yml @@ -42,15 +42,11 @@ services: ethereum-metrics-exporter: restart: "unless-stopped" - build: - context: ./eth-metrics - image: ethereum-metrics-exporter:local - pull_policy: never - environment: - - CLIENT=${COMPOSE_FILE} + image: samcm/ethereum-metrics-exporter:0.23.0-debian entrypoint: - - docker-entrypoint.sh - /ethereum-metrics-exporter + - --consensus-url=${CL_NODE} + - --execution-url=${EL_NODE} <<: *logging labels: - metrics.scrape=true diff --git a/grafana-rootless.yml b/grafana-rootless.yml index 90e85d0c..cc2bcb08 100644 --- a/grafana-rootless.yml +++ b/grafana-rootless.yml @@ -34,15 +34,11 @@ services: ethereum-metrics-exporter: restart: "unless-stopped" - build: - context: ./eth-metrics - image: ethereum-metrics-exporter:local - pull_policy: never - environment: - - CLIENT=${COMPOSE_FILE} + image: samcm/ethereum-metrics-exporter:0.23.0-debian entrypoint: - - docker-entrypoint.sh - /ethereum-metrics-exporter + - --consensus-url=${CL_NODE} + - --execution-url=${EL_NODE} <<: *logging blackbox-exporter: diff --git a/grafana.yml b/grafana.yml index de394fef..a27f51a8 100644 --- a/grafana.yml +++ b/grafana.yml @@ -34,15 +34,11 @@ services: ethereum-metrics-exporter: restart: "unless-stopped" - build: - context: ./eth-metrics - image: ethereum-metrics-exporter:local - pull_policy: never - environment: - - CLIENT=${COMPOSE_FILE} + image: samcm/ethereum-metrics-exporter:0.23.0-debian entrypoint: - - docker-entrypoint.sh - /ethereum-metrics-exporter + - --consensus-url=${CL_NODE} + - --execution-url=${EL_NODE} <<: *logging labels: - metrics.scrape=true