mirror of
https://github.com/KevinMidboe/mktxp-no-cli.git
synced 2025-10-29 17:50:23 +00:00
prevent dpulicate metrics for health collector
This commit is contained in:
@@ -22,7 +22,6 @@ class HealthMetricsDataSource:
|
||||
def metric_records(router_entry, *, metric_labels = []):
|
||||
try:
|
||||
health_records = router_entry.api_connection.router_api().get_resource('/system/health').get()
|
||||
|
||||
for record in health_records:
|
||||
if 'name' in record:
|
||||
# Note: The API in RouterOS v7.X+ returns a response like this:
|
||||
|
||||
Reference in New Issue
Block a user