diff --git a/.changelog/3306.changed.txt b/.changelog/3306.changed.txt new file mode 100644 index 0000000000..36af0a75ca --- /dev/null +++ b/.changelog/3306.changed.txt @@ -0,0 +1 @@ +feat!(metrics): move extra processors after sumologic_schema \ No newline at end of file diff --git a/deploy/helm/sumologic/conf/metrics/otelcol/pipeline.yaml b/deploy/helm/sumologic/conf/metrics/otelcol/pipeline.yaml index 1df20b2ebe..efb647b0be 100644 --- a/deploy/helm/sumologic/conf/metrics/otelcol/pipeline.yaml +++ b/deploy/helm/sumologic/conf/metrics/otelcol/pipeline.yaml @@ -16,6 +16,7 @@ processors: - resource - k8s_tagger - source + - sumologic_schema {{- if .Values.sumologic.metrics.otelcol.extraProcessors }} {{- range $processor := .Values.sumologic.metrics.otelcol.extraProcessors }} {{ printf "- %s" ( $processor | keys | first ) | indent 2 }} @@ -23,7 +24,6 @@ processors: {{- end }} - resource/remove_k8s_pod_pod_name - resource/delete_source_metadata - - sumologic_schema - transform/set_name - groupbyattrs/group_by_name - transform/remove_name diff --git a/tests/helm/metrics_test.go b/tests/helm/metrics_test.go index 2f6d6f8c86..54ff9b7115 100644 --- a/tests/helm/metrics_test.go +++ b/tests/helm/metrics_test.go @@ -126,12 +126,12 @@ func TestMetadataMetricsOtelConfigExtraProcessors(t *testing.T) { "resource", "k8s_tagger", "source", + "sumologic_schema", "filter/1", "transform/rename_metric", "transform/rename_metadata", "resource/remove_k8s_pod_pod_name", "resource/delete_source_metadata", - "sumologic_schema", "transform/set_name", "groupbyattrs/group_by_name", "transform/remove_name", diff --git a/tests/helm/testdata/goldenfile/metadata_metrics_otc/additional_endpoints.output.yaml b/tests/helm/testdata/goldenfile/metadata_metrics_otc/additional_endpoints.output.yaml index 5e3055ddc6..fe36d7f868 100644 --- a/tests/helm/testdata/goldenfile/metadata_metrics_otc/additional_endpoints.output.yaml +++ b/tests/helm/testdata/goldenfile/metadata_metrics_otc/additional_endpoints.output.yaml @@ -187,9 +187,9 @@ data: - resource - k8s_tagger - source + - sumologic_schema - resource/remove_k8s_pod_pod_name - resource/delete_source_metadata - - sumologic_schema - transform/set_name - groupbyattrs/group_by_name - transform/remove_name diff --git a/tests/helm/testdata/goldenfile/metadata_metrics_otc/basic.output.yaml b/tests/helm/testdata/goldenfile/metadata_metrics_otc/basic.output.yaml index 85df3500e1..2b4e09ca89 100644 --- a/tests/helm/testdata/goldenfile/metadata_metrics_otc/basic.output.yaml +++ b/tests/helm/testdata/goldenfile/metadata_metrics_otc/basic.output.yaml @@ -185,9 +185,9 @@ data: - resource - k8s_tagger - source + - sumologic_schema - resource/remove_k8s_pod_pod_name - resource/delete_source_metadata - - sumologic_schema - transform/set_name - groupbyattrs/group_by_name - transform/remove_name diff --git a/tests/helm/testdata/goldenfile/metadata_metrics_otc/custom.output.yaml b/tests/helm/testdata/goldenfile/metadata_metrics_otc/custom.output.yaml index ef38dc4eb4..619e15d34f 100644 --- a/tests/helm/testdata/goldenfile/metadata_metrics_otc/custom.output.yaml +++ b/tests/helm/testdata/goldenfile/metadata_metrics_otc/custom.output.yaml @@ -291,9 +291,9 @@ data: - resource - k8s_tagger - source + - sumologic_schema - resource/remove_k8s_pod_pod_name - resource/delete_source_metadata - - sumologic_schema - transform/set_name - groupbyattrs/group_by_name - transform/remove_name diff --git a/tests/helm/testdata/goldenfile/metadata_metrics_otc/filtered_app_metrics.output.yaml b/tests/helm/testdata/goldenfile/metadata_metrics_otc/filtered_app_metrics.output.yaml index 9223239438..e55d5a4f1e 100644 --- a/tests/helm/testdata/goldenfile/metadata_metrics_otc/filtered_app_metrics.output.yaml +++ b/tests/helm/testdata/goldenfile/metadata_metrics_otc/filtered_app_metrics.output.yaml @@ -209,9 +209,9 @@ data: - resource - k8s_tagger - source + - sumologic_schema - resource/remove_k8s_pod_pod_name - resource/delete_source_metadata - - sumologic_schema - transform/set_name - groupbyattrs/group_by_name - transform/remove_name