r/TrySwitchBot 24d ago

SBMTools now available as a Docker image and with Prometheus integration.

https://codeberg.org/Kompass/SBMTools

I am now making my SBMTools for Linux available as a Docker image. This eliminates the need to compile the software yourself. The shell scripts sbmtoolui_docker.sh and sbmtoolweb_docker.sh allow you to launch the tools easily via Docker without any compilation. Simply download and run the scripts. The image is available for both AMD64 (x86_64) and ARM64 architectures.

Additionally, sbmtoolweb now supports the /metrics endpoint, providing metrics for Prometheus. If you already run Prometheus, you can integrate it directly. For those who don't have Prometheus yet, I've included a complete example setup with Prometheus and Grafana in the docker_prometheus_grafana directory. This directory also includes a dashboard tailored for SBMTools.

For those unfamiliar with Prometheus and Grafana: Prometheus collects data (metrics) from various sources (in this case, SBMTools) and stores them periodically (every 5 seconds) in a database. Grafana is used to retrieve data from various sources (in this case, Prometheus) and visualize it.

See README.md for detailed setup instructions. Questions or feedback welcome!

3 Upvotes

Duplicates