astr0n8t / tasmota-power-exporter

A Prometheus exporter for Tasmota smart plugs.
https://blog.nathanhigley.com/energymonitoring/
GNU General Public License v3.0
26 stars 12 forks source link

Hangs on #40

Open VitalisP opened 7 months ago

VitalisP commented 7 months ago

Hi, it just hangs on this:

C:\Exporter>docker compose up [+] Running 1/0 ✔ Container tasmota-power Created 0.0s Attaching to tasmota-power

My prometheus.yml:

scrape_configs:

My compose.yml:

version: ‘3.8’ # or ‘2.4’ # add services:

tasmota: image: ghcr.io/astr0n8t/tasmota-power-exporter:latest container_name: tasmota-power restart: always ports:

astr0n8t commented 7 months ago

The container listens on port 8000 so try mapping that port instead of port 80. I don't use this project anymore so I haven't tested in a while but that looks like the issue on first glance. Also, make sure you're DEVICE_IP is pointed at your tasmota device and the Prometheus config is pointed at the container not your tasmota