30 lines
774 B
Plaintext
30 lines
774 B
Plaintext
[[processors.dedup]]
|
|
dedup_interval = "600s"
|
|
|
|
[[inputs.socket_listener]]
|
|
service_address = "udp://:8094"
|
|
data_format = "xpath_json"
|
|
[[inputs.socket_listener.xpath]]
|
|
metric_name = "'peertube'"
|
|
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://stats_user:%40z%5EVFhN7q%25vzit@192.168.86.120:27017/?authSource=statistics"
|
|
database = "statistics"
|
|
granularity = "seconds" |