/shellyplug-exporter-rs

Rust script to periodically get energy information from a ShellyPlug Plus S and expose it as Prometheus metrics

Primary LanguageRust

ShellyPlug Exporter

Periodically get information from a Shelly Plus Plug S and publish it as Prometheus metrics.

Exposed metrics

Output button state, power, voltage, current, total energy, temperature (in °C), updates available and last update time.

How to run

Build and run with Docker:

docker build -t shellyplug-exporter .
docker run -it --rm \
    -e SHELLYPLUG_URL=host/ip_address \
    -e PORT=9185 \
    -e PERIOD=60 \
    shellyplug-exporter