unpoller_unpoller/pkg/influxunifi
Cody Lee 2b185e88c7
fixes sitedpi strings on influx and prom
2023-01-23 17:32:14 -06:00
..
LICENSE move to the pkg dir 2022-12-02 20:46:16 -05:00
README.md update per PR suggestions 2022-12-05 16:06:30 -06:00
alarms.go go 1.19 interface{} -> any 2022-12-03 16:32:12 -06:00
clients.go fixes client dpi strings on influx and prom 2023-01-07 11:36:11 -06:00
events.go go 1.19 interface{} -> any 2022-12-03 16:32:12 -06:00
influxdb.go CLI works 2022-12-22 18:16:43 -06:00
logger.go CLI works 2022-12-22 18:16:43 -06:00
pdu.go prom and influx support 2022-12-22 14:36:08 -06:00
report.go find a way to merge 2022-12-04 20:38:44 -06:00
site.go fixes sitedpi strings on influx and prom 2023-01-23 17:32:14 -06:00
uap.go remote upgrade metrics for #433 2022-12-21 20:14:22 -06:00
udm.go remote upgrade metrics for #433 2022-12-21 20:14:22 -06:00
usg.go remote upgrade metrics for #433 2022-12-21 20:14:22 -06:00
usw.go remote upgrade metrics for #433 2022-12-21 20:14:22 -06:00
uxg.go another NPE for #422 2022-12-20 21:35:06 -06:00

README.md

UnPoller InfluxDB Plugin

Collects UniFi data from a UniFi controller using the API.

This is meant for InfluxDB users 1.8+ and 2.x series.

Configuration

InfluxDB 1.8+, 2.x

Note the use of auth_token to enable this mode.

influxdb:
  disable: false
  # How often to poll UniFi and report to Datadog.
  interval: "2m"
  # the influxdb url to post data
  url: http://somehost:1234
  # the secret auth token, this enables InfluxDB 1.8, 2.x compatibility.
  auth_token: somesecret
  # the influxdb org
  org: my-org
  # the influxdb bucket
  bucket: my-bucket
  # how many points to batch write per flush.
  batch_size: 20

InfluxDB pre 1.8

Note the lack of auth_token to enable this mode.

influxdb:
  disable: false
  # How often to poll UniFi and report to Datadog.
  interval: "2m"
  # the influxdb url to post data
  url: http://somehost:1234
  # the database
  db: mydb
  # the influxdb api user
  user: unifi
  # the influxdb api password 
  pass: supersecret