-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtelegraf.conf
63 lines (52 loc) · 1.48 KB
/
telegraf.conf
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
# Configuration for telegraf agent
[agent]
interval = "10s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
debug = false
quiet = false
omit_hostname = false
###############################################################################
# OUTPUTS #
###############################################################################
## FOR NATS
[[outputs.nats]]
servers = ["nats://x.x.x.x:4222"]
subject = "telegraf"
# ssl_ca = "ca.pem"
# ssl_cert = "cert.pem"
# ssl_key = "key.pem"
insecure_skip_verify = false
data_format = "influx"
###############################################################################
# PLUGINS #
###############################################################################
[[inputs.cpu]]
percpu = false
totalcpu = true
fielddrop = ["time_*"]
[[inputs.diskio]]
skip_serial_number = true
[[inputs.disk]]
# interval = "%INTERVAL_DISK%"
[[inputs.mem]]
[[inputs.docker]]
# endpoint = "ENV"
endpoint = "unix:///var/run/docker.sock"
container_names = []
timeout = "5s"
percpu = false
totalcpu = true
[[inputs.system]]
[inputs.system.tags]
n_cpus = "%N_CPUS%"
[[inputs.net]]
interfaces = ["eth0"]
[inputs.net.tagdrop]
interface = ["all"]
tagexclude = ["server"]