Skip to content

Commit

Permalink
Timestamp fix
Browse files Browse the repository at this point in the history
Change-Id: Ib537b56bc075de29e3e369349152a3269c6d3e38
  • Loading branch information
atsag committed Aug 28, 2024
1 parent 21bd22b commit 2af9596
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ def on_message(self, key, address, body, context, **kwargs):
logging.info("New monitoring data arrived at topic "+address)
logging.info(body)
point = Point(str(address).split(".")[-1]).field("metricValue",body["metricValue"]).tag("level",body["level"]).tag("application_name",self.application_name)
point.time(body["timestamp"],write_precision=WritePrecision.S)
point.time(body["timestamp"],write_precision=WritePrecision.MS)
logging.info("Writing new monitoring data to Influx DB")
self.influx_connector.write_data(point,self.application_name)

0 comments on commit 2af9596

Please sign in to comment.