Update python-node-exporter.py

This commit is contained in:
2023-01-29 13:31:00 -05:00
parent f1fe7986c4
commit 843570c39e
+5
View File
@@ -159,6 +159,8 @@ def GetStatsFunc():
txt_object.write(" ")
txt_object.write(str(metricsDictionary[item]))
txt_object.write("\n")
file_object.close()
txt_object.close()
# This function will get data every 10 seconds
log.debug("Starting Sleep")
@@ -317,6 +319,9 @@ def GetDataFunc():
txt_object.write(" ")
txt_object.write(str(metricsDictionary[item]))
txt_object.write("\n")
file_object.close()
txt_object.close()
# This function will get data every 10 seconds
log.debug("Starting Sleep")