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": 8461623296,
                "used": {
                    "bytes": 7159164928,
                    "pct": 0.4583
                }
            },
            "free": 1299234816,
            "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.9242
                },
                "kswapd_efficiency": {
                    "pct": 0.7518
                },
                "pgfree": {
                    "pages": 15924304810
                },
                "pgscan_direct": {
                    "pages": 1185751
                },
                "pgscan_kswapd": {
                    "pages": 50008148
                },
                "pgsteal_direct": {
                    "pages": 1095884
                },
                "pgsteal_kswapd": {
                    "pages": 37594071
                }
            },
            "swap": {
                "free": 7823421440,
                "in": {
                    "pages": 2702
                },
                "out": {
                    "pages": 23582
                },
                "readahead": {
                    "cached": 554,
                    "pages": 986
                },
                "total": 7897870336,
                "used": {
                    "bytes": 74448896,
                    "pct": 0.0094
                }
            },
            "total": 15620788224,
            "used": {
                "bytes": 14321553408,
                "pct": 0.9168
            }
        }
    }
}