2020-03-11 18:25:20 +08:00
|
|
|
logger:
|
|
|
|
dir: logs/collector
|
|
|
|
level: WARNING
|
|
|
|
keepHours: 2
|
2020-05-10 19:18:46 +08:00
|
|
|
|
2020-03-11 18:25:20 +08:00
|
|
|
identity:
|
|
|
|
specify: ""
|
2020-03-24 10:32:53 +08:00
|
|
|
shell: ifconfig `route|grep '^default'|awk '{print $NF}'`|grep inet|awk '{print $2}'|awk -F ':' '{print $NF}'|head -n 1
|
2020-04-29 17:11:41 +08:00
|
|
|
|
|
|
|
stra:
|
|
|
|
enable: true
|
|
|
|
portPath: ./etc/port
|
|
|
|
procPath: ./etc/proc
|
|
|
|
logPath: ./etc/log
|
|
|
|
|
2020-03-11 18:25:20 +08:00
|
|
|
sys:
|
|
|
|
# timeout in ms
|
|
|
|
# interval in second
|
|
|
|
timeout: 1000
|
|
|
|
interval: 20
|
2020-04-29 17:11:41 +08:00
|
|
|
plugin: ./plugin
|
2020-05-10 19:18:46 +08:00
|
|
|
|
|
|
|
# monitor nic which filtered by prefix
|
2020-03-11 18:25:20 +08:00
|
|
|
ifacePrefix:
|
|
|
|
- eth
|
|
|
|
- em
|
2020-05-10 19:26:52 +08:00
|
|
|
- ens
|
2020-05-10 19:18:46 +08:00
|
|
|
|
|
|
|
# ignore disk mount point
|
|
|
|
mountIgnore:
|
|
|
|
prefix:
|
|
|
|
- /var/lib
|
2020-05-10 19:25:44 +08:00
|
|
|
- /run
|
2020-05-10 19:18:46 +08:00
|
|
|
# collect anyway
|
|
|
|
exclude: []
|
2020-03-29 08:08:43 +08:00
|
|
|
|
2020-03-11 18:25:20 +08:00
|
|
|
ignoreMetrics:
|
|
|
|
- cpu.core.idle
|
|
|
|
- cpu.core.util
|
|
|
|
- cpu.core.sys
|
|
|
|
- cpu.core.user
|
|
|
|
- cpu.core.nice
|
|
|
|
- cpu.core.guest
|
|
|
|
- cpu.core.irq
|
|
|
|
- cpu.core.softirq
|
|
|
|
- cpu.core.iowait
|
2020-03-18 17:39:05 +08:00
|
|
|
- cpu.core.steal
|