Skip to content

Commit

Permalink
adjust default metric counter interval to 5s and buffer length to 15m
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Jun 11, 2024
1 parent be36e3e commit f534e93
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ next:
- update node exporter to 1.8.1
- migrate v3 to github.com/shirou/gopsutil/v4
- add device filter for network counter
- adjust default metric counter interval to 5s and buffer length to 15m
- lower agent memory and cpu footprint

0.24 Sun May 12 17:42:43 CEST 2024
- update node exporter to 1.8.0
Expand Down
2 changes: 1 addition & 1 deletion packaging/snclient.ini
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ max size = 0
[/settings/system/default]

; default buffer length - Contols the counter bucket size ex.: for cpu counter.
default buffer length = 1h
default buffer length = 15m

; metrics interval - Contols the interval for collecting cpu/network metrics
metrics interval = 5s
Expand Down
2 changes: 1 addition & 1 deletion pkg/snclient/task_check_system.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func NewCheckSystemHandler() Module {

func (c *CheckSystemHandler) Defaults(_ *AgentRunSet) ConfigData {
defaults := ConfigData{
"default buffer length": "1h",
"default buffer length": "15m",
"device filter": "^veth",
"metrics interval": "5s",
}
Expand Down

0 comments on commit f534e93

Please sign in to comment.