Sign inSign up

chhaley/tplink_smartplug_exporter

By chhaley

•Updated about 5 years ago

Prometheus Exporter for TP-Link Smart Plugs

Image
1

1.8K

chhaley/tplink_smartplug_exporter repository overview

Prometheus Exporter for TP-Link Smart Plugs

⁠Installation

The exporter listens on port 9784 by default.

⁠Docker
 docker run -d \
    -e HS1X_HOSTS='192.168.1.156:9999,192.168.1.159:9999' \
    --network host \
    --name tplink_smartplug_exporter \
    chhaley/tplink_smartplug_exporter
⁠Helm
helm repo add charlie-haley https://charlie-haley.github.io/private-charts
helm repo update
helm install tplink-smartplug-exporter charlie-haley/tplink-smartplug-exporter --set "hs1xHosts={"192.168.1.156:9999","192.168.1.159:9999"}" -n monitoring

If you want to use the ServiceMonitor (which is enabled by default) you'll need to have prometheus-operator⁠ deployed to your cluster, see values⁠ to disable it if you'd like use ingress instead.

You can find the chart repo here⁠, if you'd like to contribute.

⁠Metrics

NameDescriptionLabels
current_maCurrent being used in milliampshost
voltage_mvVoltage being used in millivoltshost
power_mwWatts being used in milliwattshost
total_whTotal watt-hourshost

Tag summary

Content type

Image

Digest

Size

326.8 MB

Last updated

about 5 years ago

docker pull chhaley/tplink_smartplug_exporter