9
0
Fork 0

Issue logout in the end of scrape
gitea-kspace/mikrotik-exporter/pipeline/head This commit looks good Details

This commit is contained in:
Lauri Võsandi 2021-10-18 20:18:18 +03:00
parent fc7c5e280c
commit 464d5a5ed8
1 changed files with 2 additions and 0 deletions

View File

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