{"repo":"d1ceward/shellyplug-exporter","free":true,"listed":false,"github":"https://github.com/d1ceward/shellyplug-exporter","clone":"git clone https://github.com/d1ceward/shellyplug-exporter.git","description":"Prometheus Exporter for Shelly plugs","language":"Crystal","stars":12,"topics":["prometheus","prometheus-exporter","shelly","plug","docker"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"shellyplug-exporter (v3.0.0) Prometheus exporter for Shelly Plug S (Gen1) and Shelly Plus Plug S (Gen2), written in Crystal. Note Uses the plug’s HTTP/RPC API (not MQTT). :rocket: Feature requests and suggestions are welcome, open an issue! Quick Start Step 1. Configure Your Plugs Create a config.yaml to manage one or more plugs: Note: The plug generation (Gen1 / Gen2) is automatically detected at startup by probing each plug's /shelly endpoint. No manual configuration is needed. Step 2. Run exporter With docker The container automatically loads /config.yaml if present, just mount your config file: Or with docker-compose: Note: The built-in healthcheck ( /health endpoint) is included in the Docker image, no extra setup needed. With binary Using your config file: Legacy environment variables (Single Plug, Not recommended) If you want to run with environment variables (for a single plug), you can use the following variables: - SHELLYPLUG HOST (required): IP address or hostname of the Shelly Plug S - SHELLYPLUG PORT (optional, default: 80): Port of the Shelly Plug S - SHELLYPLUG AUTH USERNAME (optional): Username for HTTP Basic Auth - SHELLYPLUG AUTH PASSWORD (optional): Password for HTTP Basic Auth - EXPORTER PORT (optional, default: 5000): Port for the exporter to listen on Example with docker: Metrics Endpoint: /metrics Name Description Type Gen1 Gen2 ---------------------------- -------------------------------------- --------- ------ ------ shellyplug power Current power dra","default_branch":null,"files":null,"tree":[],"storefront":"/r/d1ceward","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/d1ceward/shellyplug-exporter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}