System memory metricset

edit

The System memory metricset provides memory statistics.

This metricset is available on:

  • FreeBSD
  • Linux
  • macOS
  • OpenBSD
  • Windows

Configuration

edit

There are no configuration options for this metricset.

This is a default metricset. If the host module is unconfigured, this metricset is enabled by default.

Fields

edit

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",
    "event": {
        "dataset": "system.memory",
        "duration": 115000,
        "module": "system"
    },
    "metricset": {
        "name": "memory",
        "period": 10000
    },
    "service": {
        "type": "system"
    },
    "system": {
        "memory": {
            "actual": {
                "free": 46533455872,
                "used": {
                    "bytes": 20981358592,
                    "pct": 0.3108
                }
            },
            "cached": 42114609152,
            "free": 3916599296,
            "hugepages": {
                "default_size": 2097152,
                "free": 0,
                "reserved": 0,
                "surplus": 0,
                "swap": {
                    "out": {
                        "fallback": 0,
                        "pages": 0
                    }
                },
                "total": 0,
                "used": {
                    "bytes": 0,
                    "pct": 0
                }
            },
            "page_stats": {
                "direct_efficiency": {
                    "pct": 0.9871
                },
                "kswapd_efficiency": {
                    "pct": 0.7105
                },
                "pgfree": {
                    "pages": 69780946234
                },
                "pgscan_direct": {
                    "pages": 1512375
                },
                "pgscan_kswapd": {
                    "pages": 25880646
                },
                "pgsteal_direct": {
                    "pages": 1492831
                },
                "pgsteal_kswapd": {
                    "pages": 18387096
                }
            },
            "swap": {
                "free": 8560832512,
                "in": {
                    "pages": 727
                },
                "out": {
                    "pages": 11197
                },
                "readahead": {
                    "cached": 9,
                    "pages": 45
                },
                "total": 8589930496,
                "used": {
                    "bytes": 29097984,
                    "pct": 0.0034
                }
            },
            "total": 67514814464,
            "used": {
                "bytes": 63598215168,
                "pct": 0.942
            }
        }
    }
}