From 0981aa3e7ce24d151f9fdc2cd52f0fdff37d69bb Mon Sep 17 00:00:00 2001 From: Dmitrii Anoshin Date: Wed, 11 Oct 2023 13:42:35 -0700 Subject: [PATCH] [chore] [exporter/signalfx] Remove redundant translation (#27634) Remove translation dropping the `opencensus.resourcetype` resource attribute as it's not emitted by k8s receivers anymore. The last one was removed in https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/27616 --- .../internal/translation/constants.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/exporter/signalfxexporter/internal/translation/constants.go b/exporter/signalfxexporter/internal/translation/constants.go index 87b1a7959dca..e6f43ecc89b7 100644 --- a/exporter/signalfxexporter/internal/translation/constants.go +++ b/exporter/signalfxexporter/internal/translation/constants.go @@ -8,19 +8,6 @@ package translation // import "github.com/open-telemetry/opentelemetry-collector // Keep it in YAML format to be able to easily copy and paste it in config if modifications needed. const DefaultTranslationRulesYaml = ` translation_rules: -# drops opencensus.resourcetype dimension from metrics generated by receivers written -# using OC data structures. This rule can be removed once the k8s_cluster and kubeletstats -# receivers have been refactored to use pmetric.Metrics. These dimensions are added as a -# result of the conversion here https://github.com/open-telemetry/opentelemetry-collector/blob/v0.22.0/translator/internaldata/oc_to_resource.go#L128. -# Dropping these dimensions will ensure MTSes aren't broken when the receivers are -# refactored and this resource type dimension will cease to exist. -- action: drop_dimensions - metric_name: /^(k8s\.|container\.).*/ - dimension_pairs: - opencensus.resourcetype: - k8s: true - container: true - - action: copy_metrics mapping: # kubeletstats container cpu needed for calculation below