Skip to content

Commit cb29dc8

Browse files
Add new ecs fields to containerd integration (#3059)
* Add new ecs fields * Update changelog.yml
1 parent 0d975ba commit cb29dc8

File tree

6 files changed

+37
-1
lines changed

6 files changed

+37
-1
lines changed

packages/containerd/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "0.2.0"
3+
changes:
4+
- description: Add new ECS fields
5+
type: enhancement
6+
link: https://github.com/elastic/integrations/pull/3059
27
- version: "0.1.0"
38
changes:
49
- description: Create containerd package

packages/containerd/data_stream/blkio/fields/ecs.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,16 @@
77
- external: ecs
88
name: container.id
99
dimension: true
10+
- name: container.disk.read.bytes
11+
type: long
12+
format: bytes
13+
metric_type: counter
14+
description: |
15+
Bytes read during the life of the container
16+
- name: container.disk.write.bytes
17+
type: long
18+
format: bytes
19+
unit: byte
20+
metric_type: counter
21+
description: |
22+
Bytes written during the life of the container

packages/containerd/data_stream/cpu/fields/ecs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@
77
- external: ecs
88
name: container.id
99
dimension: true
10+
- name: container.cpu.usage
11+
type: scaled_float
12+
format: percent
13+
unit: percent
14+
metric_type: gauge
15+
description: |
16+
Total CPU usage normalized by the number of CPU cores.

packages/containerd/data_stream/memory/fields/ecs.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@
77
- external: ecs
88
name: container.id
99
dimension: true
10+
- name: container.memory.usage
11+
type: scaled_float
12+
format: percent
13+
unit: percent
14+
metric_type: gauge
15+
description: |
16+
Memory usage percentage.

packages/containerd/docs/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ from containerd's metrics APIs.
4444
| Field | Description | Type | Unit | Metric Type |
4545
|---|---|---|---|---|
4646
| @timestamp | Event timestamp. | date | | |
47+
| container.cpu.usage | Total CPU usage normalized by the number of CPU cores. | scaled_float | percent | gauge |
4748
| container.id | Unique container id. | keyword | | |
4849
| containerd.cpu.system.total | Total user and system CPU time spent in seconds. | double | s | gauge |
4950
| containerd.cpu.usage.cpu.\*.ns | CPU usage nanoseconds in this cpu. | object | | |
@@ -171,6 +172,7 @@ from containerd's metrics APIs.
171172
|---|---|---|---|---|
172173
| @timestamp | Event timestamp. | date | | |
173174
| container.id | Unique container id. | keyword | | |
175+
| container.memory.usage | Memory usage percentage. | scaled_float | percent | gauge |
174176
| containerd.memory.activeFiles | Total active file bytes. | long | byte | gauge |
175177
| containerd.memory.cache | Total cache bytes. | long | byte | gauge |
176178
| containerd.memory.inactiveFiles | Total inactive file bytes. | long | byte | gauge |
@@ -323,6 +325,8 @@ from containerd's metrics APIs.
323325
| Field | Description | Type | Unit | Metric Type |
324326
|---|---|---|---|---|
325327
| @timestamp | Event timestamp. | date | | |
328+
| container.disk.read.bytes | Bytes read during the life of the container | long | | counter |
329+
| container.disk.write.bytes | Bytes written during the life of the container | long | byte | counter |
326330
| container.id | Unique container id. | keyword | | |
327331
| containerd.blkio.device | Name of block device | keyword | | |
328332
| containerd.blkio.read.bytes | Bytes read during the life of the container | long | byte | gauge |

packages/containerd/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: 1.0.0
22
name: containerd
33
title: "Containerd"
4-
version: 0.1.0
4+
version: 0.2.0
55
license: basic
66
description: "Collect metrics from containerd containers."
77
type: integration

0 commit comments

Comments
 (0)