aboutsummaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/macos/telegraf-coin.conf
blob: 006de88c749258fe8b646cf67bfcbb512fc69bf5 (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
[global_tags]
[agent]
  interval = "10s"
  round_interval = true
  metric_batch_size = 100
  metric_buffer_limit = 10000
  collection_jitter = "0s"
  flush_interval = "10s"
  flush_jitter = "5s"
  precision = ""
  logfile = "/var/log/telegraf-coin.log"
  hostname = "$COIN_UNIQUE_JOB_ID"
  omit_hostname = false
[[outputs.influxdb]]
  urls= ["https://qtinfluxdb01.intra.qt.io:8086"]
  insecure_skip_verify = true
  database = "coin_vms"
  skip_database_creation = true
  username = "coin_vms_writer"
  password = "COIN_VMS_WRITER_PASS"
#[[inputs.cpu]]    # linux-only
#  percpu = true
#  totalcpu = true
#  collect_cpu_time = false
#  report_active = false
[[inputs.disk]]
  # macOS needs two extra filesystem exceptions:
  # + cd9660:  This is a read-only filesystem, and always 100% full
  # + msdos:   Sometimes at boot a short-lived unique mount of type "msdos"
  #            is performed, at the random directory
  #            /Volumes/firmwaresyncd.XXXXXX.
  #            The uniqueness of the path bloats the cardinality of InfluxDB.
  ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs", "cd9660", "msdos"]
#[[inputs.diskio]]    # linux-only
[[inputs.kernel]]
[[inputs.mem]]
[[inputs.processes]]
[[inputs.swap]]
[[inputs.system]]
#[[inputs.kernel_vmstat]]        # linux-only
[[inputs.netstat]]


# Monitor Coin process
[[inputs.procstat]]
  exe = "coin-"
  # Buggy on macOS if using the "native" pid_finder, see:
  #    https://github.com/influxdata/telegraf/issues/6265
  # Tested 1.12.1 version that "native" pid_finder has been fixed,
  # but it is slow and times out frequently
  pid_finder = "pgrep"


# Monitor I/O latency
[[inputs.exec]]
  data_format = "influx"
  commands = [ "/usr/bin/telegraf-ioping.sh /" ]