gohostmon is a lightweight Go utility built on top of paho.mqtt.golang and gopsutil
It monitors your host machine running Home Assistant and publishes system metrics over MQTT making it easy to visualize directly in your HA dashboard.
🧠 Originally tested on a Dell Wyse 5060 (AMD K10 CPU), but easily adaptable to other platforms.
All metrics are published under the hwinfo/ topic:
hwinfo/network_total_bytes_sent
hwinfo/network_total_bytes_received
hwinfo/k10_temperature_celsius
hwinfo/cpu_utilization_percent
hwinfo/ram_used_percent
Create a file named config.ini in the same directory as the binary:
[credentials]
user=<your mqtt username>
pass=<your mqtt password>
host=<your mqtt hostname>
Then, you should create a bash script, which you'll put somewhere to automatically start this python script on boot.
This is an example autorun script dedicated to Kubuntu autorun mechanism which also launches HA instance:
#!/bin/bash
cd /home/chris/Pulpit/HomeAssistant/uhostmon
nohup ./gohostmon >/dev/null 2>&1 &
VBoxManage startvm HomeAssistant --type headless