Skip to content

Commit 686d890

Browse files
committed
Make exporter toggleable
1 parent 9183114 commit 686d890

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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)