Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

...

3단계 : collector.conf Editor의 Configuration 수정

...

Code Block
[global_tags]
  dc = ""
  rack = ""

[agent]
  interval = "5s"
  round_interval = true
  metric_batch_size = 1000
  metric_buffer_limit = 10000
  collection_jitter = "0s"
  flush_interval = "5s"
  flush_jitter = "0s"
  precision = ""
  debug = false
  quiet = false
  logfile = "/var/log/telegraf/telegraf.log"
  hostname = "minion01"
  omit_hostname = false
  
[[outputs.influxdb]]
  urls = ["http://192.168.56.105:8086<influxdb_address:port>"]
  database = "telegraf"
  username = ""
  password = ""
  retention_policy = ""
  write_consistency = "any"
  timeout = "5s"
  
[[inputs.cpu]]
percpu = true
totalcpu = true
collect_cpu_time = false
report_active = false

[[inputs.disk]]
ignore_fs = [
  "tmpfs",
  "devtmpfs",
  "devfs",
  "iso9660",
  "overlay",
  "aufs",
  "squashfs"
]

[[inputs.diskio]]
[[inputs.mem]]
[[inputs.system]]

[[inputs.procstat]]
  exe = "salt"

[[inputs.influxdb]]
  urls = [ "http://<influxdb_address:port>/debug/vars" ]

[[inputs.kapacitor]]
  urls = [ "http://<kapacitor_address:port>/kapacitor/v1/debug/vars" ]
  timeout = "5s"

해당 Host에 Host Name를 지정하지 않은 경우 [agent]에 hostname를 지정해야 합니다.
hostname = "minion01" (공백 문자 즉, 띄어쓰기 불가)

4단계 : “APPLY” 버튼 클릭

Collector(Telegraf) 의 Configuration 이 적용되고 Collector(Telegraf) Service가 재시작됩니다.

...