summaryrefslogtreecommitdiff
path: root/conf/tfe/tfe_telegraf.conf
blob: 14ccbb98da786345fe9ec2b36861c88ae0be4c82 (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
62
63
64
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"