增加tfe_telegraf.conf
This commit is contained in:
65
conf/tfe/tfe_telegraf.conf
Normal file
65
conf/tfe/tfe_telegraf.conf
Normal file
@@ -0,0 +1,65 @@
|
||||
# Telegraf Configuration
|
||||
[global_tags]
|
||||
device_id = "123456"
|
||||
device_group = "group-xxg-x-test"
|
||||
data_center = "center-xxg-x-test"
|
||||
|
||||
[agent]
|
||||
interval = "1s"
|
||||
round_interval = true
|
||||
metric_batch_size = 1000
|
||||
metric_buffer_limit = 10000
|
||||
collection_jitter = "0s"
|
||||
flush_interval = "1s"
|
||||
flush_jitter = "0s"
|
||||
precision = ""
|
||||
debug = false
|
||||
quiet = false
|
||||
logfile = ""
|
||||
hostname = ""
|
||||
omit_hostname = true
|
||||
|
||||
[[inputs.socket_listener]]
|
||||
service_address = "udp://:8300"
|
||||
data_format = "influx"
|
||||
|
||||
[[processors.rename]]
|
||||
[[processors.rename.replace]]
|
||||
field = "hit_count_sum"
|
||||
dest = "hit_count"
|
||||
|
||||
[[processors.rename.replace]]
|
||||
field = "in_bytes_sum"
|
||||
dest = "in_bytes"
|
||||
|
||||
[[processors.rename.replace]]
|
||||
field = "out_bytes_sum"
|
||||
dest = "out_bytes"
|
||||
|
||||
[[processors.rename.replace]]
|
||||
field = "in_pkts_sum"
|
||||
dest = "in_pkts"
|
||||
|
||||
[[processors.rename.replace]]
|
||||
field = "out_pkts_sum"
|
||||
dest = "out_pkts"
|
||||
|
||||
[[aggregators.basicstats]]
|
||||
period = "1s"
|
||||
drop_original = true
|
||||
stats = ["sum"]
|
||||
fieldpass = ["hit_count", "in_bytes", "out_bytes", "in_pkts", "out_pkts"]
|
||||
namepass = ["proxy_rule_hits"] # only "pass" swap metrics through the aggregator.
|
||||
|
||||
[[outputs.file]]
|
||||
files = ["/tmp/sce_metrics.json", "stdout"]
|
||||
data_format = "json"
|
||||
json_timestamp_units = "1ms"
|
||||
|
||||
[[outputs.kafka]]
|
||||
sasl_username = "admin"
|
||||
sasl_password = "galaxy2019"
|
||||
brokers = [ "192.168.44.12:9094" ]
|
||||
topic = "POLICY-RULE-METRICS"
|
||||
data_format = "json"
|
||||
json_timestamp_units = "1ms"
|
||||
Reference in New Issue
Block a user