diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 4630859a482..c7175ffb3d7 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -171,6 +171,8 @@ https://github.com/elastic/beats/compare/v8.8.1\...main[Check the HEAD diff] - Normalize AWS RDS CPU Utilization values before making the metadata API call. {pull}39664[39664] - Fix behavior of pagetypeinfo metrics {pull}39985[39985] - Fix query logic for temp and non-temp tablespaces in Oracle module. {issue}38051[38051] {pull}39787[39787] +- Set GCP metrics config period to the default (60s) when the value is below the minimum allowed period. {issue}30434[30434] {pull}40020[40020] + *Osquerybeat* diff --git a/x-pack/metricbeat/module/gcp/metrics/metricset.go b/x-pack/metricbeat/module/gcp/metrics/metricset.go index 49cdce5d73a..0ac5f6d76a8 100644 --- a/x-pack/metricbeat/module/gcp/metrics/metricset.go +++ b/x-pack/metricbeat/module/gcp/metrics/metricset.go @@ -144,7 +144,10 @@ func New(base mb.BaseMetricSet) (mb.MetricSet, error) { } if err := validatePeriodForGCP(m.Module().Config().Period); err != nil { - return nil, err + m.Logger().Warnf("Period has been set to default value of 60s: %s", err) + m.config.period = &durationpb.Duration{ + Seconds: int64(gcp.MonitoringMetricsSamplingRate), + } } // Get ingest delay and sample period for each metric type