metricbeat.modules:
- module: aws
period: 48h
continuous: true
metricsets:
- container_insights
queries:
- name: "CPUMemoryStats"
query: "filter Type='Container' | stats max(container_cpu_utilization) as cpu_utilization, max(container_cpu_request) as cpu_request, max(container_cpu_limit) as cpu_limit, max(container_memory_usage) as memory_usage, max(container_memory_limit) as memory_limit, max(container_memory_request) as memory_request, latest(NodeName) as nodeName, latest(Namespace) as namespace, latest(PodName) as podName, latest(ClusterName) as clusterName,latest(kubernetes.pod_owners.0.owner_name) as ownerName,latest(kubernetes.pod_owners.0.owner_kind) as ownerKind,latest(kubernetes.containerd.container_id) as containerID, latest(@logStream) as logStream by kubernetes.container_name as containerName, bin(24h) as timestamp"