Issue logout in the end of scrape
gitea-kspace/mikrotik-exporter/pipeline/head This commit looks good
Details
gitea-kspace/mikrotik-exporter/pipeline/head This commit looks good
Details
This commit is contained in:
parent
fc7c5e280c
commit
464d5a5ed8
|
@ -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()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue