10
0

Issue logout in the end of scrape
All checks were successful
gitea-kspace/mikrotik-exporter/pipeline/head This commit looks good

This commit is contained in:
Lauri Võsandi 2021-10-18 20:18:18 +03:00
parent fc7c5e280c
commit 464d5a5ed8

View File

@ -150,6 +150,8 @@ async def scrape_mikrotik(target, port):
yield "system_health_%s" % key.replace("-", "_"), "gauge", 1, labels yield "system_health_%s" % key.replace("-", "_"), "gauge", 1, labels
else: else:
yield "system_health_%s" % key.replace("-", "_"), "gauge", value, labels yield "system_health_%s" % key.replace("-", "_"), "gauge", value, labels
mk.query("/logout")
mk.close() mk.close()