unpoller_unpoller/pkg/influxunifi
Cody Lee 9bdc6e8d0f
auto fix lint rules
2024-09-09 08:55:12 -05:00
..
LICENSE
README.md
alarms.go fix type 2024-04-19 15:43:00 -05:00
clients.go
events.go auto fix lint rules 2024-09-09 08:55:12 -05:00
influxdb.go auto fix lint rules 2024-09-09 08:55:12 -05:00
integration_test.go
integration_test_expectations.yaml fix integration test 2024-04-03 18:34:54 -05:00
logger.go
pdu.go
report.go
site.go
uap.go
udm.go nice find here, pct should be float 2024-04-03 18:41:34 -05:00
usg.go
usw.go
uxg.go

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