From c832b7df4a505ded6c5461d28b28450cdeb13645 Mon Sep 17 00:00:00 2001 From: Marcin Tojek Date: Wed, 15 Sep 2021 22:31:29 +0200 Subject: [PATCH] Docker: remove deprecated fields (#27933) * Docker: remove deprecated fields * Update docs/fields.asciidoc * Update CHANGELOG * Fix * Fix --- CHANGELOG.next.asciidoc | 1 + metricbeat/docs/fields.asciidoc | 137 ------------------ .../module/docker/diskio/_meta/fields.yml | 21 +-- metricbeat/module/docker/diskio/data.go | 3 - metricbeat/module/docker/fields.go | 2 +- .../module/docker/network/_meta/fields.yml | 46 ------ metricbeat/module/docker/network/data.go | 14 -- 7 files changed, 5 insertions(+), 219 deletions(-) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 786d73a0502..e57576aa204 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -112,6 +112,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Add support for kube-state-metrics v2.0.0 {pull}27552[27552] - Add User-Agent header to HTTP requests. {issue}18160[18160] {pull}27509[27509] - Errors should be thrown as errors. Metricsets inside Metricbeat will now throw errors as the `error` log level. {pull}27804[27804] +- Remove deprecated fields in Docker module. {issue}11835[11835] {pull}27933[27933] *Packetbeat* diff --git a/metricbeat/docs/fields.asciidoc b/metricbeat/docs/fields.asciidoc index 0551dbbff8f..da9d67c3783 100644 --- a/metricbeat/docs/fields.asciidoc +++ b/metricbeat/docs/fields.asciidoc @@ -12029,19 +12029,6 @@ type: long -- -*`docker.diskio.reads`*:: -+ --- - -deprecated:[6.4] - -Number of current reads per second - - -type: scaled_float - --- - [float] === write @@ -12111,19 +12098,6 @@ type: long -- -*`docker.diskio.writes`*:: -+ --- - -deprecated:[6.4] - -Number of current writes per second - - -type: scaled_float - --- - [float] === summary @@ -12193,19 +12167,6 @@ type: long -- -*`docker.diskio.total`*:: -+ --- - -deprecated:[6.4] - -Number of reads and writes per second - - -type: scaled_float - --- - [float] === event @@ -12703,104 +12664,6 @@ type: keyword -- -[float] -=== in - -Incoming network stats per second. - - - -*`docker.network.in.bytes`*:: -+ --- -Total number of incoming bytes. - - -type: long - -format: bytes - --- - -*`docker.network.in.dropped`*:: -+ --- -Total number of dropped incoming packets. - - -type: scaled_float - --- - -*`docker.network.in.errors`*:: -+ --- -Total errors on incoming packets. - - -type: long - --- - -*`docker.network.in.packets`*:: -+ --- -Total number of incoming packets. - - -type: long - --- - -[float] -=== out - -Outgoing network stats per second. - - - -*`docker.network.out.bytes`*:: -+ --- -Total number of outgoing bytes. - - -type: long - -format: bytes - --- - -*`docker.network.out.dropped`*:: -+ --- -Total number of dropped outgoing packets. - - -type: scaled_float - --- - -*`docker.network.out.errors`*:: -+ --- -Total errors on outgoing packets. - - -type: long - --- - -*`docker.network.out.packets`*:: -+ --- -Total number of outgoing packets. - - -type: long - --- - [float] === inbound diff --git a/metricbeat/module/docker/diskio/_meta/fields.yml b/metricbeat/module/docker/diskio/_meta/fields.yml index 71f9e22859a..74532058ec3 100644 --- a/metricbeat/module/docker/diskio/_meta/fields.yml +++ b/metricbeat/module/docker/diskio/_meta/fields.yml @@ -28,17 +28,12 @@ Total time to service IO requests, in nanoseconds - name: wait_time type: long - description: > + description: > Total time requests spent waiting in queues for service, in nanoseconds - name: queued type: long description: > Total number of queued requests - - name: reads - type: scaled_float - deprecated: 6.4 - description: > - Number of current reads per second - name: write type: group description: > @@ -63,17 +58,12 @@ Total time to service IO requests, in nanoseconds - name: wait_time type: long - description: > + description: > Total time requests spent waiting in queues for service, in nanoseconds - name: queued type: long description: > Total number of queued requests - - name: writes - type: scaled_float - deprecated: 6.4 - description: > - Number of current writes per second - name: summary type: group description: > @@ -98,14 +88,9 @@ Total time to service IO requests, in nanoseconds - name: wait_time type: long - description: > + description: > Total time requests spent waiting in queues for service, in nanoseconds - name: queued type: long description: > Total number of queued requests - - name: total - type: scaled_float - deprecated: 6.4 - description: > - Number of reads and writes per second diff --git a/metricbeat/module/docker/diskio/data.go b/metricbeat/module/docker/diskio/data.go index 04665ca85cc..4d5ae9b0e5c 100644 --- a/metricbeat/module/docker/diskio/data.go +++ b/metricbeat/module/docker/diskio/data.go @@ -30,9 +30,6 @@ func eventsMapping(r mb.ReporterV2, blkioStatsList []BlkioStats) { func eventMapping(r mb.ReporterV2, stats *BlkioStats) { fields := common.MapStr{ - "reads": stats.reads, - "writes": stats.writes, - "total": stats.totals, "read": common.MapStr{ "ops": stats.serviced.reads, "bytes": stats.servicedBytes.reads, diff --git a/metricbeat/module/docker/fields.go b/metricbeat/module/docker/fields.go index 500a172a399..9c88da1e5b9 100644 --- a/metricbeat/module/docker/fields.go +++ b/metricbeat/module/docker/fields.go @@ -32,5 +32,5 @@ func init() { // AssetDocker returns asset data. // This is the base64 encoded zlib format compressed contents of module/docker. func AssetDocker() string { - return "eJzsXE1v4zjSvudXFPIeXqCR2NjFYA8+LDCb7kUHOz0ddCe7h8HAQ1Nlu9YSqSYpu92/fkFSkm2JkvwhO8kgPuQQWlVPfRfJkm9hgesRRJIvUF0BGDIxjuD6vfvH9RVAhJorSg1JMYK/XwEA+EXQhhkNXMYxcoMRTJVM8rXBFYDCGJnGEczYFYBGY0jM9Ah+u9Y6vv7d/m8ulRlzKaY0G8GUxRqvAKaEcaRHjtMtCJbgFj77MevUUlUyS/P/BDDaz72YSpUw+29gInKASRviGthEZiYn+/8aVCYEiRlwKQwjgUoPcirbaLYRld8sV0LAWsBtKbKkBQkaRbxkbj+7aiw+VVi70JKEiWhnrQC3wPVKqupaC0T7ufMEwcyZgRXTgN+RZ9bkJMDMsSbHIIxLITMYxhUxg4eBes8MwmqOHsFGhRZfzikMw3pBpvvUTsHaUw5zpXTMokih1hjmTemxbO8foCTdIDL9qGo37KuHiUs/MOSx0OCf24iUlGY8rWpiAyyWYhZY7MDmPo/SsNiDk1NgcewcZEox6sJfGxx1B+DqHNi+5qg2iFxMzdkSYYIoCs8FqYDPmZhhBJoER79AUoQNbNisR4++T9gMHc1BPe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/aF58e7ic2+k8IULmGs308ZdTa8B8qkwU/l/ESCyHOmrC5CK7PUEyP5IlwuQdqbaojpq9o/G46NaJsdo2H6LbruKnRd4+SHHG11r2mO5u4pv7AzvU9vTfYe6IulT3fO7bnWjlAz2rPMXMrhbMfGs11m8/9gxUvuv/61q3nJqecRJ4Qzd/6QBj+u2pyrD3wCXSqHOpe8QMhKGuZJ8+FtOye9DgfHusDVnr5hrwHJpqhT5Rp3wW8W98bUbwf8CAAD//+ANZsY=" } diff --git a/metricbeat/module/docker/network/_meta/fields.yml b/metricbeat/module/docker/network/_meta/fields.yml index 035047eb091..68af440a9bf 100644 --- a/metricbeat/module/docker/network/_meta/fields.yml +++ b/metricbeat/module/docker/network/_meta/fields.yml @@ -9,52 +9,6 @@ type: keyword description: > Network interface name. - - name: in - type: group - deprecated: 6.4 - description: > - Incoming network stats per second. - fields: - - name: bytes - type: long - format: bytes - description: > - Total number of incoming bytes. - - name: dropped - type: scaled_float - description: > - Total number of dropped incoming packets. - - name: errors - type: long - description: > - Total errors on incoming packets. - - name: packets - type: long - description: > - Total number of incoming packets. - - name: out - type: group - deprecated: 6.4 - description: > - Outgoing network stats per second. - fields: - - name: bytes - type: long - format: bytes - description: > - Total number of outgoing bytes. - - name: dropped - type: scaled_float - description: > - Total number of dropped outgoing packets. - - name: errors - type: long - description: > - Total errors on outgoing packets. - - name: packets - type: long - description: > - Total number of outgoing packets. - name: inbound type: group description: > diff --git a/metricbeat/module/docker/network/data.go b/metricbeat/module/docker/network/data.go index b4a2b90c405..c537032abb1 100644 --- a/metricbeat/module/docker/network/data.go +++ b/metricbeat/module/docker/network/data.go @@ -33,20 +33,6 @@ func eventMapping(r mb.ReporterV2, stats *NetStats) { RootFields: stats.Container.ToMapStr(), MetricSetFields: common.MapStr{ "interface": stats.NameInterface, - // Deprecated - "in": common.MapStr{ - "bytes": stats.RxBytes, - "dropped": stats.RxDropped, - "errors": stats.RxErrors, - "packets": stats.RxPackets, - }, - // Deprecated - "out": common.MapStr{ - "bytes": stats.TxBytes, - "dropped": stats.TxDropped, - "errors": stats.TxErrors, - "packets": stats.TxPackets, - }, "inbound": common.MapStr{ "bytes": stats.Total.RxBytes, "dropped": stats.Total.RxDropped,