Skip to content

Commit

Permalink
Make exporter toggleable
Browse files Browse the repository at this point in the history
  • Loading branch information
rblaine95 committed Mar 12, 2024
1 parent 4c80d01 commit c48c006
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ RUN case "$(uname -m)" in \
&& tar -xjvf monero-linux-${ARCH}-${MONERO_VERSION}.tar.bz2 --strip-components 1 \
&& rm -f monero-linux-${ARCH}-${MONERO_VERSION}.tar.bz2


##################
# -- exporter -- #
##################
Expand Down
10 changes: 6 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/bin/bash

/opt/monero/monero-exporter \
--bind-addr "${EXPORTER_BIND:-":9000"}" \
--monero-addr "http://127.0.0.1:18081" \
--telemetry-path "${EXPORTER_PATH:-"/metrics"}" &
if [ "${EXPORTER_ENABLED:-"true"}" = "true" ]; then
/opt/monero/monero-exporter \
--bind-addr "${EXPORTER_BIND:-":9000"}" \
--monero-addr "http://127.0.0.1:18081" \
--telemetry-path "${EXPORTER_PATH:-"/metrics"}" &
fi

/opt/monero/monerod "$@"

0 comments on commit c48c006

Please sign in to comment.