Skip to content

Commit

Permalink
update readme with original work and grafana link
Browse files Browse the repository at this point in the history
  • Loading branch information
fffonion committed Oct 7, 2019
1 parent 9deb459 commit e41b17f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# tplink-plug-exporter

Export TP-Link Smart Plug metrics to grafana dashboard

## Grafana dashboard

Search for `Kasa` inside grafana or install from https://grafana.com/grafana/dashboards/10957
![img](https://grafana.com/api/dashboards/10957/images/6954/image)

## Sample prometheus config

```yaml
Expand All @@ -8,6 +15,7 @@ scrape_configs:
- job_name: 'kasa'
static_configs:
- targets:
# IP of your smart plugs
- 192.168.0.233
- 192.168.0.234
metrics_path: /scrape
Expand All @@ -17,11 +25,17 @@ scrape_configs:
- 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
```
```
## See also
- Original reverse engineering work: https://github.com/softScheck/tplink-smartplug

0 comments on commit e41b17f

Please sign in to comment.