Skip to content

Commit

Permalink
Add statsd support
Browse files Browse the repository at this point in the history
  • Loading branch information
j-forristal committed Jan 1, 2024
1 parent 327671b commit c384f40
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ ENV DEVICE_INDEX="" \
MIN_MESSAGE_THRESHOLD="5" \
ENABLE_SYSTABLE="TRUE" \
ENABLE_BASESTATION="TRUE" \
BASESTATION_VERBOSE="TRUE"
BASESTATION_VERBOSE="TRUE" \
STATSD_SERVER=""

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

Expand Down Expand Up @@ -51,6 +52,13 @@ RUN set -x && \
"${KEPT_PACKAGES[@]}" \
"${TEMP_PACKAGES[@]}"\
&& \
# Install statsd-c-client library
git clone https://github.com/romanbsd/statsd-c-client.git /src/statsd-client && \
pushd /src/statsd-client && \
make -j "$(nproc)" && \
make install && \
ldconfig && \
popd && \
# install sdrplay
curl --location --output /tmp/install_sdrplay.sh https://raw.githubusercontent.com/sdr-enthusiasts/install-libsdrplay/main/install_sdrplay.sh && \
chmod +x /tmp/install_sdrplay.sh && \
Expand Down
4 changes: 4 additions & 0 deletions rootfs/etc/s6-overlay/scripts/dumphfdl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ if [[ -n "$ZMQ_MODE" ]]; then
fi
fi

if [[ -n "$STATSD_SERVER" ]]; then
dumpcmd+=("--statsd" "$STATSD_SERVER")
fi

# only run scan if FREQUENCIES is not set
if [[ -n "${FREQUENCIES}" ]]; then
rm -rf /run/hfdl_test_mode
Expand Down

0 comments on commit c384f40

Please sign in to comment.