diff --git a/CHANGELOG.md b/CHANGELOG.md index cd70cdd5..432eb74a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed + - Harvester mode will now optionally also run chia-exporter for Prometheus results. ### Updated - [Chia](https://github.com/Chia-Network/chia-blockchain/releases/tag/2.1.5) to v2.1.5 - misc improvements, see their release notes. - [Gigahorse](https://github.com/madMAx43v3r/chia-gigahorse/releases/tag/v2.1.4.giga26) to v2.1.4.giga26. diff --git a/scripts/forks/chia_launch.sh b/scripts/forks/chia_launch.sh index bfa1371a..e1681172 100644 --- a/scripts/forks/chia_launch.sh +++ b/scripts/forks/chia_launch.sh @@ -136,6 +136,10 @@ elif [[ ${mode} =~ ^harvester.* ]]; then chia configure --set-farmer-peer ${farmer_address}:${farmer_port} 2>&1 >> /root/.chia/mainnet/log/init.log chia configure --enable-upnp false 2>&1 >> /root/.chia/mainnet/log/init.log chia start harvester -r + if [[ ${chia_exporter} == "true" ]]; then + echo "Starting Chia Exporter service for Prometheus reporting..." + sleep 20 && /usr/local/bin/chia-exporter serve 2>&1 > /root/.chia/mainnet/log/chia-exporter.log & + fi fi elif [[ ${mode} == 'plotter' ]]; then echo "Starting in Plotter-only mode. Run Plotman from either CLI or WebUI."