1 Star 0 Fork 0

sqos/beats

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.github
auditbeat
deploy/kubernetes
dev-tools
docs/devguide
filebeat
generator
heartbeat
libbeat
metricbeat
_meta
beater
cmd
docs
helper
include
mb
module
aerospike
apache
ceph
couchbase
docker
dropwizard
elasticsearch
golang
haproxy
http
jolokia
kafka
kibana
kubernetes
memcached
mongodb
mysql
nginx
php_fpm
postgresql
prometheus
rabbitmq
redis
system
_meta
core
cpu
diskio
filesystem
fsstat
load
memory
network
process
_meta
cgroup.go
config.go
doc.go
helper.go
helper_test.go
process.go
process_test.go
process_summary
socket
doc.go
module.yml
system.go
system_linux.go
system_other.go
system_windows.go
util.go
util_test.go
vsphere
windows
zookeeper
doc.go
plugin.go
modules.d
processor/add_kubernetes_metadata
scripts
tests/system
vendor
.gitignore
Dockerfile
Makefile
README.md
docker-compose.yml
main.go
main_test.go
make.bat
metricbeat.reference.yml
metricbeat.yml
packetbeat
script
testing/environments
vendor
winlogbeat
.appveyor.yml
.editorconfig
.gitattributes
.gitignore
.go-version
.pylintrc
.travis.yml
CHANGELOG.asciidoc
CONTRIBUTING.md
LICENSE.txt
Makefile
NOTICE.txt
README.md
Vagrantfile
codecov.yml
reviewdog.yml
setup.yml
克隆/下载
config.go 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
package process
import "github.com/elastic/beats/libbeat/common/cfgwarn"
// includeTopConfig is the configuration for the "top N processes
// filtering" feature
type includeTopConfig struct {
Enabled bool `config:"enabled"`
ByCPU int `config:"by_cpu"`
ByMemory int `config:"by_memory"`
}
type Config struct {
Procs []string `config:"processes"`
Cgroups *bool `config:"process.cgroups.enabled"`
EnvWhitelist []string `config:"process.env.whitelist"`
CacheCmdLine bool `config:"process.cmdline.cache.enabled"`
IncludeTop includeTopConfig `config:"process.include_top_n"`
IncludeCPUTicks bool `config:"process.include_cpu_ticks"`
CPUTicks *bool `config:"cpu_ticks"` // Deprecated
}
func (c Config) Validate() error {
if c.CPUTicks != nil {
cfgwarn.Deprecate("6.1", "cpu_ticks is deprecated. Use process.include_cpu_ticks instead")
}
return nil
}
var defaultConfig = Config{
Procs: []string{".*"}, // collect all processes by default
CacheCmdLine: true,
IncludeTop: includeTopConfig{
Enabled: true,
ByCPU: 0,
ByMemory: 0,
},
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sqos/beats.git
git@gitee.com:sqos/beats.git
sqos
beats
beats
v6.0.0

搜索帮助