bug fixes

This commit is contained in:
Arseniy Kuznetsov
2022-10-02 11:24:42 +01:00
parent d959d5fe9b
commit 76aa9acd9f
17 changed files with 60 additions and 20 deletions

View File

@@ -24,7 +24,7 @@ class IPConnectionCollector(BaseCollector):
if not router_entry.config_entry.connections:
return
connection_records = IPConnectionDatasource.metric_records(router_entry, metric_labels = [])
connection_records = IPConnectionDatasource.metric_records(router_entry)
if connection_records:
connection_metrics = BaseCollector.gauge_collector('ip_connections_total', 'Number of IP connections', connection_records, 'count',)