diff --git a/config.go b/config.go index a9eb1dc..e68ae6e 100644 --- a/config.go +++ b/config.go @@ -97,6 +97,7 @@ func New() *Cagent { NetInterfaceExclude: []string{}, NetInterfaceExcludeRegex: []string{}, NetInterfaceExcludeLoopback: true, + SystemFields: []string{"unname", "os_kernel", "os_family", "os_arch", "cpu_model", "fqdn", "memory_total_B"}, } if rootCertsPath != "" { diff --git a/example.config.toml b/example.config.toml index 9db2c2b..1901c4a 100644 --- a/example.config.toml +++ b/example.config.toml @@ -33,4 +33,4 @@ net_interface_exclude_loopback = true net_metrics = ['in_B_per_s', 'out_B_per_s', 'errors_per_s','dropped_per_s'] # default['in_B_per_s', 'out_B_per_s'] # System -system_fields = ['unname','os_kernel','os_family','memory_total_B','os_arch','cpu_model','fqdn','memory_total_B'] # default ['uname'] \ No newline at end of file +system_fields = ['unname','os_kernel','os_family','os_arch','cpu_model','fqdn','memory_total_B'] # default ['unname','os_kernel','os_family','os_arch','cpu_model','fqdn','memory_total_B'] \ No newline at end of file diff --git a/handler.go b/handler.go index cb4c6b9..441925d 100644 --- a/handler.go +++ b/handler.go @@ -189,7 +189,6 @@ func (ca *Cagent) Run(outputFile *os.File, interrupt chan struct{}, once bool) { errs = append(errs, err.Error()) } - log.Infof("[PROC] got %d metrics", len(proc)) results.Measurements = results.Measurements.AddWithPrefix("proc.", proc) if len(errs) == 0 {