in translator/translate/otel/exporter/awsemf/kubernetes.go [595:651]
func getEFAMetricDeclarations(conf *confmap.Conf) []*awsemfexporter.MetricDeclaration {
var metricDeclarations []*awsemfexporter.MetricDeclaration
if awscontainerinsight.EnhancedContainerInsightsEnabled(conf) && awscontainerinsight.AcceleratedComputeMetricsEnabled(conf) {
metricDeclarations = []*awsemfexporter.MetricDeclaration{
{
Dimensions: [][]string{
{"ClusterName"},
{"ClusterName", "Namespace", "PodName", "ContainerName"},
{"ClusterName", "Namespace", "PodName", "FullPodName", "ContainerName"},
{"ClusterName", "Namespace", "PodName", "FullPodName", "ContainerName", "NetworkInterfaceId"},
},
MetricNameSelectors: []string{
"container_efa_rx_bytes",
"container_efa_tx_bytes",
"container_efa_rx_dropped",
"container_efa_rdma_read_bytes",
"container_efa_rdma_write_bytes",
"container_efa_rdma_write_recv_bytes",
},
},
{
Dimensions: [][]string{
{"ClusterName"},
{"ClusterName", "Namespace"},
{"ClusterName", "Namespace", "Service"},
{"ClusterName", "Namespace", "PodName"},
{"ClusterName", "Namespace", "PodName", "FullPodName"},
{"ClusterName", "Namespace", "PodName", "FullPodName", "NetworkInterfaceId"},
},
MetricNameSelectors: []string{
"pod_efa_rx_bytes",
"pod_efa_tx_bytes",
"pod_efa_rx_dropped",
"pod_efa_rdma_read_bytes",
"pod_efa_rdma_write_bytes",
"pod_efa_rdma_write_recv_bytes",
},
},
{
Dimensions: [][]string{
{"ClusterName"},
{"ClusterName", "NodeName", "InstanceId"},
{"ClusterName", "NodeName", "InstanceId", "InstanceType", "NetworkInterfaceId"},
},
MetricNameSelectors: []string{
"node_efa_rx_bytes",
"node_efa_tx_bytes",
"node_efa_rx_dropped",
"node_efa_rdma_read_bytes",
"node_efa_rdma_write_bytes",
"node_efa_rdma_write_recv_bytes",
},
},
}
}
return metricDeclarations
}