unpoller_unpoller/pkg/influxunifi
Cody Lee 4b19b873ab
address issue
2025-04-04 08:33:58 -05:00
..
LICENSE
README.md
alarms.go painful upgrade for dumb go versioning 2024-12-31 14:44:10 -06:00
clients.go painful upgrade for dumb go versioning 2024-12-31 14:44:10 -06:00
events.go painful upgrade for dumb go versioning 2024-12-31 14:44:10 -06:00
influxdb.go address issue 2025-04-04 08:33:58 -05:00
integration_test.go
integration_test_expectations.yaml fixes metrics prefix names for ubb and uci devices 2025-01-15 15:50:47 -06:00
logger.go
pdu.go painful upgrade for dumb go versioning 2024-12-31 14:44:10 -06:00
report.go add ubb and uci initial support 2024-12-31 16:26:54 -06:00
site.go painful upgrade for dumb go versioning 2024-12-31 14:44:10 -06:00
uap.go painful upgrade for dumb go versioning 2024-12-31 14:44:10 -06:00
ubb.go fixes metrics prefix names for ubb and uci devices 2025-01-15 15:50:47 -06:00
uci.go fixes metrics prefix names for ubb and uci devices 2025-01-15 15:50:47 -06:00
udm.go painful upgrade for dumb go versioning 2024-12-31 14:44:10 -06:00
usg.go adds device uplink stats for issue #585 2025-01-02 12:41:34 -06:00
usw.go adds device uplink stats for issue #585 2025-01-02 12:41:34 -06:00
uxg.go painful upgrade for dumb go versioning 2024-12-31 14:44:10 -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