33 lines
798 B
Plaintext
33 lines
798 B
Plaintext
[[processors.dedup]]
|
|
dedup_interval = "600s"
|
|
|
|
[[inputs.socket_listener]]
|
|
service_address = "udp://:8094"
|
|
data_format = "xpath_json"
|
|
[[inputs.socket_listener.xpath]]
|
|
metric_name = "'statistics'"
|
|
metric_selection = "/*"
|
|
|
|
timestamp = "timestamp"
|
|
timestamp_format = "unix"
|
|
|
|
[inputs.socket_listener.xpath.tags]
|
|
url = "url"
|
|
#id = ??
|
|
#state = ??
|
|
|
|
[inputs.socket_listener.xpath.fields]
|
|
player = "player"
|
|
peers = "peers"
|
|
|
|
[[outputs.file]]
|
|
files = ["stdout"]
|
|
data_format = "json"
|
|
|
|
[[outputs.mongodb]]
|
|
dsn = "mongodb://192.168.68.204:27017"
|
|
database = "peertube"
|
|
granularity = "seconds"
|
|
#authentication = "SCRAM"
|
|
#username = "root"
|
|
#password = "example" |