fffonion / tplink-plug-exporter

TP-Link Smart Plug Prometheus Exporter
BSD 2-Clause "Simplified" License
125 stars 20 forks source link

server returned HTTP status 404 Not Found #3

Closed domalab closed 4 years ago

domalab commented 4 years ago

@fffonion

I configured prometheus with your prometheus.yml configs. I have updated the IP addresses to my TP link smart plugs.

Prometheus starts but I'm getting "server returned HTTP status 404 Not Found" for my 2 plugs. They are the HS110 model with latest firmware.

Any ideas?

fffonion commented 4 years ago

Hi, it looks like a configuration error. Could you share the related prometheus configuration and, if possible, the kasa job section in the targets page of prometheus webui?

domalab commented 4 years ago

Here's the Prometheus configuration.

`global: scrape_interval: 1m scrape_timeout: 10s evaluation_interval: 1m scrape_configs:

Here's an image of the targets

https://imgur.com/a/0jlmXWJ

fffonion commented 4 years ago

OK I think 192.168.1.10:9090 should be changed to host:port of the exporter instead of prometheus.

domalab commented 4 years ago

OK I think 192.168.1.10:9090 should be changed to host:port of the exporter instead of prometheus.

So Prometheus is running as docker container. Do I need to install the exporter in a different container? If so, do you please have instructions how to install the exporter?

domalab commented 4 years ago

OK I think 192.168.1.10:9090 should be changed to host:port of the exporter instead of prometheus.

So Prometheus is running as docker container. Do I need to install the exporter in a different container? If so, do you please have instructions how to install the exporter?

@fffonion I managed to get the exporter to work. I'm able to view the plug information in the dashboard.

Thanks for the exporter, dashboard and configs. Really appreciate it.