This commit is contained in:
Sven Holz
2022-06-15 00:40:19 +02:00
parent abd98c49b8
commit bb9263781e
2 changed files with 2 additions and 2 deletions

View File

@@ -82,7 +82,7 @@ class MyInfluxDB():
def write(self, host, host_location, ping_response):
self.host = host
self.host_location = host_location
self.ping_response = ping_response
self.ping_response = int(ping_response)
self.influx_timestamp = int(time_ns())
self.data_point = Point("latency_monitor").tag("location", self.host_location).tag("host", self.host).field("latency", self.ping_response).time(self.influx_timestamp)
self.write_api.write(bucket=self.INFX_BUCKET,