Files
peertube-collector/telegraf.conf
Mirko Milovanovic 5c92020169
All checks were successful
Build and Push Docker Image / build (push) Successful in 12m31s
Add convenience functions, update Docker setup, and integrate Webpack for building WebRTC internals exporter (#3)
Reviewed-on: #3
Co-authored-by: Mirko Milovanovic <mir_ko@me.com>
Co-committed-by: Mirko Milovanovic <mir_ko@me.com>
2025-02-21 11:21:14 +00:00

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"