Refactor logging in main.py and update telegraf.conf for metric name and MongoDB connection details
This commit is contained in:
@@ -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"
|
Reference in New Issue
Block a user