73 lines
1.5 KiB
Django/Jinja
73 lines
1.5 KiB
Django/Jinja
[global_tags]
|
|
blade = "{{bladename}}"
|
|
[agent]
|
|
interval = "5s"
|
|
round_interval = true
|
|
metric_batch_size = 1000000
|
|
metric_buffer_limit = 1000000
|
|
collection_jitter = "0s"
|
|
flush_interval = "1s"
|
|
flush_jitter = "0s"
|
|
precision = ""
|
|
debug = false
|
|
quiet = false
|
|
logfile = ""
|
|
hostname = ""
|
|
omit_hostname = false
|
|
|
|
[[outputs.file]]
|
|
files = ["stdout", "/tmp/collect.out"]
|
|
data_format = "json"
|
|
rotation_interval = "1h"
|
|
rotation_max_size = "100MB"
|
|
rotation_max_archives = 5
|
|
|
|
[[outputs.socket_writer]]
|
|
address = "udp://192.168.100.1:8100"
|
|
|
|
|
|
{% if bladename == "mcn0" %}
|
|
[[inputs.procstat]]
|
|
exe= "sapp"
|
|
[[inputs.procstat]]
|
|
exe="certstore"
|
|
{% else %}
|
|
[[inputs.procstat]]
|
|
exe= "tfe"
|
|
{% endif %}
|
|
|
|
[[inputs.systemd_units]]
|
|
unittype = "service"
|
|
timeout = "1s"
|
|
|
|
[[inputs.cpu]]
|
|
percpu = false
|
|
totalcpu = true
|
|
collect_cpu_time = false
|
|
report_active = false
|
|
fieldpass = ["usage_idle", "usage_iowait", "usage_system", "usage_user"]
|
|
|
|
[[inputs.system]]
|
|
fieldpass = ["load1", "load5", "load15"]
|
|
|
|
[[inputs.mem]]
|
|
fieldpass = ["available"]
|
|
|
|
[[inputs.disk]]
|
|
fieldpass = ["free", "inodes_free", "used_percent"]
|
|
ignore_fs = ["tmpfs", "devtmpfs", "devfs", "overlay", "aufs", "squashfs"]
|
|
|
|
[[inputs.diskio]]
|
|
fieldpass = ["read_bytes", "write_bytes", "reads","writes"]
|
|
|
|
[[inputs.netstat]]
|
|
|
|
[[inputs.net]]
|
|
ignore_protocol_stats = false
|
|
interfaces = ["ens*"]
|
|
|
|
[[inputs.kernel]]
|
|
|
|
[[inputs.udp_listener]]
|
|
ServiceAddress= ":58100"
|
|
data_format = "influx" |