Update timestamp handling to milliseconds in main.py and adjust telegraf.conf for timestamp format

This commit is contained in:
2025-01-30 22:00:54 +01:00
parent 9daa08066a
commit 347245a0c7
2 changed files with 2 additions and 2 deletions

View File

@@ -150,7 +150,7 @@ def downloadStats(driver: webdriver.Chrome, peersDict: dict):
'player': playerStats,
'peers': peersDict,
'url': driver.current_url,
'timestamp': int(time.time()),
'timestamp': int(time.time() * 1000),
'session': driver.session_id
}

View File

@@ -9,7 +9,7 @@
metric_selection = "/*"
timestamp = "timestamp"
timestamp_format = "unix"
timestamp_format = "unix_ms"
[inputs.socket_listener.xpath.tags]
url = "url"