unpoller_unpoller/pkg
Cody Lee 22cdc248be
feat(otelunifi): add OpenTelemetry output plugin
Adds a new push-based output plugin that exports UniFi metrics to any
OTLP-compatible backend (Grafana Alloy/Mimir, Honeycomb, Datadog via
OTel, New Relic, etc.) using the Go OpenTelemetry SDK v1.42.

Config (default disabled):
  [otel]
  url      = "http://localhost:4318"
  protocol = "http"   # or "grpc"
  interval = "30s"
  timeout  = "10s"
  disable  = false
  api_key  = ""       # optional Bearer auth

Env var prefix: UP_OTEL_*

Exported metrics:
- Sites:   user/guest/IoT counts, AP/GW/SW counts, latency, uptime,
           tx/rx rates per subsystem
- Clients: uptime, rx/tx bytes & rates; signal/noise/RSSI for wireless
- UAP:     up, uptime, CPU/mem, load, per-radio channel/power,
           per-VAP station count/satisfaction/bytes
- USW:     up, uptime, CPU/mem, load, aggregate rx/tx bytes,
           per-port up/speed/bytes/packets/errors/dropped/PoE
- USG:     up, uptime, CPU/mem, load, per-WAN rx/tx bytes/packets/errors
- UDM/UXG: up, uptime, CPU/mem, load averages

Closes #933

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 17:41:55 -05:00
..
datadogunifi fix: remove age==0 guard that silently dropped all rogue AP metrics (#972) 2026-03-23 14:53:07 -05:00
influxunifi feat: export site_to_site_enabled VPN metric (#926) (#976) 2026-03-23 15:39:19 -05:00
inputunifi feat(promunifi): add unifi_controller_up gauge metric (closes #356) (#974) 2026-03-23 15:25:00 -05:00
lokiunifi feat(lokiunifi): add richer low-cardinality stream labels (#932) (#975) 2026-03-23 15:41:20 -05:00
mysqlunifi
otelunifi feat(otelunifi): add OpenTelemetry output plugin 2026-03-23 17:41:55 -05:00
poller feat(promunifi): add unifi_controller_up gauge metric (closes #356) (#974) 2026-03-23 15:25:00 -05:00
promunifi feat: export site_to_site_enabled VPN metric (#926) (#976) 2026-03-23 15:39:19 -05:00
unittest Temp fix for test cases and warning from Dockerfile 2025-12-24 00:23:05 -05:00
webserver Fix health check port binding conflict (issue #892) 2025-12-09 08:11:21 -06:00