Skip to content

Commit

Permalink
Removing service dimension for pod-net metrics (#916)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitali-salvi authored Oct 20, 2023
1 parent b1bee71 commit c6f3e33
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ exporters:
- pod_network_tx_bytes
- pod_cpu_utilization_over_pod_limit
- pod_memory_utilization_over_pod_limit
- dimensions: [ [ ClusterName, FullPodName, Namespace, PodName ], [ ClusterName, Namespace, PodName ], [ ClusterName, Namespace, Service ], [ ClusterName ] ]
- dimensions: [ [ ClusterName, FullPodName, Namespace, PodName ], [ ClusterName, Namespace, PodName ], [ ClusterName, Namespace ], [ ClusterName ] ]
label_matchers: [ ]
metric_name_selectors:
- pod_interface_network_rx_dropped
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ exporters:
- pod_network_tx_bytes
- pod_cpu_utilization_over_pod_limit
- pod_memory_utilization_over_pod_limit
- dimensions: [ [ ClusterName, FullPodName, Namespace, PodName ], [ ClusterName, Namespace, PodName ], [ ClusterName, Namespace, Service ], [ ClusterName ] ]
- dimensions: [ [ ClusterName, FullPodName, Namespace, PodName ], [ ClusterName, Namespace, PodName ], [ ClusterName, Namespace ], [ ClusterName ] ]
label_matchers: [ ]
metric_name_selectors:
- pod_interface_network_rx_dropped
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ exporters:
- pod_network_tx_bytes
- pod_cpu_utilization_over_pod_limit
- pod_memory_utilization_over_pod_limit
- dimensions: [ [ ClusterName, FullPodName, Namespace, PodName ], [ ClusterName, Namespace, PodName ], [ ClusterName, Namespace, Service ], [ ClusterName ] ]
- dimensions: [ [ ClusterName, FullPodName, Namespace, PodName ], [ ClusterName, Namespace, PodName ], [ ClusterName, Namespace ], [ ClusterName ] ]
label_matchers: [ ]
metric_name_selectors:
- pod_interface_network_rx_dropped
Expand Down
2 changes: 1 addition & 1 deletion translator/translate/otel/exporter/awsemf/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func getPodMetricDeclarations(conf *confmap.Conf) []*awsemfexporter.MetricDeclar
Dimensions: [][]string{
{"FullPodName", "PodName", "Namespace", "ClusterName"},
{"PodName", "Namespace", "ClusterName"},
{"Service", "Namespace", "ClusterName"},
{"Namespace", "ClusterName"},
{"ClusterName"},
},
MetricNameSelectors: []string{"pod_interface_network_rx_dropped", "pod_interface_network_tx_dropped"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ func TestTranslator(t *testing.T) {
Dimensions: [][]string{
{"FullPodName", "PodName", "Namespace", "ClusterName"},
{"PodName", "Namespace", "ClusterName"},
{"Service", "Namespace", "ClusterName"},
{"Namespace", "ClusterName"},
{"ClusterName"},
},
MetricNameSelectors: []string{"pod_interface_network_rx_dropped", "pod_interface_network_tx_dropped"},
Expand Down

0 comments on commit c6f3e33

Please sign in to comment.