From 8a10c6f32cdd8c65660eba7228347019fd380067 Mon Sep 17 00:00:00 2001 From: ChrsMark Date: Tue, 6 Jun 2023 17:49:12 +0300 Subject: [PATCH] Add container metrics fields from ECS Signed-off-by: ChrsMark --- semantic_conventions/resource/container.yaml | 54 ++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/semantic_conventions/resource/container.yaml b/semantic_conventions/resource/container.yaml index 6fdb1fd42f..233fe2b858 100644 --- a/semantic_conventions/resource/container.yaml +++ b/semantic_conventions/resource/container.yaml @@ -32,3 +32,57 @@ groups: brief: > Container image tag. examples: ['0.1'] + - id: cpu.usage + type: metric + metric_name: container.cpu.usage + brief: "Recent CPU utilization for the container." + note: > + CPU usage percentage normalized by the number of CPU cores. + The value range is [0.0,1.0]. + instrument: gauge + unit: "1" + - id: memory.usage + type: metric + metric_name: container.memory.usage + brief: "Recent memory utilization for the container." + note: > + Memory usage percentage. + The value range is [0.0,1.0]. + instrument: gauge + unit: "1" + - id: disk.read.bytes + type: metric + metric_name: container.disk.read.bytes + brief: "Disk read bytes for the container." + note: > + The total number of bytes read successfully (aggregated from all disks) + since the last metric collection. + instrument: gauge + unit: "By" + - id: disk.write.bytes + type: metric + metric_name: container.disk.write.bytes + brief: "Disk write bytes for the container." + note: > + The total number of bytes written successfully (aggregated from all disks) + since the last metric collection. + instrument: gauge + unit: "By" + - id: network.ingress.bytes + type: metric + metric_name: container.network.ingress.bytes + brief: "Network ingress bytes for the container." + note: > + The number of bytes sent out on all network interfaces + by the container since the last metric collection. + instrument: gauge + unit: "By" + - id: network.egress.bytes + type: metric + metric_name: container.network.egress.bytes + brief: "Network egress bytes for the container." + note: > + The number of bytes received on all network interfaces + by the container since the last metric collection. + instrument: gauge + unit: "By" \ No newline at end of file