Skip to content

Commit 9004beb

Browse files
committed
Make exporter toggleable
1 parent cc8c696 commit 9004beb

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ RUN case "$(uname -m)" in \
2424
&& tar -xjvf monero-linux-${ARCH}-${MONERO_VERSION}.tar.bz2 --strip-components 1 \
2525
&& rm -f monero-linux-${ARCH}-${MONERO_VERSION}.tar.bz2
2626

27-
2827
##################
2928
# -- exporter -- #
3029
##################

entrypoint.sh

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#!/bin/bash
22

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

810
/opt/monero/monerod "$@"
911

0 commit comments

Comments
 (0)