mirror of
https://github.com/unpoller/unpoller.git
synced 2026-03-31 06:24:21 -04:00
* feat: add Site Magic site-to-site VPN metrics (closes #926) Bump github.com/unpoller/unifi/v5 to v5.25.0 which adds: - GetMagicSiteToSiteVPN / GetMagicSiteToSiteVPNSite API methods - MagicSiteToSiteVPN types with mesh, connection, device, and status structs - Missing VPN health fields on Site.Health (SiteToSiteNumActive/Inactive, SiteToSiteRxBytes/TxBytes/RxPackets/TxPackets) Implement VPN metrics collection across all output plugins: - Collect Site Magic VPN mesh data per-site in inputunifi pollController - Propagate VPNMeshes through poller.Metrics / AppendMetrics - Apply DefaultSiteNameOverride for VPN meshes in augmentMetrics / applySiteNameOverride - influxunifi: vpn_mesh, vpn_mesh_connection, vpn_mesh_status tables - promunifi: vpn_mesh_*, vpn_tunnel_*, vpn_mesh_status_* gauges - datadogunifi: unifi.vpn_mesh.*, unifi.vpn_tunnel.*, unifi.vpn_mesh_status.* Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> * feat(otelunifi): add Site Magic VPN metrics to OpenTelemetry output Adds exportVPNMeshes to the otel output plugin, emitting the same unifi_vpn_mesh_*, unifi_vpn_tunnel_*, and unifi_vpn_mesh_status_* gauges as the other output plugins. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
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