Periodically get information from a Shelly Plus Plug S and publish it as Prometheus metrics.
Output button state, power, voltage, current, total energy, temperature (in °C), updates available and last update time.
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