Skip to content

Commit

Permalink
added default system_fields at config
Browse files Browse the repository at this point in the history
  • Loading branch information
requilence committed Sep 21, 2018
1 parent c623cb6 commit 24873f2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "" {
Expand Down
2 changes: 1 addition & 1 deletion example.config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
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']
1 change: 0 additions & 1 deletion handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 24873f2

Please sign in to comment.