diff --git a/metricbeat/module/docker/container/_meta/data.json b/metricbeat/module/docker/container/_meta/data.json index dd9f588a1b54..881232869394 100644 --- a/metricbeat/module/docker/container/_meta/data.json +++ b/metricbeat/module/docker/container/_meta/data.json @@ -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)" } diff --git a/metricbeat/module/docker/container/container.go b/metricbeat/module/docker/container/container.go index 543e46947da3..b3523464db3e 100644 --- a/metricbeat/module/docker/container/container.go +++ b/metricbeat/module/docker/container/container.go @@ -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") }