4926 Commits

Author SHA1 Message Date
Cody Lee
ab2c677f30 uses new unifi lib 2025-12-09 10:48:45 -06:00
Cody Lee
6a135c60a7 Enhance UBB device support with comprehensive Prometheus metrics
This change significantly improves UniFi Building Bridge (UBB) device
support by adding comprehensive Prometheus metric exports.

UBB devices are point-to-point wireless bridges with dual radios:
- wifi0: 5GHz radio (802.11ac)
- terra2/wlan0/ad: 60GHz radio (802.11ad - Terragraph/WiGig)

Changes:
- Added exportUBBstats() to export UBB-specific statistics separated
  by radio (total, wifi0, terra2, user-wifi0, user-terra2)
- Added exportP2Pstats() to export point-to-point link metrics
  (rx_rate, tx_rate, throughput)
- Added VAP (Virtual Access Point) table export via existing exportVAPtable()
- Added Radio table export via existing exportRADtable() to capture
  60GHz radio metrics
- Added link quality metrics (link_quality, link_quality_current,
  link_capacity)
- Added comprehensive comments documenting UBB device characteristics
  and 60GHz band support

The implementation reuses existing UAP metric descriptors where
appropriate, allowing UBB metrics to be collected alongside UAP metrics
in Prometheus with proper labeling for differentiation.

