Netwatch collector

This commit is contained in:
Arseniy Kuznetsov
2021-04-18 13:19:53 +02:00
parent 11ab63d59e
commit 27dbbd2567

View File

@@ -31,5 +31,5 @@ class NetwatchCollector(BaseCollector):
if netwatch_records: if netwatch_records:
yield BaseCollector.info_collector('netwatch', 'Netwatch Info Metrics', netwatch_records, netwatch_labels) yield BaseCollector.info_collector('netwatch', 'Netwatch Info Metrics', netwatch_records, netwatch_labels)
yield BaseCollector.gauge_collector('netwatch', 'Netwatch Status Metrics', netwatch_records, 'status', ['name']) yield BaseCollector.gauge_collector('netwatch_status', 'Netwatch Status Metrics', netwatch_records, 'status', ['name'])