All checks were successful
Build and Push Docker Image / build (push) Successful in 12m31s
Reviewed-on: #3 Co-authored-by: Mirko Milovanovic <mir_ko@me.com> Co-committed-by: Mirko Milovanovic <mir_ko@me.com>
38 lines
870 B
Plaintext
38 lines
870 B
Plaintext
[agent]
|
|
flush_interval = "20s"
|
|
hostname = "${HOSTNAME}"
|
|
omit_hostname = false
|
|
|
|
[[processors.dedup]]
|
|
dedup_interval = "600s"
|
|
|
|
[[inputs.socket_listener]]
|
|
service_address = "udp://:${SOCKET_PORT}"
|
|
data_format = "xpath_json"
|
|
[[inputs.socket_listener.xpath]]
|
|
metric_name = "'peertube'"
|
|
metric_selection = "/*"
|
|
|
|
timestamp = "timestamp"
|
|
timestamp_format = "unix_ms"
|
|
|
|
[inputs.socket_listener.xpath.tags]
|
|
url = "url"
|
|
session = "session"
|
|
host = "host"
|
|
|
|
[inputs.socket_listener.xpath.fields]
|
|
player = "player"
|
|
peers = "peers"
|
|
|
|
[[outputs.health]]
|
|
service_address = "http://:8080"
|
|
|
|
[[outputs.file]]
|
|
files = ["stdout"]
|
|
data_format = "json"
|
|
|
|
[[outputs.mongodb]]
|
|
dsn = "${DSN}"
|
|
database = "${DATABASE}"
|
|
granularity = "seconds" |