Skip to content

Commit

Permalink
Cherry-pick #16600 to 7.6: Revert "[metricbeat]Docker: add size flag …
Browse files Browse the repository at this point in the history
…to docker.container (#15224)" (#16619)

* Revert "[metricbeat]Docker: add size flag to docker.container (#15224)"
  • Loading branch information
mtojek authored Feb 26, 2020
1 parent 1b3a2b4 commit 457494c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,12 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d

*Metricbeat*

- Add dedot for tags in ec2 metricset and cloudwatch metricset. {issue}15843[15843] {pull}15844[15844]
- Use RFC3339 format for timestamps collected using the SQL module. {pull}15847[15847]
- Add dedot for cloudwatch metric name. {issue}15916[15916] {pull}15917[15917]
- Avoid parsing errors returned from prometheus endpoints. {pull}15712[15712]
- Change sqs metricset to use average as statistic method. {pull}16438[16438]
- Revert changes in `docker` module: add size flag to docker.container. {pull}16600[16600]

*Packetbeat*

Expand Down
4 changes: 2 additions & 2 deletions metricbeat/module/docker/container/_meta/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"org_label-schema_version": "6.5.1"
},
"size": {
"rw": 193031181,
"root_fs": 1290400448
"root_fs": 0,
"rw": 0
},
"status": "Up 7 minutes (healthy)"
}
Expand Down
2 changes: 1 addition & 1 deletion metricbeat/module/docker/container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func New(base mb.BaseMetricSet) (mb.MetricSet, error) {
// This is based on https://docs.docker.com/engine/reference/api/docker_remote_api_v1.24/#/list-containers.
func (m *MetricSet) Fetch(ctx context.Context, r mb.ReporterV2) error {
// Fetch a list of all containers.
containers, err := m.dockerClient.ContainerList(ctx, types.ContainerListOptions{Size: true})
containers, err := m.dockerClient.ContainerList(ctx, types.ContainerListOptions{})
if err != nil {
return errors.Wrap(err, "failed to get docker containers list")
}
Expand Down

0 comments on commit 457494c

Please sign in to comment.