All Projects → fffonion → tplink-plug-exporter

fffonion / tplink-plug-exporter

Licence: BSD-2-Clause license
TP-Link Smart Plug Prometheus Exporter

Programming Languages

go
31211 projects - #10 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to tplink-plug-exporter

tplink-smartplug-api
TP-Link HS1xx smart plug API wrapper.
Stars: ✭ 48 (-40%)
Mutual labels:  smart-home, tplink
Amazon-Alexa-As-LG-TV-Remote
Control your LG WebOS 3.0+ TV with Amazon Alexa
Stars: ✭ 22 (-72.5%)
Mutual labels:  smart-home
github releases exporter
Exports GitHub release metrics to the Prometheus format
Stars: ✭ 21 (-73.75%)
Mutual labels:  prometheus-exporter
lustre exporter
Prometheus exporter for use with the Lustre parallel filesystem
Stars: ✭ 25 (-68.75%)
Mutual labels:  prometheus-exporter
OctoPrint-Prometheus-Exporter
An octoprint plugin for prometheus compatible metrics endpoint
Stars: ✭ 36 (-55%)
Mutual labels:  prometheus-exporter
enviroplus exporter
Prometheus exporter for enviroplus module by Pimoroni
Stars: ✭ 70 (-12.5%)
Mutual labels:  prometheus-exporter
ansible-snmp-exporter
Provision SNMP metrics exporter for prometheus monitoring
Stars: ✭ 18 (-77.5%)
Mutual labels:  prometheus-exporter
pywavethermo
Basic module to control the Worcester Wave thermostat from Python
Stars: ✭ 26 (-67.5%)
Mutual labels:  smart-home
tplink-smarthome-simulator
TP-Link Smarthome Device Simulator
Stars: ✭ 55 (-31.25%)
Mutual labels:  tplink
ansitheus
Ansible playbook - Containerize, configure and deploy Prometheus ecosystem
Stars: ✭ 19 (-76.25%)
Mutual labels:  prometheus-exporter
fortigate exporter
Prometheus exporter for Fortigate firewalls
Stars: ✭ 133 (+66.25%)
Mutual labels:  prometheus-exporter
domain exporter
Prometheus WHOIS domain details exporter.
Stars: ✭ 73 (-8.75%)
Mutual labels:  prometheus-exporter
extatus
App to report metrics to Prometheus from Elixir GenServers
Stars: ✭ 18 (-77.5%)
Mutual labels:  prometheus-exporter
HomeAssistantRepository
🏡 Home Assistant on Gentoo Linux.
Stars: ✭ 26 (-67.5%)
Mutual labels:  smart-home
elcep
Elastic Log Counter Exporter for Prometheus
Stars: ✭ 14 (-82.5%)
Mutual labels:  prometheus-exporter
mongodb-query-exporter
Prometheus MongoDB aggregation query exporter
Stars: ✭ 74 (-7.5%)
Mutual labels:  prometheus-exporter
home-assistant-config
🏠 My Home Assistant configuration
Stars: ✭ 17 (-78.75%)
Mutual labels:  smart-home
HomeAssistantMC
Bridge Home Assistant with Minecraft
Stars: ✭ 24 (-70%)
Mutual labels:  smart-home
cassandra-exporter
Java agent for exporting Cassandra metrics to Prometheus
Stars: ✭ 59 (-26.25%)
Mutual labels:  prometheus-exporter
kamailio exporter
Prometheus exporter for Kamailio SIP server
Stars: ✭ 49 (-38.75%)
Mutual labels:  prometheus-exporter

tplink-plug-exporter

Export TP-Link Smart Plug metrics to grafana dashboard

Install

Download from releases or run from docker

docker run -d -p 9233:9233 fffonion/tplink-plug-exporter

Usage

Use the -h flag to see full usage:

$ tplink-plug-exporter -h
Usage of tplink-plug-exporter:
  -metrics.listen-addr string
        listen address for tplink-plug exporter (default ":9233")

Grafana dashboard

Search for Kasa inside grafana or install from https://grafana.com/grafana/dashboards/10957 img

Sample prometheus config

# scrape kasa devices
scrape_configs:
  - job_name: 'kasa'
    static_configs:
    - targets:
      # IP of your smart plugs
      - 192.168.0.233
      - 192.168.0.234
    metrics_path: /scrape
    relabel_configs:
      - source_labels : [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        # IP of the exporter
        replacement: localhost:9233

# scrape kasa_exporter itself
  - job_name: 'kasa_exporter'
    static_configs:
      - targets:
        # IP of the exporter
        - localhost:9233

Docker Build Instructions

Build for both arm64 and amd64:

docker build -t <image-name>:latest-arm64 --platform linux/arm64 --build-arg GOARCH=arm64 .
docker build -t <image-name>:latest-amd64 --platform linux/amd64 --build-arg GOARCH=amd64 .

Merge them in one manifest:

docker manifest create <image-name>:latest --amend <image-name>:latest-arm64 --amend <image-name>:latest-amd64
docker manifest push <image-name>:latest

See also

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].