Skip to content

Commit

Permalink
add missing apiserver_current_inqueue_requests declaration (#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
chadpatel authored Oct 9, 2023
1 parent a8302f5 commit 5c48d66
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions translator/translate/otel/exporter/awsemf/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"}},
Expand Down

0 comments on commit 5c48d66

Please sign in to comment.