diff --git a/translator/tocwconfig/sampleConfig/emf_and_kubernetes_config.yaml b/translator/tocwconfig/sampleConfig/emf_and_kubernetes_config.yaml index a2f0bb3c7d..7fe1138031 100644 --- a/translator/tocwconfig/sampleConfig/emf_and_kubernetes_config.yaml +++ b/translator/tocwconfig/sampleConfig/emf_and_kubernetes_config.yaml @@ -208,6 +208,7 @@ exporters: label_matchers: [ ] metric_name_selectors: - apiserver_current_inflight_requests + - apiserver_current_inqueue_requests - dimensions: [ [ClusterName, name], [ ClusterName ] ] label_matchers: [ ] metric_name_selectors: diff --git a/translator/tocwconfig/sampleConfig/kubernetes_on_prem_config.yaml b/translator/tocwconfig/sampleConfig/kubernetes_on_prem_config.yaml index 9e94b187ec..3cc73c82af 100644 --- a/translator/tocwconfig/sampleConfig/kubernetes_on_prem_config.yaml +++ b/translator/tocwconfig/sampleConfig/kubernetes_on_prem_config.yaml @@ -179,6 +179,7 @@ exporters: label_matchers: [ ] metric_name_selectors: - apiserver_current_inflight_requests + - apiserver_current_inqueue_requests - dimensions: [ [ ClusterName, name ], [ ClusterName ] ] label_matchers: [ ] metric_name_selectors: diff --git a/translator/tocwconfig/sampleConfig/logs_and_kubernetes_config.yaml b/translator/tocwconfig/sampleConfig/logs_and_kubernetes_config.yaml index ef2fa0539d..5b038168ff 100644 --- a/translator/tocwconfig/sampleConfig/logs_and_kubernetes_config.yaml +++ b/translator/tocwconfig/sampleConfig/logs_and_kubernetes_config.yaml @@ -208,6 +208,7 @@ exporters: label_matchers: [ ] metric_name_selectors: - apiserver_current_inflight_requests + - apiserver_current_inqueue_requests - dimensions: [ [ ClusterName, name ], [ ClusterName ] ] label_matchers: [ ] metric_name_selectors: diff --git a/translator/translate/otel/exporter/awsemf/kubernetes.go b/translator/translate/otel/exporter/awsemf/kubernetes.go index 1e28913f5b..eb083953ad 100644 --- a/translator/translate/otel/exporter/awsemf/kubernetes.go +++ b/translator/translate/otel/exporter/awsemf/kubernetes.go @@ -315,6 +315,7 @@ func getControlPlaneMetricDeclarations(conf *confmap.Conf) []*awsemfexporter.Met Dimensions: [][]string{{"ClusterName", "request_kind"}, {"ClusterName"}}, MetricNameSelectors: []string{ "apiserver_current_inflight_requests", + "apiserver_current_inqueue_requests", }, }, { diff --git a/translator/translate/otel/exporter/awsemf/translator_test.go b/translator/translate/otel/exporter/awsemf/translator_test.go index 877b77d90b..72b0867bbf 100644 --- a/translator/translate/otel/exporter/awsemf/translator_test.go +++ b/translator/translate/otel/exporter/awsemf/translator_test.go @@ -365,7 +365,7 @@ func TestTranslator(t *testing.T) { }, { Dimensions: [][]string{{"ClusterName", "request_kind"}, {"ClusterName"}}, - MetricNameSelectors: []string{"apiserver_current_inflight_requests"}, + MetricNameSelectors: []string{"apiserver_current_inflight_requests", "apiserver_current_inqueue_requests"}, }, { Dimensions: [][]string{{"ClusterName", "name"}, {"ClusterName"}},