@@ -8,94 +8,92 @@ linkTitle: Container
8
8
9
9
## Container Metrics
10
10
11
- ### Metric: ` container.cpu.usage `
11
+ ### Metric: ` container.cpu.utilization `
12
12
13
13
This metric is optional.
14
14
15
- <!-- semconv metric.container.cpu.usage (metric_table) -->
15
+ <!-- semconv metric.container.cpu.utilization (metric_table) -->
16
16
| Name | Instrument Type | Unit (UCUM) | Description |
17
17
| -------- | --------------- | ----------- | -------------- |
18
- | ` container.cpu.usage ` | Gauge | ` 1 ` | Recent CPU utilization for the container. [ 1] |
18
+ | ` container.cpu.utilization ` | Gauge | ` 1 ` | Recent CPU utilization for the container. [ 1] |
19
19
20
20
** [ 1] :** CPU usage percentage normalized by the number of CPU cores. The value range is [ 0.0,1.0] .
21
21
<!-- endsemconv -->
22
22
23
- <!-- semconv metric.container.cpu.usage(full) -->
23
+ <!-- semconv metric.container.cpu.utilization(full) -->
24
+ | Attribute | Type | Description | Examples | Requirement Level |
25
+ | ---| ---| ---| ---| ---|
26
+ | [ ` container.id ` ] ( ../resource/container.md ) | string | Container ID. Usually a UUID, as for example used to [ identify Docker containers] ( https://docs.docker.com/engine/reference/run/#container-identification ) . The UUID might be abbreviated. | ` a3bf90e006b2 ` | Recommended |
24
27
<!-- endsemconv -->
25
28
26
- ### Metric: ` container.memory.usage `
29
+ ### Metric: ` container.memory.utilization `
27
30
28
31
This metric is optional.
29
32
30
- <!-- semconv metric.container.memory.usage (metric_table) -->
33
+ <!-- semconv metric.container.memory.utilization (metric_table) -->
31
34
| Name | Instrument Type | Unit (UCUM) | Description |
32
35
| -------- | --------------- | ----------- | -------------- |
33
- | ` container.memory.usage ` | Gauge | ` 1 ` | Recent memory utilization for the container. [ 1] |
36
+ | ` container.memory.utilization ` | Gauge | ` 1 ` | Recent memory utilization for the container. [ 1] |
34
37
35
38
** [ 1] :** Memory usage percentage. The value range is [ 0.0,1.0] .
36
39
<!-- endsemconv -->
37
40
38
- <!-- semconv metric.container.memory.usage(full) -->
41
+ <!-- semconv metric.container.memory.utilization(full) -->
42
+ | Attribute | Type | Description | Examples | Requirement Level |
43
+ | ---| ---| ---| ---| ---|
44
+ | [ ` container.id ` ] ( ../resource/container.md ) | string | Container ID. Usually a UUID, as for example used to [ identify Docker containers] ( https://docs.docker.com/engine/reference/run/#container-identification ) . The UUID might be abbreviated. | ` a3bf90e006b2 ` | Recommended |
39
45
<!-- endsemconv -->
40
46
41
- ### Metric: ` container.disk.read .bytes `
47
+ ### Metric: ` container.disk.io .bytes `
42
48
43
49
This metric is optional.
44
50
45
- <!-- semconv metric.container.disk.read .bytes(metric_table) -->
51
+ <!-- semconv metric.container.disk.io .bytes(metric_table) -->
46
52
| Name | Instrument Type | Unit (UCUM) | Description |
47
53
| -------- | --------------- | ----------- | -------------- |
48
- | ` container.disk.read .bytes ` | Counter | ` By ` | Disk read bytes for the container. [ 1] |
54
+ | ` container.disk.io .bytes ` | Counter | ` By ` | Disk bytes for the container. [ 1] |
49
55
50
- ** [ 1] :** The total number of bytes read successfully (aggregated from all disks).
56
+ ** [ 1] :** The total number of bytes read/written successfully (aggregated from all disks).
51
57
<!-- endsemconv -->
52
58
53
- <!-- semconv metric.container.disk.read.bytes(full) -->
54
- <!-- endsemconv -->
55
-
56
- ### Metric: ` container.disk.write.bytes `
57
-
58
- This metric is optional.
59
+ <!-- semconv metric.container.disk.io.bytes(full) -->
60
+ | Attribute | Type | Description | Examples | Requirement Level |
61
+ | ---| ---| ---| ---| ---|
62
+ | ` container.disk.io.direction ` | string | The disk IO operation's direction | ` read ` ; ` write ` | Recommended |
63
+ | [ ` container.id ` ] ( ../resource/container.md ) | string | Container ID. Usually a UUID, as for example used to [ identify Docker containers] ( https://docs.docker.com/engine/reference/run/#container-identification ) . The UUID might be abbreviated. | ` a3bf90e006b2 ` | Recommended |
59
64
60
- <!-- semconv metric.container.disk.write.bytes(metric_table) -->
61
- | Name | Instrument Type | Unit (UCUM) | Description |
62
- | -------- | --------------- | ----------- | -------------- |
63
- | ` container.disk.write.bytes ` | Counter | ` By ` | Disk write bytes for the container. [ 1] |
64
-
65
- ** [ 1] :** The total number of bytes written successfully (aggregated from all disks).
66
- <!-- endsemconv -->
65
+ ` container.disk.io.direction ` MUST be one of the following:
67
66
68
- <!-- semconv metric.container.disk.write.bytes(full) -->
67
+ | Value | Description |
68
+ | ---| ---|
69
+ | ` read ` | read |
70
+ | ` write ` | write |
69
71
<!-- endsemconv -->
70
72
71
- ### Metric: ` container.network.ingress .bytes `
73
+ ### Metric: ` container.network.io .bytes `
72
74
73
75
This metric is optional.
74
76
75
- <!-- semconv metric.container.network.ingress .bytes(metric_table) -->
77
+ <!-- semconv metric.container.network.io .bytes(metric_table) -->
76
78
| Name | Instrument Type | Unit (UCUM) | Description |
77
79
| -------- | --------------- | ----------- | -------------- |
78
- | ` container.network.ingress .bytes ` | Counter | ` By ` | Network ingress bytes for the container. [ 1] |
80
+ | ` container.disk.io .bytes ` | Counter | ` By ` | Network bytes for the container. [ 1] |
79
81
80
- ** [ 1] :** The number of bytes received on all network interfaces by the container.
82
+ ** [ 1] :** The number of bytes sent/ received on all network interfaces by the container.
81
83
<!-- endsemconv -->
82
84
83
- <!-- semconv metric.container.network.ingress.bytes(full) -->
84
- <!-- endsemconv -->
85
-
86
- ### Metric: ` container.network.egress.bytes `
87
-
88
- This metric is optional.
85
+ <!-- semconv metric.container.network.io.bytes(full) -->
86
+ | Attribute | Type | Description | Examples | Requirement Level |
87
+ | ---| ---| ---| ---| ---|
88
+ | [ ` container.id ` ] ( ../resource/container.md ) | string | Container ID. Usually a UUID, as for example used to [ identify Docker containers] ( https://docs.docker.com/engine/reference/run/#container-identification ) . The UUID might be abbreviated. | ` a3bf90e006b2 ` | Recommended |
89
+ | ` container.network.io.direction ` | string | The Network IO direction | ` ingress ` ; ` egress ` | Recommended |
89
90
90
- <!-- semconv metric.container.network.egress.bytes(metric_table) -->
91
- | Name | Instrument Type | Unit (UCUM) | Description |
92
- | -------- | --------------- | ----------- | -------------- |
93
- | ` container.network.egress.bytes ` | Counter | ` By ` | Network egress bytes for the container. [ 1] |
94
-
95
- ** [ 1] :** The number of bytes sent out on all network interfaces by the container.
96
- <!-- endsemconv -->
91
+ ` container.network.io.direction ` MUST be one of the following:
97
92
98
- <!-- semconv metric.container.network.egress.bytes(full) -->
93
+ | Value | Description |
94
+ | ---| ---|
95
+ | ` ingress ` | ingress |
96
+ | ` egress ` | egress |
99
97
<!-- endsemconv -->
100
98
101
99
[ DocumentStatus ] : https://github.com/open-telemetry/opentelemetry-specification/tree/v1.22.0/specification/document-status.md
0 commit comments