Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 523 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 523 Bytes

shelly plug s MQTT exporter

Usage

Start mosquitto MQTT broker:

podman run -it -p 1883:1883 -p 9001:9001 -v $PWD/mosquitto.conf:/mosquitto/config/mosquitto.conf eclipse-mosquitto

Run the exporter:

podman build -t shell-plug-exporter .
podman run -e MQTT_HOST=192.167.178.123 -p 9874:9874 shelly-plug-exporter

Configure prometheus:

scrape_configs:
- job_name: shelly
  static_configs:
  - targets: ['192.168.178.123:9874']

Watch mqtt:

mosquitto_sub -v -t 'shellies/+/#'