metrics2mqtt
metrics2mqtt copied to clipboard
Publish cross-platorm system performance metrics to a MQTT broker.
When I follow the instructions to daemonize the script, I get: ``` sudo touch /var/log/supervisor/metrics2mqtt/{stderr,stdout}.log && chown -R simon /var/log/supervisor/metrics2mqtt chown: changing ownership of '/var/log/supervisor/metrics2mqtt/stderr.log': Operation not permitted chown: changing...
I daemonize `metrics2mqtt` via the suggested method (using [`supervisor`](https://pypi.org/project/supervisor/)). I'm finding that when I restart my MQTT broker, `metrics2mqtt` errors out quite rapidly – so rapidly, in fact, that at...
Launcher daemon for MacOS. Needs to be copied to /Library/LaunchDaemons/com.jamiebegin.metrics2mqtt.service.plist 1. Replace xxx's with your hostname (see note below), broker, username and password 2. Make sure permissions are correct: sudo...
SystemD is already running on Raspberry Pi etc, so I include an example configuration file for that, and documented it, as an alternative to Supervisor (which required a download and...
metrics2mqtt --name DAN-PROXMOX --broker 192.168.2.3 --cpu=60 --vm -vvvvv Traceback (most recent call last): File "/home/pi/.local/bin/metrics2mqtt", line 6, in from metrics2mqtt.base import main ImportError: No module named metrics2mqtt.base
I think is good to have a way how you can set a port of MQTT broker. Therefore I added parameter `--port` to command line.
Maybe you could add metrics for disk health based on smart values.
On a headless Raspberry Pi, you'll need to install python3 Pip before install of Metrics2MQTT: `sudo apt install python3-pip -y ` Additionally, Metrics2MQTT installation requires sudo, and in versions from...
replace '.' in system name to prevent homeassistant error: [homeassistant.components.mqtt.discovery] Received message on illegal discovery topic 'homeassistant/sensor/macbook-pro.local/disk_usage__/config'. The **topic** contains not allowed characters. For more information see https://www.home-assistant.io/integrations/mqtt/#discovery-topic