Skip to content

Commit 2c47ac8

Browse files
authored
Docker: remove deprecated fields (#27933)
* Docker: remove deprecated fields * Update docs/fields.asciidoc * Update CHANGELOG * Fix * Fix
1 parent ba9eebf commit 2c47ac8

7 files changed

Lines changed: 5 additions & 219 deletions

File tree

CHANGELOG.next.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
112112
- Add support for kube-state-metrics v2.0.0 {pull}27552[27552]
113113
- Add User-Agent header to HTTP requests. {issue}18160[18160] {pull}27509[27509]
114114
- Errors should be thrown as errors. Metricsets inside Metricbeat will now throw errors as the `error` log level. {pull}27804[27804]
115+
- Remove deprecated fields in Docker module. {issue}11835[11835] {pull}27933[27933]
115116

116117
*Packetbeat*
117118

metricbeat/docs/fields.asciidoc

Lines changed: 0 additions & 137 deletions
Original file line numberDiff line numberDiff line change
@@ -12029,19 +12029,6 @@ type: long
1202912029

1203012030
--
1203112031

12032-
*`docker.diskio.reads`*::
12033-
+
12034-
--
12035-
12036-
deprecated:[6.4]
12037-
12038-
Number of current reads per second
12039-
12040-
12041-
type: scaled_float
12042-
12043-
--
12044-
1204512032
[float]
1204612033
=== write
1204712034

@@ -12111,19 +12098,6 @@ type: long
1211112098

1211212099
--
1211312100

12114-
*`docker.diskio.writes`*::
12115-
+
12116-
--
12117-
12118-
deprecated:[6.4]
12119-
12120-
Number of current writes per second
12121-
12122-
12123-
type: scaled_float
12124-
12125-
--
12126-
1212712101
[float]
1212812102
=== summary
1212912103

@@ -12193,19 +12167,6 @@ type: long
1219312167

1219412168
--
1219512169

12196-
*`docker.diskio.total`*::
12197-
+
12198-
--
12199-
12200-
deprecated:[6.4]
12201-
12202-
Number of reads and writes per second
12203-
12204-
12205-
type: scaled_float
12206-
12207-
--
12208-
1220912170
[float]
1221012171
=== event
1221112172

@@ -12703,104 +12664,6 @@ type: keyword
1270312664

1270412665
--
1270512666

12706-
[float]
12707-
=== in
12708-
12709-
Incoming network stats per second.
12710-
12711-
12712-
12713-
*`docker.network.in.bytes`*::
12714-
+
12715-
--
12716-
Total number of incoming bytes.
12717-
12718-
12719-
type: long
12720-
12721-
format: bytes
12722-
12723-
--
12724-
12725-
*`docker.network.in.dropped`*::
12726-
+
12727-
--
12728-
Total number of dropped incoming packets.
12729-
12730-
12731-
type: scaled_float
12732-
12733-
--
12734-
12735-
*`docker.network.in.errors`*::
12736-
+
12737-
--
12738-
Total errors on incoming packets.
12739-
12740-
12741-
type: long
12742-
12743-
--
12744-
12745-
*`docker.network.in.packets`*::
12746-
+
12747-
--
12748-
Total number of incoming packets.
12749-
12750-
12751-
type: long
12752-
12753-
--
12754-
12755-
[float]
12756-
=== out
12757-
12758-
Outgoing network stats per second.
12759-
12760-
12761-
12762-
*`docker.network.out.bytes`*::
12763-
+
12764-
--
12765-
Total number of outgoing bytes.
12766-
12767-
12768-
type: long
12769-
12770-
format: bytes
12771-
12772-
--
12773-
12774-
*`docker.network.out.dropped`*::
12775-
+
12776-
--
12777-
Total number of dropped outgoing packets.
12778-
12779-
12780-
type: scaled_float
12781-
12782-
--
12783-
12784-
*`docker.network.out.errors`*::
12785-
+
12786-
--
12787-
Total errors on outgoing packets.
12788-
12789-
12790-
type: long
12791-
12792-
--
12793-
12794-
*`docker.network.out.packets`*::
12795-
+
12796-
--
12797-
Total number of outgoing packets.
12798-
12799-
12800-
type: long
12801-
12802-
--
12803-
1280412667
[float]
1280512668
=== inbound
1280612669

metricbeat/module/docker/diskio/_meta/fields.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,12 @@
2828
Total time to service IO requests, in nanoseconds
2929
- name: wait_time
3030
type: long
31-
description: >
31+
description: >
3232
Total time requests spent waiting in queues for service, in nanoseconds
3333
- name: queued
3434
type: long
3535
description: >
3636
Total number of queued requests
37-
- name: reads
38-
type: scaled_float
39-
deprecated: 6.4
40-
description: >
41-
Number of current reads per second
4237
- name: write
4338
type: group
4439
description: >
@@ -63,17 +58,12 @@
6358
Total time to service IO requests, in nanoseconds
6459
- name: wait_time
6560
type: long
66-
description: >
61+
description: >
6762
Total time requests spent waiting in queues for service, in nanoseconds
6863
- name: queued
6964
type: long
7065
description: >
7166
Total number of queued requests
72-
- name: writes
73-
type: scaled_float
74-
deprecated: 6.4
75-
description: >
76-
Number of current writes per second
7767
- name: summary
7868
type: group
7969
description: >
@@ -98,14 +88,9 @@
9888
Total time to service IO requests, in nanoseconds
9989
- name: wait_time
10090
type: long
101-
description: >
91+
description: >
10292
Total time requests spent waiting in queues for service, in nanoseconds
10393
- name: queued
10494
type: long
10595
description: >
10696
Total number of queued requests
107-
- name: total
108-
type: scaled_float
109-
deprecated: 6.4
110-
description: >
111-
Number of reads and writes per second

metricbeat/module/docker/diskio/data.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ func eventsMapping(r mb.ReporterV2, blkioStatsList []BlkioStats) {
3030

3131
func eventMapping(r mb.ReporterV2, stats *BlkioStats) {
3232
fields := common.MapStr{
33-
"reads": stats.reads,
34-
"writes": stats.writes,
35-
"total": stats.totals,
3633
"read": common.MapStr{
3734
"ops": stats.serviced.reads,
3835
"bytes": stats.servicedBytes.reads,

metricbeat/module/docker/fields.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

metricbeat/module/docker/network/_meta/fields.yml

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -9,52 +9,6 @@
99
type: keyword
1010
description: >
1111
Network interface name.
12-
- name: in
13-
type: group
14-
deprecated: 6.4
15-
description: >
16-
Incoming network stats per second.
17-
fields:
18-
- name: bytes
19-
type: long
20-
format: bytes
21-
description: >
22-
Total number of incoming bytes.
23-
- name: dropped
24-
type: scaled_float
25-
description: >
26-
Total number of dropped incoming packets.
27-
- name: errors
28-
type: long
29-
description: >
30-
Total errors on incoming packets.
31-
- name: packets
32-
type: long
33-
description: >
34-
Total number of incoming packets.
35-
- name: out
36-
type: group
37-
deprecated: 6.4
38-
description: >
39-
Outgoing network stats per second.
40-
fields:
41-
- name: bytes
42-
type: long
43-
format: bytes
44-
description: >
45-
Total number of outgoing bytes.
46-
- name: dropped
47-
type: scaled_float
48-
description: >
49-
Total number of dropped outgoing packets.
50-
- name: errors
51-
type: long
52-
description: >
53-
Total errors on outgoing packets.
54-
- name: packets
55-
type: long
56-
description: >
57-
Total number of outgoing packets.
5812
- name: inbound
5913
type: group
6014
description: >

metricbeat/module/docker/network/data.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,6 @@ func eventMapping(r mb.ReporterV2, stats *NetStats) {
3333
RootFields: stats.Container.ToMapStr(),
3434
MetricSetFields: common.MapStr{
3535
"interface": stats.NameInterface,
36-
// Deprecated
37-
"in": common.MapStr{
38-
"bytes": stats.RxBytes,
39-
"dropped": stats.RxDropped,
40-
"errors": stats.RxErrors,
41-
"packets": stats.RxPackets,
42-
},
43-
// Deprecated
44-
"out": common.MapStr{
45-
"bytes": stats.TxBytes,
46-
"dropped": stats.TxDropped,
47-
"errors": stats.TxErrors,
48-
"packets": stats.TxPackets,
49-
},
5036
"inbound": common.MapStr{
5137
"bytes": stats.Total.RxBytes,
5238
"dropped": stats.Total.RxDropped,

0 commit comments

Comments
 (0)