initial wifiwave2 capsman support

This commit is contained in:
Arseniy Kuznetsov
2023-01-12 20:30:02 +01:00
parent 2aa942aee6
commit cefa3335c1
8 changed files with 71 additions and 8 deletions

View File

@@ -28,6 +28,7 @@ class CapsmanCollector(BaseCollector):
return
remote_caps_labels = ['identity', 'version', 'base_mac', 'board', 'base_mac']
router_entry.wifi_package = None
remote_caps_records = CapsmanCapsMetricsDataSource.metric_records(router_entry, metric_labels = remote_caps_labels)
if remote_caps_records:
remote_caps_metrics = BaseCollector.info_collector('capsman_remote_caps', 'CAPsMAN remote caps', remote_caps_records, remote_caps_labels)

View File

@@ -28,6 +28,7 @@ class WLANCollector(BaseCollector):
return
monitor_labels = ['channel', 'noise_floor', 'overall_tx_ccq', 'registered_clients']
router_entry.wifi_package = None
monitor_records = InterfaceMonitorMetricsDataSource.metric_records(router_entry, metric_labels = monitor_labels, kind = WirelessMetricsDataSource.wireless_package(router_entry))
if monitor_records:
# sanitize records for relevant labels