back at it again
This commit is contained in:
60
peertube/statnerd/telegraf.conf
Normal file
60
peertube/statnerd/telegraf.conf
Normal file
@@ -0,0 +1,60 @@
|
||||
[[processors.dedup]]
|
||||
dedup_interval = "600s"
|
||||
|
||||
[[outputs.file]]
|
||||
files = ["stdout"]
|
||||
|
||||
# [[outputs.mongodb]]
|
||||
# dsn = "mongodb://192.168.86.40:27017"
|
||||
# database = "peertube"
|
||||
# granularity = "seconds"
|
||||
# authentication = "SCRAM"
|
||||
# username = "root"
|
||||
# password = "example"
|
||||
|
||||
[[inputs.socket_listener]]
|
||||
service_address = "udp://:8094"
|
||||
data_format = "xpath_json"
|
||||
[[inputs.socket_listener.xpath]]
|
||||
metric_name = "'stats'"
|
||||
|
||||
[inputs.socket_listener.xpath.fields]
|
||||
P2P = "/P2P"
|
||||
#Buffer_State = "string-join(/Buffer_State/*, ',')"
|
||||
Buffer_State = "/text()='Buffer State'"
|
||||
Resolution = "/Resolution"
|
||||
|
||||
# [[inputs.socket_listener]]
|
||||
# service_address = "udp://:8094"
|
||||
# data_format = "json_v2"
|
||||
# [[inputs.socket_listener.json_v2]]
|
||||
# measurement_name = "stats"
|
||||
|
||||
# [[inputs.socket_listener.json_v2.field]]
|
||||
# path = "P2P"
|
||||
# [[inputs.socket_listener.json_v2.field]]
|
||||
# path = "Player mode"
|
||||
# [[inputs.socket_listener.json_v2.field]]
|
||||
# path = "P2P"
|
||||
# [[inputs.socket_listener.json_v2.field]]
|
||||
# path = "Video UUID"
|
||||
# [[inputs.socket_listener.json_v2.field]]
|
||||
# path = "Viewport / Frames"
|
||||
# [[inputs.socket_listener.json_v2.field]]
|
||||
# path = "Resolution"
|
||||
# [[inputs.socket_listener.json_v2.field]]
|
||||
# path = "Volume"
|
||||
# [[inputs.socket_listener.json_v2.field]]
|
||||
# path = "Codecs"
|
||||
# [[inputs.socket_listener.json_v2.field]]
|
||||
# path = "Connection Speed"
|
||||
# [[inputs.socket_listener.json_v2.field]]
|
||||
# path = "Network Activity"
|
||||
# [[inputs.socket_listener.json_v2.field]]
|
||||
# path = "Total Transfered"
|
||||
# [[inputs.socket_listener.json_v2.field]]
|
||||
# path = "Download Breakdown"
|
||||
# [[inputs.socket_listener.json_v2.field]]
|
||||
# path = "Buffer State"
|
||||
# [[inputs.socket_listener.json_v2.field]]
|
||||
# path = "Live Latency"
|
Reference in New Issue
Block a user