From a93f950d4c6de05fe86dfba738e42903044f9e0f Mon Sep 17 00:00:00 2001 From: William Dumont Date: Fri, 6 Dec 2024 15:33:16 +0100 Subject: [PATCH] set debug metrics to default for interval processor (#2227) --- CHANGELOG.md | 2 ++ internal/component/otelcol/processor/interval/interval.go | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fea049550f..3d9fa0633d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,6 +54,8 @@ Main (unreleased) - Fixed an issue in the `prometheus.operator.servicemonitors`, `prometheus.operator.podmonitors` and `prometheus.operator.probes` to support capitalized actions. (@QuentinBisson) +- Fixed an issue where the `otelcol.processor.interval` could not be used because the debug metrics were not set to default. (@wildum) + ### Other changes - Change the stability of the `livedebugging` feature from "experimental" to "generally available". (@wildum) diff --git a/internal/component/otelcol/processor/interval/interval.go b/internal/component/otelcol/processor/interval/interval.go index df39c10843..814a177f1b 100644 --- a/internal/component/otelcol/processor/interval/interval.go +++ b/internal/component/otelcol/processor/interval/interval.go @@ -67,6 +67,7 @@ var DefaultArguments = Arguments{ // SetToDefault implements syntax.Defaulter. func (args *Arguments) SetToDefault() { *args = DefaultArguments + args.DebugMetrics.SetToDefault() } // Validate implements syntax.Validator.