mirror of
https://github.com/KevinMidboe/mktxp-no-cli.git
synced 2025-12-08 20:38:48 +00:00
Collector registry, fixes/optimizations
This commit is contained in:
@@ -22,6 +22,9 @@ class PoolCollector(BaseCollector):
|
||||
'''
|
||||
@staticmethod
|
||||
def collect(router_entry):
|
||||
if not router_entry.config_entry.pool:
|
||||
return
|
||||
|
||||
# initialize all pool counts, including those currently not used
|
||||
pool_records = PoolMetricsDataSource.metric_records(router_entry, metric_labels = ['name'])
|
||||
if pool_records:
|
||||
|
||||
Reference in New Issue
Block a user