Refactor logging in main.py and update telegraf.conf for metric name and MongoDB connection details

This commit is contained in:
2025-01-29 01:14:32 +01:00
parent 8c8c007a60
commit 07311fe508
2 changed files with 5 additions and 10 deletions

View File

@@ -5,7 +5,7 @@
service_address = "udp://:8094"
data_format = "xpath_json"
[[inputs.socket_listener.xpath]]
metric_name = "'statistics'"
metric_name = "'peertube'"
metric_selection = "/*"
timestamp = "timestamp"
@@ -25,9 +25,6 @@
data_format = "json"
[[outputs.mongodb]]
dsn = "mongodb://192.168.68.120:27017"
database = "peertube"
granularity = "seconds"
authentication = "SCRAM"
username = "stats_user"
password = "@z^VFhN7q%vzit"
dsn = "mongodb://stats_user:%40z%5EVFhN7q%25vzit@192.168.86.120:27017/?authSource=statistics"
database = "statistics"
granularity = "seconds"