Skip to content

Commit

Permalink
fixup! fixup! Increase metrics interval to 60s
Browse files Browse the repository at this point in the history
  • Loading branch information
pchila committed Oct 11, 2023
1 parent 8013532 commit 4303ee0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/pkg/agent/application/monitoring/v1_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ const (
agentName = "elastic-agent"

windowsOS = "windows"

// metricset execution period used for the monitoring metrics inputs
metricsCollectionInterval = 60 * time.Second
)

var (
Expand Down Expand Up @@ -518,7 +521,7 @@ func (b *BeatsMonitor) monitoringNamespace() string {
}

func (b *BeatsMonitor) injectMetricsInput(cfg map[string]interface{}, componentIDToBinary map[string]string, monitoringOutputName string, componentList []component.Component) error {
metricsCollectionInterval := 60 * time.Second

metricsCollectionIntervalString := metricsCollectionInterval.String()
monitoringNamespace := b.monitoringNamespace()
fixedAgentName := strings.ReplaceAll(agentName, "-", "_")
Expand Down

0 comments on commit 4303ee0

Please sign in to comment.