diff --git a/CHANGELOG.md b/CHANGELOG.md index 80a542ed7f..dcfb938879 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). skipped when we use both `multilineConfig` AND `extraOperators` in values.yaml - Enable retry mechanism in filelog receiver to avoid dropping logs on backpressure from the downstream pipeline components [#764](https://github.com/signalfx/splunk-otel-collector-chart/pull/764) +- Drop excessive istio attributes to avoid running into the dimensions limit when scraping istio metrics is enabled [765](https://github.com/signalfx/splunk-otel-collector-chart/pull/765) ## [0.75.0] - 2023-04-17 diff --git a/helm-charts/splunk-otel-collector/templates/config/_otel-agent.tpl b/helm-charts/splunk-otel-collector/templates/config/_otel-agent.tpl index 7e42949d3b..5fa27e15ba 100644 --- a/helm-charts/splunk-otel-collector/templates/config/_otel-agent.tpl +++ b/helm-charts/splunk-otel-collector/templates/config/_otel-agent.tpl @@ -586,6 +586,30 @@ processors: new_name: container.memory.usage {{- end }} + {{- if or .Values.autodetect.prometheus .Values.autodetect.istio }} + # This processor is used to remove excessive istio attributes to avoid running into the dimensions limit. + # This configuration assumes single cluster istio deployment. If you run istio in multi-cluster scenarios or make use of the canonical service and revision labels, + # you may need to adjust this configuration. + attributes/istio: + include: + match_type: regexp + metric_names: + - istio_.* + actions: + - action: delete + key: source_cluster + - action: delete + key: destination_cluster + - action: delete + key: source_canonical_service + - action: delete + key: destination_canonical_service + - action: delete + key: source_canonical_revision + - action: delete + key: destination_canonical_revision + {{- end }} + # By default only SAPM exporter enabled. It will be pointed to collector deployment if enabled, # Otherwise it's pointed directly to signalfx backend based on the values provided in signalfx setting. # These values should not be specified manually and will be set in the templates. @@ -774,6 +798,9 @@ service: processors: - memory_limiter - batch + {{- if or .Values.autodetect.prometheus .Values.autodetect.istio }} + - attributes/istio + {{- end }} - resourcedetection - resource {{- if (and .Values.splunkPlatform.metricsEnabled .Values.environment) }}