remove print_configs of plugin

This commit is contained in:
Ulric Qin 2022-04-20 17:11:41 +08:00
parent 1b15230498
commit 1fe0e0aece
11 changed files with 14 additions and 25 deletions

View File

@ -17,7 +17,6 @@ type CPUStats struct {
ps system.PS
lastStats map[string]cpuUtil.TimesStat
PrintConfigs bool `toml:"print_configs"`
Interval config.Duration `toml:"interval"`
CollectPerCPU bool `toml:"collect_per_cpu"`
}

View File

@ -15,10 +15,9 @@ const inputName = "disk"
type DiskStats struct {
ps system.PS
PrintConfigs bool `toml:"print_configs"`
Interval config.Duration `toml:"interval"`
MountPoints []string `toml:"mount_points"`
IgnoreFS []string `toml:"ignore_fs"`
Interval config.Duration `toml:"interval"`
MountPoints []string `toml:"mount_points"`
IgnoreFS []string `toml:"ignore_fs"`
}
func init() {

View File

@ -16,7 +16,6 @@ const inputName = "diskio"
type DiskIO struct {
ps system.PS
PrintConfigs bool `toml:"print_configs"`
Interval config.Duration `toml:"interval"`
Devices []string `toml:"devices"`
deviceFilter filter.Filter

View File

@ -35,10 +35,9 @@ type ExecInstance struct {
}
type Exec struct {
PrintConfigs bool `toml:"print_configs"`
Interval config.Duration `toml:"interval"`
Instances []ExecInstance `toml:"instances"`
Counter uint64
Interval config.Duration `toml:"interval"`
Instances []ExecInstance `toml:"instances"`
Counter uint64
}
func init() {

View File

@ -20,8 +20,7 @@ import (
const inputName = "linuxsysctlfs"
type SysctlFS struct {
PrintConfigs bool `toml:"print_configs"`
Interval config.Duration `toml:"interval"`
Interval config.Duration `toml:"interval"`
path string
}

View File

@ -16,7 +16,6 @@ type MemStats struct {
ps system.PS
platform string
PrintConfigs bool `toml:"print_configs"`
Interval config.Duration `toml:"interval"`
CollectPlatformFields bool `toml:"collect_platform_fields"`
}

View File

@ -17,7 +17,6 @@ const inputName = "net"
type NetIOStats struct {
ps system.PS
PrintConfigs bool `toml:"print_configs"`
Interval config.Duration `toml:"interval"`
CollectProtocolStats bool `toml:"collect_protocol_stats"`
Interfaces []string `toml:"interfaces"`

View File

@ -15,8 +15,7 @@ const inputName = "netstat"
type NetStats struct {
ps system.PS
PrintConfigs bool `toml:"print_configs"`
Interval config.Duration `toml:"interval"`
Interval config.Duration `toml:"interval"`
}
func init() {

View File

@ -44,10 +44,9 @@ type MetricConfig struct {
}
type Oracle struct {
PrintConfigs bool `toml:"print_configs"`
Interval config.Duration `toml:"interval"`
Instances []OrclInstance `toml:"instances"`
Metrics []MetricConfig `toml:"metrics"`
Interval config.Duration `toml:"interval"`
Instances []OrclInstance `toml:"instances"`
Metrics []MetricConfig `toml:"metrics"`
dbconnpool map[string]*sqlx.DB // key: instance
Counter uint64

View File

@ -23,10 +23,9 @@ import (
const inputName = "processes"
type Processes struct {
PrintConfigs bool `toml:"print_configs"`
Interval config.Duration `toml:"interval"`
ForcePS bool `toml:"force_ps"`
ForceProc bool `toml:"force_proc"`
Interval config.Duration `toml:"interval"`
ForcePS bool `toml:"force_ps"`
ForceProc bool `toml:"force_proc"`
}
func init() {

View File

@ -16,7 +16,6 @@ import (
const inputName = "system"
type SystemStats struct {
PrintConfigs bool `toml:"print_configs"`
Interval config.Duration `toml:"interval"`
CollectUserNumber bool `toml:"collect_user_number"`
}