blob: 5ad64b9f7b0b517ccb71b92cccdba08ef22e066c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# 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 = "sent_pkts_sum"
dest = "sent_pkts"
[[processors.rename.replace]]
field = "sent_bytes_sum"
dest = "sent_bytes"
[[processors.rename.replace]]
field = "recv_pkts_sum"
dest = "recv_pkts"
[[processors.rename.replace]]
field = "recv_bytes_sum"
dest = "recv_bytes"
[[aggregators.basicstats]]
period = "1s"
drop_original = true
stats = ["sum"]
fieldpass = ["sent_pkts", "sent_bytes", "recv_pkts", "recv_bytes"]
namepass = ["service_chaining_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"
|