Skip to content

Commit

Permalink
Make exporter toggleable
Browse files Browse the repository at this point in the history
  • Loading branch information
rblaine95 committed Feb 25, 2023
1 parent 2415680 commit a5b9c8c
Showing 1 changed file with 6 additions and 4 deletions.
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 a5b9c8c

Please sign in to comment.