receivers: awsecscontainermetrics: processors: filter: metrics: include: match_type: regexp # metric_names: - .*memory.reserved - .*memory.utilized - .*cpu.reserved - .*cpu.utilized - .*network.rate.rx - .*network.rate.tx - .*storage.read_bytes - .*storage.write_bytes metricstransform: # transforms: # - metric_name: ecs.task.memory.utilized # action: update # new_name: MemoryUtilized # - metric_name: ecs.task.memory.reserved # action: update # new_name: MemoryReserved # - metric_name: ecs.task.cpu.utilized # action: update # new_name: CpuUtilized # - metric_name: ecs.task.cpu.reserved # action: update # new_name: CpuReserved # - metric_name: ecs.task.network.rate.rx # action: update # new_name: NetworkRxBytes # - metric_name: ecs.task.network.rate.tx # action: update # new_name: NetworkTxBytes # - metric_name: ecs.task.storage.read_bytes # action: update # new_name: StorageReadBytes # - metric_name: ecs.task.storage.write_bytes # action: update # new_name: StorageWriteBytes resource: attributes: - key: ClusterName from_attribute: aws.ecs.cluster.name action: insert - key: aws.ecs.cluster.name action: delete - key: ServiceName from_attribute: aws.ecs.service.name action: insert - key: aws.ecs.service.name action: delete - key: TaskId from_attribute: aws.ecs.task.id action: insert - key: aws.ecs.task.id action: delete - key: TaskDefinitionFamily from_attribute: aws.ecs.task.family action: insert - key: aws.ecs.task.family action: delete - key: ContainerName from_attribute: container.name action: insert - key: container.name action: delete - key: ContainerId from_attribute: container.id action: insert - key: container.id action: delete exporters: awsemf: namespace: ECS/ContainerInsights/Otel log_group_name: '/aws/ecs/containerinsights/{ClusterName}/performance' log_stream_name: '{TaskDefinitionFamily}-{TaskId}' resource_to_telemetry_conversion: enabled: true dimension_rollup_option: NoDimensionRollup metric_declarations: # # - dimensions: [[ClusterName], [ClusterName, TaskDefinitionFamily]] # metric_name_selectors: # - MemoryUtilized # - MemoryReserved # - CpuUtilized # - CpuReserved # - NetworkRxBytes # - NetworkTxBytes # - StorageReadBytes # - StorageWriteBytes # task metrics - dimensions: [[ClusterName, TaskDefinitionFamily, TaskId]] metric_name_selectors: [ecs.task.*] # container metrics - dimensions: [[ClusterName, TaskDefinitionFamily, ContainerName, ContainerId]] metric_name_selectors: [container.*] service: pipelines: metrics: receivers: [awsecscontainermetrics] processors: [filter, metricstransform, resource] exporters: [awsemf]