Docker memory metricset
edit
A newer version is available. Check out the latest documentation.
Docker memory metricset
editThe Docker memory
metricset collects memory metrics.
This is a default metricset. If the host module is unconfigured, this metricset is enabled by default.
For a description of each field in the metricset, see the exported fields section.
Here is an example document generated by this metricset:
{ "@timestamp": "2017-10-12T08:05:34.853Z", "container": { "id": "3ebfd3aebc686af21efccc552aabceb4303b70ef4bc2be7fffbb616000f824b4", "image": { "name": "docker.elastic.co/elastic-agent/elastic-agent-complete:8.15.3" }, "memory": { "usage": 0.0012028823743718271 }, "name": "elastic-package-stack-elastic-agent-1", "runtime": "docker" }, "docker": { "container": { "labels": { "com_docker_compose_config-hash": "34d3699c997ecee19f466a3a5be2c73b86a5f4a89c362301412d9cc03e41d62d", "com_docker_compose_container-number": "1", "com_docker_compose_depends_on": "fleet-server:service_healthy:false", "com_docker_compose_image": "sha256:37bd3034b35d10da7c806226eb2956b6c998745da9dc15ed3e920d214a59bcec", "com_docker_compose_oneoff": "False", "com_docker_compose_project": "elastic-package-stack", "com_docker_compose_project_config_files": "/home/alexk/.elastic-package/profiles/default/stack/docker-compose.yml", "com_docker_compose_project_working_dir": "/home/alexk/.elastic-package/profiles/default/stack", "com_docker_compose_service": "elastic-agent", "com_docker_compose_version": "2.29.2", "description": "Elastic Agent - single, unified way to add monitoring for logs, metrics, and other types of data to a host.", "io_k8s_description": "Elastic Agent - single, unified way to add monitoring for logs, metrics, and other types of data to a host.", "io_k8s_display-name": "Elastic-Agent image", "license": "Elastic License", "maintainer": "infra@elastic.co", "name": "elastic-agent", "org_label-schema_build-date": "2024-10-10T10:08:37Z", "org_label-schema_license": "Elastic License", "org_label-schema_name": "elastic-agent", "org_label-schema_schema-version": "1.0", "org_label-schema_url": "https://www.elastic.co/elastic-agent", "org_label-schema_vcs-ref": "61975895b1409449db21ddca0405e7b71bfc1c46", "org_label-schema_vcs-url": "github.com/elastic/elastic-agent", "org_label-schema_vendor": "Elastic", "org_label-schema_version": "8.15.3", "org_opencontainers_image_created": "2024-10-10T10:08:37Z", "org_opencontainers_image_licenses": "Elastic License", "org_opencontainers_image_ref_name": "ubuntu", "org_opencontainers_image_title": "Elastic-Agent", "org_opencontainers_image_vendor": "Elastic", "org_opencontainers_image_version": "20.04", "release": "1", "summary": "elastic-agent", "url": "https://www.elastic.co/elastic-agent", "vendor": "Elastic", "version": "8.15.3" } }, "memory": { "fail": { "count": 0 }, "limit": 33537363968, "stats": { "active_anon": 10223616, "active_file": 19795968, "anon": 19140608, "anon_thp": 0, "file": 36466688, "file_dirty": 0, "file_mapped": 585728, "file_writeback": 0, "inactive_anon": 8921088, "inactive_file": 16670720, "kernel_stack": 212992, "pgactivate": 4810, "pgdeactivate": 0, "pgfault": 703936010, "pglazyfree": 0, "pglazyfreed": 0, "pgmajfault": 729, "pgrefill": 170270, "pgscan": 12002, "pgsteal": 10536, "shmem": 0, "slab": 513312, "slab_reclaimable": 194680, "slab_unreclaimable": 318632, "sock": 0, "thp_collapse_alloc": 0, "thp_fault_alloc": 0, "unevictable": 0, "workingset_activate": 0, "workingset_nodereclaim": 0, "workingset_refault": 0 }, "usage": { "max": 0, "pct": 0.0012028823743718271, "total": 40341504 } } }, "event": { "dataset": "docker.memory", "duration": 115000, "module": "docker" }, "metricset": { "name": "memory", "period": 10000 }, "service": { "address": "/var/run/docker.sock", "type": "docker" } }