mirror of
https://github.com/KevinMidboe/mktxp-no-cli.git
synced 2025-10-29 17:50:23 +00:00
fixes/optimizations
This commit is contained in:
@@ -29,13 +29,12 @@ 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)
|
||||
yield remote_caps_metrics
|
||||
|
||||
registration_labels = ['interface', 'ssid', 'mac_address', 'tx_rate', 'rx_rate', 'rx_signal', 'signal','uptime', 'bytes']
|
||||
registration_labels = ['interface', 'ssid', 'mac_address', 'tx_rate', 'rx_rate', 'rx_signal', 'signal', 'uptime', 'bytes']
|
||||
registration_records = CapsmanRegistrationsMetricsDataSource.metric_records(router_entry, metric_labels = registration_labels)
|
||||
if registration_records:
|
||||
# calculate number of registrations per interface
|
||||
|
||||
@@ -28,7 +28,6 @@ class WLANCollector(BaseCollector):
|
||||
return
|
||||
|
||||
monitor_labels = ['channel', 'noise_floor', 'overall_tx_ccq', 'registered_clients', 'registered_peers']
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user