Requires: unpoller/unifi#169 (UBB type definition fixes)
Fixes: #409

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-09 10:20:23 -06:00
Cody Lee
750f3f38c2 Merge pull request #893 from unpoller/fix-892-healthcheck-binding
Fix health check port binding conflict (issue #892)
2025-12-09 08:14:48 -06:00
Cody Lee
832334655c Fix health check port binding conflict (issue #892)
The Docker health check was attempting to bind to ports already in use by
the running application, causing "address already in use" errors. This fix
adds a health check mode that skips network binding operations while still
validating output configuration (listen addresses, paths, etc.).

Changes:
- Add health check mode flag in pkg/poller/outputs.go
- Update prometheus and webserver DebugOutput() to skip port binding in health check mode
- Maintain full configuration validation without network conflicts

Fixes #892

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
v2.17.1
2025-12-09 08:11:21 -06:00
Cody Lee
ae4cf462a0 Merge pull request #891 from unpoller/unifi-bump-5-2-0
bump unifi to v5.2.0
2025-12-08 13:59:37 -06:00
Cody Lee
f0ed2954b8 bump unifi to v5.2.0 2025-12-08 13:55:10 -06:00
Cody Lee
4e6ebee524 Merge pull request #890 from unpoller/docker-healthcheck
Add Docker health check support
v2.17.0
2025-12-08 13:25:57 -06:00
Cody Lee
b960695f3b Add Docker health check support
Implements #406 by adding a --health CLI flag and HEALTHCHECK instruction
to the Dockerfile. This allows Docker and container orchestration platforms
to monitor container health automatically.

Changes:
- Added --health flag that validates configuration and plugin connectivity
- Implemented HealthCheck() method in pkg/poller/commands.go
- Updated Dockerfile with HEALTHCHECK instruction (30s interval, 10s timeout)
- Updated MANUAL.md with --health flag documentation
- Added health check documentation to Docker README
- Added comments to docker-compose examples about built-in health check

The health check:
- Validates configuration file is found and parseable
- Ensures at least one input and one enabled output are configured
- Performs basic validation on enabled outputs
- Returns exit code 0 (healthy) or 1 (unhealthy)
- Runs silently for Docker compatibility

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-08 13:09:10 -06:00
Cody Lee
ef677c8f74 Merge pull request #887 from unpoller/dependabot/go_modules/all-2743cc9a87
Bump the all group across 1 directory with 5 updates
v2.16.0
2025-12-03 11:55:28 -06:00
Cody Lee
7e2fb0135e fix dd client interface change, update deprecated context lib in influxdb 2025-12-03 11:51:40 -06:00
dependabot[bot]
14b747cb1a Bump the all group across 1 directory with 5 updates
Bumps the all group with 3 updates in the / directory: [github.com/DataDog/datadog-go/v5](https://github.com/DataDog/datadog-go), [github.com/prometheus/common](https://github.com/prometheus/common) and [golang.org/x/crypto](https://github.com/golang/crypto).


Updates `github.com/DataDog/datadog-go/v5` from 5.7.0 to 5.8.1
- [Release notes](https://github.com/DataDog/datadog-go/releases)
- [Changelog](https://github.com/DataDog/datadog-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/DataDog/datadog-go/compare/v5.7.0...v5.8.1)

Updates `github.com/prometheus/common` from 0.66.1 to 0.67.4
- [Release notes](https://github.com/prometheus/common/releases)
- [Changelog](https://github.com/prometheus/common/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/common/compare/v0.66.1...v0.67.4)

Updates `golang.org/x/crypto` from 0.43.0 to 0.45.0
- [Commits](https://github.com/golang/crypto/compare/v0.43.0...v0.45.0)

Updates `golang.org/x/net` from 0.45.0 to 0.47.0
- [Commits](https://github.com/golang/net/compare/v0.45.0...v0.47.0)

Updates `golang.org/x/term` from 0.36.0 to 0.37.0
- [Commits](https://github.com/golang/term/compare/v0.36.0...v0.37.0)

---
updated-dependencies:
- dependency-name: github.com/DataDog/datadog-go/v5
  dependency-version: 5.8.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: github.com/prometheus/common
  dependency-version: 0.67.4
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: golang.org/x/crypto
  dependency-version: 0.45.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: golang.org/x/net
  dependency-version: 0.47.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
- dependency-name: golang.org/x/term
  dependency-version: 0.37.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-03 17:45:00 +00:00
Cody Lee
647b3c0aea Merge pull request #888 from unpoller/dependabot/github_actions/all-14cb627f6c
Bump the all group with 2 updates
2025-12-03 11:43:49 -06:00
Cody Lee
c778ddea43 fix verify 2025-12-03 11:42:47 -06:00
Cody Lee
6f4384c18d fix linting 2025-12-03 11:40:21 -06:00
dependabot[bot]
bc37996775 Bump the all group with 2 updates
Bumps the all group with 2 updates: [actions/checkout](https://github.com/actions/checkout) and [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action).


Updates `actions/checkout` from 5 to 6
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

Updates `golangci/golangci-lint-action` from 7 to 9
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v7...v9)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all
- dependency-name: golangci/golangci-lint-action
  dependency-version: '9'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 02:05:53 +00:00
Cody Lee
944ce85477 make dependabot group updates 2025-11-04 12:31:04 -06:00
Cody Lee
814c173dfa Merge pull request #883 from unpoller/dependabot/go_modules/golang.org/x/crypto-0.43.0
Bump golang.org/x/crypto from 0.42.0 to 0.43.0
2025-11-04 12:29:06 -06:00
dependabot[bot]
91d8eb3b89 Bump golang.org/x/crypto from 0.42.0 to 0.43.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.42.0 to 0.43.0.
- [Commits](https://github.com/golang/crypto/compare/v0.42.0...v0.43.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.43.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-13 02:02:09 +00:00
Cody Lee
2e512480d4 Merge pull request #872 from unpoller/dependabot/go_modules/golang.org/x/net-0.44.0
Bump golang.org/x/net from 0.43.0 to 0.44.0
2025-10-06 13:39:37 -05:00
Cody Lee
8fb3cb2780 Merge pull request #867 from unpoller/dependabot/go_modules/github.com/prometheus/client_golang-1.23.2
Bump github.com/prometheus/client_golang from 1.23.0 to 1.23.2
2025-10-06 13:39:25 -05:00
Cody Lee
5b8d1516eb Merge pull request #877 from unpoller/dependabot/github_actions/docker/login-action-3.6.0
Bump docker/login-action from 3.5.0 to 3.6.0
2025-10-06 13:39:16 -05:00
dependabot[bot]
29f9cb500c Bump golang.org/x/net from 0.43.0 to 0.44.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.43.0 to 0.44.0.
- [Commits](https://github.com/golang/net/compare/v0.43.0...v0.44.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.44.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-06 18:38:28 +00:00
dependabot[bot]
b73e9181d5 Bump github.com/prometheus/client_golang from 1.23.0 to 1.23.2
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.23.0 to 1.23.2.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.23.0...v1.23.2)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-version: 1.23.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-06 18:38:04 +00:00
dependabot[bot]
038234ba58 Bump docker/login-action from 3.5.0 to 3.6.0
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.5.0 to 3.6.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v3.5.0...v3.6.0)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: 3.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-06 18:37:54 +00:00
Cody Lee
003bdd7948 Merge pull request #868 from unpoller/dependabot/go_modules/github.com/prometheus/common-0.66.1
Bump github.com/prometheus/common from 0.65.0 to 0.66.1
2025-10-06 13:37:22 -05:00
Cody Lee
bf68df44f2 Merge pull request #869 from unpoller/dependabot/github_actions/actions/setup-go-6
Bump actions/setup-go from 5 to 6
2025-10-06 13:37:14 -05:00
Cody Lee
98c93359b1 Merge pull request #870 from unpoller/dependabot/github_actions/actions/stale-10
Bump actions/stale from 9 to 10
2025-10-06 13:37:09 -05:00
Cody Lee
d0b5998829 Merge pull request #876 from unpoller/dependabot/github_actions/peter-evans/dockerhub-description-5
Bump peter-evans/dockerhub-description from 4 to 5
2025-10-06 13:36:55 -05:00
dependabot[bot]
428f72e256 Bump peter-evans/dockerhub-description from 4 to 5
Bumps [peter-evans/dockerhub-description](https://github.com/peter-evans/dockerhub-description) from 4 to 5.
- [Release notes](https://github.com/peter-evans/dockerhub-description/releases)
- [Commits](https://github.com/peter-evans/dockerhub-description/compare/v4...v5)

---
updated-dependencies:
- dependency-name: peter-evans/dockerhub-description
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-06 02:05:41 +00:00
dependabot[bot]
4d5a89d124 Bump actions/stale from 9 to 10
Bumps [actions/stale](https://github.com/actions/stale) from 9 to 10.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v9...v10)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-version: '10'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 02:06:58 +00:00
dependabot[bot]
2cf48797ae Bump actions/setup-go from 5 to 6
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5 to 6.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 02:06:54 +00:00
dependabot[bot]
64416a9f8d Bump github.com/prometheus/common from 0.65.0 to 0.66.1
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.65.0 to 0.66.1.
- [Release notes](https://github.com/prometheus/common/releases)
- [Changelog](https://github.com/prometheus/common/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/common/compare/v0.65.0...v0.66.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/common
  dependency-version: 0.66.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 02:01:27 +00:00
Cody Lee
330e4a4b0b Merge pull request #866 from unpoller/dependabot/go_modules/github.com/spf13/pflag-1.0.8 2025-09-03 21:21:34 -05:00
dependabot[bot]
b976b32aad Bump github.com/spf13/pflag from 1.0.7 to 1.0.8
Bumps [github.com/spf13/pflag](https://github.com/spf13/pflag) from 1.0.7 to 1.0.8.
- [Release notes](https://github.com/spf13/pflag/releases)
- [Commits](https://github.com/spf13/pflag/compare/v1.0.7...v1.0.8)

---
updated-dependencies:
- dependency-name: github.com/spf13/pflag
  dependency-version: 1.0.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-04 02:20:09 +00:00
Cody Lee
98ef73c597 Merge pull request #865 from unpoller/dependabot/go_modules/github.com/stretchr/testify-1.11.1 2025-09-03 05:12:19 -05:00
dependabot[bot]
a8ccbbaeb3 Bump github.com/stretchr/testify from 1.11.0 to 1.11.1
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.11.0 to 1.11.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.11.0...v1.11.1)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-version: 1.11.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-01 04:39:45 +00:00
Cody Lee
dd50960ab8 Merge pull request #863 from unpoller/dependabot/go_modules/github.com/stretchr/testify-1.11.0
Bump github.com/stretchr/testify from 1.10.0 to 1.11.0
2025-08-26 08:18:38 -05:00
dependabot[bot]
5ea181f5f8 Bump github.com/stretchr/testify from 1.10.0 to 1.11.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.10.0...v1.11.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-version: 1.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-25 03:57:17 +00:00
Cody Lee
91a3ce2cbc Merge pull request #860 from unpoller/bump-unifi-5-1-1
bump unifi version to 5.1.1
v2.15.4
2025-08-20 11:42:39 -05:00
Cody Lee
b37317a88d bump unifi version to 5.1.1 2025-08-20 11:40:37 -05:00
Cody Lee
647acd79f4 Merge pull request #859 from unpoller/dependabot/go_modules/github.com/DataDog/datadog-go/v5-5.7.0
Bump github.com/DataDog/datadog-go/v5 from 5.6.0 to 5.7.0
2025-08-20 11:39:07 -05:00
Cody Lee
c3126d27e3 interface change updates 2025-08-20 11:36:29 -05:00
dependabot[bot]
d36eaa41dc Bump github.com/DataDog/datadog-go/v5 from 5.6.0 to 5.7.0
Bumps [github.com/DataDog/datadog-go/v5](https://github.com/DataDog/datadog-go) from 5.6.0 to 5.7.0.
- [Release notes](https://github.com/DataDog/datadog-go/releases)
- [Changelog](https://github.com/DataDog/datadog-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/DataDog/datadog-go/compare/v5.6.0...v5.7.0)

---
updated-dependencies:
- dependency-name: github.com/DataDog/datadog-go/v5
  dependency-version: 5.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-20 16:31:59 +00:00
Cody Lee
2686143d40 Merge pull request #852 from unpoller/dependabot/go_modules/github.com/prometheus/client_golang-1.23.0
Bump github.com/prometheus/client_golang from 1.22.0 to 1.23.0
2025-08-20 11:27:10 -05:00
dependabot[bot]
266e0e0734 Bump github.com/prometheus/client_golang from 1.22.0 to 1.23.0
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.22.0 to 1.23.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.22.0...v1.23.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-version: 1.23.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-20 16:19:37 +00:00
Cody Lee
7f083cd05f Merge pull request #850 from unpoller/dependabot/go_modules/github.com/spf13/pflag-1.0.7
Bump github.com/spf13/pflag from 1.0.6 to 1.0.7
2025-08-20 11:18:57 -05:00
Cody Lee
da38face58 Merge pull request #855 from unpoller/dependabot/go_modules/golang.org/x/net-0.43.0
Bump golang.org/x/net from 0.39.0 to 0.43.0
2025-08-20 11:18:39 -05:00
Cody Lee
bffba0f672 Merge pull request #856 from unpoller/dependabot/github_actions/docker/login-action-3.5.0
Bump docker/login-action from 3.4.0 to 3.5.0
2025-08-20 11:18:28 -05:00
Cody Lee
88b4fdc503 Merge pull request #858 from unpoller/dependabot/github_actions/actions/checkout-5
Bump actions/checkout from 4 to 5
2025-08-20 11:18:18 -05:00
Cody Lee
bab01e900b Merge pull request #849 from Traxmaxx/fix/missing-loki-stream
fix: skip loki reporting if streams is empty
2025-08-20 11:18:05 -05:00