mirror of
https://github.com/unpoller/unpoller.git
synced 2026-03-31 06:33:57 -04:00
Add comprehensive WAN metrics support to unpoller: WAN Configuration Metrics: - wan_failover_priority: WAN failover priority - wan_load_balance_weight: Load balancing weight - wan_provider_download_kbps: Configured ISP download speed - wan_provider_upload_kbps: Configured ISP upload speed - wan_smartq_enabled: SmartQueue QoS status - wan_magic_enabled: Magic WAN status - wan_vlan_enabled: VLAN configuration status WAN Statistics Metrics: - wan_uptime_percentage: WAN uptime percentage - wan_peak_download_percent: Peak download utilization - wan_peak_upload_percent: Peak upload utilization - wan_max_rx_bytes_rate: Maximum receive rate - wan_max_tx_bytes_rate: Maximum transmit rate WAN Service Provider Metrics: - wan_service_provider_asn: ISP autonomous system number Labels include: - wan_id, wan_name, wan_networkgroup - wan_type (dhcp, static, pppoe) - wan_load_balance_type (weighted, failover-only) - isp_name, isp_city (service provider metrics) - site_name, source Changes: - pkg/poller/config.go: Add WANConfigs field to Metrics struct - pkg/poller/inputs.go: Append WAN configs in metric aggregation - pkg/inputunifi/input.go: Add WANConfigs field to Metrics struct - pkg/inputunifi/collector.go: Fetch WAN enriched configuration - pkg/promunifi/wan.go: New WAN metrics exporter - pkg/promunifi/collector.go: Initialize and export WAN metrics Depends on: unpoller/unifi PR (WAN API support) Co-authored-by: Cursor <cursoragent@cursor.com>
51 lines
1.7 KiB
Modula-2
51 lines
1.7 KiB
Modula-2
module github.com/unpoller/unpoller
|
|
|
|
go 1.25.5
|
|
|
|
require (
|
|
github.com/DataDog/datadog-go/v5 v5.8.2
|
|
github.com/flaticols/countrycodes v0.0.2
|
|
github.com/gorilla/mux v1.8.1
|
|
github.com/influxdata/influxdb1-client v0.0.0-20220302092344-a9ab5670611c
|
|
github.com/pkg/errors v0.9.1
|
|
github.com/prometheus/client_golang v1.23.2
|
|
github.com/prometheus/common v0.67.5
|
|
github.com/spf13/pflag v1.0.10
|
|
github.com/stretchr/testify v1.11.1
|
|
github.com/unpoller/unifi/v5 v5.10.0
|
|
golang.org/x/crypto v0.47.0
|
|
golang.org/x/term v0.39.0
|
|
golift.io/cnfg v0.2.3
|
|
golift.io/cnfgfile v0.0.0-20240713024420-a5436d84eb48
|
|
golift.io/version v0.0.2
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
)
|
|
|
|
require (
|
|
go.yaml.in/yaml/v2 v2.4.3 // indirect
|
|
golang.org/x/net v0.49.0 // indirect
|
|
)
|
|
|
|
require (
|
|
github.com/BurntSushi/toml v1.5.0 // indirect
|
|
github.com/Microsoft/go-winio v0.6.2 // indirect
|
|
github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect
|
|
github.com/beorn7/perks v1.0.1 // indirect
|
|
github.com/brianvoe/gofakeit/v6 v6.28.0 // indirect
|
|
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/influxdata/influxdb-client-go/v2 v2.14.0
|
|
github.com/influxdata/line-protocol v0.0.0-20210922203350-b1ad95c89adf // indirect
|
|
github.com/kr/text v0.2.0 // indirect
|
|
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
|
|
github.com/oapi-codegen/runtime v1.1.1 // indirect
|
|
github.com/pmezard/go-difflib v1.0.0 // indirect
|
|
github.com/prometheus/client_model v0.6.2 // indirect
|
|
github.com/prometheus/procfs v0.16.1 // indirect
|
|
golang.org/x/sys v0.40.0 // indirect
|
|
google.golang.org/protobuf v1.36.11 // indirect
|
|
)
|
|
|
|
replace github.com/unpoller/unifi/v5 => ../unifi
|