---
title: ''
description: Telegraf plugin for collecting metrics from Kernel VM Statistics
url: https://docs.influxdata.com/telegraf/v1/input-plugins/kernel_vmstat/
estimated_tokens: 2020
product: Telegraf Enterprise
version: v1
publisher: InfluxData
canonical: https://docs.influxdata.com/telegraf/v1/input-plugins/kernel_vmstat/
date: '2026-05-21T20:10:18+02:00'
lastmod: '2026-05-21T20:10:18+02:00'
---

==========

* Telegraf v1.0.0+

[Plugin source](https://github.com/influxdata/telegraf/tree/v1.39.1/plugins/inputs/kernel_vmstat/)[Download configuration](https://raw.githubusercontent.com/influxdata/telegraf/refs/tags/v1.39.1/plugins/inputs/kernel_vmstat/sample.conf)

# Kernel VM Statistics Input Plugin

This plugin gathers virtual memory statistics of the [Linux kernel](https://kernel.org/) by
reading `/proc/vmstat`. For a full list of available fields check the`/proc/vmstat` section of the [proc man page](http://man7.org/linux/man-pages/man5/proc.5.html) and for a detailed
description about the fields see the [vmstat man page](https://man7.org/linux/man-pages/man8/vmstat.8.html).

**Introduced in:** Telegraf v1.0.0**Tags:** system**OS support:** linux

## Global configuration options

Plugins support additional global and plugin configuration settings for tasks
such as modifying metrics, tags, and fields, creating aliases, and configuring
plugin ordering. See [CONFIGURATION.md](/telegraf/v1/configuration/#plugins) for more details.

## Configuration

```toml
# Get kernel statistics from /proc/vmstat
# This plugin ONLY supports Linux
[[inputs.kernel_vmstat]]
  # no configuration
```

## Metrics

* kernel\_vmstat
  * nr\_free\_pages (integer, `nr_free_pages`)
  * nr\_inactive\_anon (integer, `nr_inactive_anon`)
  * nr\_active\_anon (integer, `nr_active_anon`)
  * nr\_inactive\_file (integer, `nr_inactive_file`)
  * nr\_active\_file (integer, `nr_active_file`)
  * nr\_unevictable (integer, `nr_unevictable`)
  * nr\_mlock (integer, `nr_mlock`)
  * nr\_anon\_pages (integer, `nr_anon_pages`)
  * nr\_mapped (integer, `nr_mapped`)
  * nr\_file\_pages (integer, `nr_file_pages`)
  * nr\_dirty (integer, `nr_dirty`)
  * nr\_writeback (integer, `nr_writeback`)
  * nr\_slab\_reclaimable (integer, `nr_slab_reclaimable`)
  * nr\_slab\_unreclaimable (integer, `nr_slab_unreclaimable`)
  * nr\_page\_table\_pages (integer, `nr_page_table_pages`)
  * nr\_kernel\_stack (integer, `nr_kernel_stack`)
  * nr\_unstable (integer, `nr_unstable`)
  * nr\_bounce (integer, `nr_bounce`)
  * nr\_vmscan\_write (integer, `nr_vmscan_write`)
  * nr\_writeback\_temp (integer, `nr_writeback_temp`)
  * nr\_isolated\_anon (integer, `nr_isolated_anon`)
  * nr\_isolated\_file (integer, `nr_isolated_file`)
  * nr\_shmem (integer, `nr_shmem`)
  * numa\_hit (integer, `numa_hit`)
  * numa\_miss (integer, `numa_miss`)
  * numa\_foreign (integer, `numa_foreign`)
  * numa\_interleave (integer, `numa_interleave`)
  * numa\_local (integer, `numa_local`)
  * numa\_other (integer, `numa_other`)
  * nr\_anon\_transparent\_hugepages (integer, `nr_anon_transparent_hugepages`)
  * pgpgin (integer, `pgpgin`)
  * pgpgout (integer, `pgpgout`)
  * pswpin (integer, `pswpin`)
  * pswpout (integer, `pswpout`)
  * pgalloc\_dma (integer, `pgalloc_dma`)
  * pgalloc\_dma32 (integer, `pgalloc_dma32`)
  * pgalloc\_normal (integer, `pgalloc_normal`)
  * pgalloc\_movable (integer, `pgalloc_movable`)
  * pgfree (integer, `pgfree`)
  * pgactivate (integer, `pgactivate`)
  * pgdeactivate (integer, `pgdeactivate`)
  * pgfault (integer, `pgfault`)
  * pgmajfault (integer, `pgmajfault`)
  * pgrefill\_dma (integer, `pgrefill_dma`)
  * pgrefill\_dma32 (integer, `pgrefill_dma32`)
  * pgrefill\_normal (integer, `pgrefill_normal`)
  * pgrefill\_movable (integer, `pgrefill_movable`)
  * pgsteal\_dma (integer, `pgsteal_dma`)
  * pgsteal\_dma32 (integer, `pgsteal_dma32`)
  * pgsteal\_normal (integer, `pgsteal_normal`)
  * pgsteal\_movable (integer, `pgsteal_movable`)
  * pgscan\_kswapd\_dma (integer, `pgscan_kswapd_dma`)
  * pgscan\_kswapd\_dma32 (integer, `pgscan_kswapd_dma32`)
  * pgscan\_kswapd\_normal (integer, `pgscan_kswapd_normal`)
  * pgscan\_kswapd\_movable (integer, `pgscan_kswapd_movable`)
  * pgscan\_direct\_dma (integer, `pgscan_direct_dma`)
  * pgscan\_direct\_dma32 (integer, `pgscan_direct_dma32`)
  * pgscan\_direct\_normal (integer, `pgscan_direct_normal`)
  * pgscan\_direct\_movable (integer, `pgscan_direct_movable`)
  * zone\_reclaim\_failed (integer, `zone_reclaim_failed`)
  * pginodesteal (integer, `pginodesteal`)
  * slabs\_scanned (integer, `slabs_scanned`)
  * kswapd\_steal (integer, `kswapd_steal`)
  * kswapd\_inodesteal (integer, `kswapd_inodesteal`)
  * kswapd\_low\_wmark\_hit\_quickly (integer, `kswapd_low_wmark_hit_quickly`)
  * kswapd\_high\_wmark\_hit\_quickly (integer, `kswapd_high_wmark_hit_quickly`)
  * kswapd\_skip\_congestion\_wait (integer, `kswapd_skip_congestion_wait`)
  * pageoutrun (integer, `pageoutrun`)
  * allocstall (integer, `allocstall`)
  * pgrotated (integer, `pgrotated`)
  * compact\_blocks\_moved (integer, `compact_blocks_moved`)
  * compact\_pages\_moved (integer, `compact_pages_moved`)
  * compact\_pagemigrate\_failed (integer, `compact_pagemigrate_failed`)
  * compact\_stall (integer, `compact_stall`)
  * compact\_fail (integer, `compact_fail`)
  * compact\_success (integer, `compact_success`)
  * htlb\_buddy\_alloc\_success (integer, `htlb_buddy_alloc_success`)
  * htlb\_buddy\_alloc\_fail (integer, `htlb_buddy_alloc_fail`)
  * unevictable\_pgs\_culled (integer, `unevictable_pgs_culled`)
  * unevictable\_pgs\_scanned (integer, `unevictable_pgs_scanned`)
  * unevictable\_pgs\_rescued (integer, `unevictable_pgs_rescued`)
  * unevictable\_pgs\_mlocked (integer, `unevictable_pgs_mlocked`)
  * unevictable\_pgs\_munlocked (integer, `unevictable_pgs_munlocked`)
  * unevictable\_pgs\_cleared (integer, `unevictable_pgs_cleared`)
  * unevictable\_pgs\_stranded (integer, `unevictable_pgs_stranded`)
  * unevictable\_pgs\_mlockfreed (integer, `unevictable_pgs_mlockfreed`)
  * thp\_fault\_alloc (integer, `thp_fault_alloc`)
  * thp\_fault\_fallback (integer, `thp_fault_fallback`)
  * thp\_collapse\_alloc (integer, `thp_collapse_alloc`)
  * thp\_collapse\_alloc\_failed (integer, `thp_collapse_alloc_failed`)
  * thp\_split (integer, `thp_split`)

## Example Output

```text
kernel_vmstat allocstall=81496i,compact_blocks_moved=238196i,compact_fail=135220i,compact_pagemigrate_failed=0i,compact_pages_moved=6370588i,compact_stall=142092i,compact_success=6872i,htlb_buddy_alloc_fail=0i,htlb_buddy_alloc_success=0i,kswapd_high_wmark_hit_quickly=25439i,kswapd_inodesteal=29770874i,kswapd_low_wmark_hit_quickly=8756i,kswapd_skip_congestion_wait=0i,kswapd_steal=291534428i,nr_active_anon=2515657i,nr_active_file=2244914i,nr_anon_pages=1358675i,nr_anon_transparent_hugepages=2034i,nr_bounce=0i,nr_dirty=5690i,nr_file_pages=5153546i,nr_free_pages=78730i,nr_inactive_anon=426259i,nr_inactive_file=2366791i,nr_isolated_anon=0i,nr_isolated_file=0i,nr_kernel_stack=579i,nr_mapped=558821i,nr_mlock=0i,nr_page_table_pages=11115i,nr_shmem=541689i,nr_slab_reclaimable=459806i,nr_slab_unreclaimable=47859i,nr_unevictable=0i,nr_unstable=0i,nr_vmscan_write=6206i,nr_writeback=0i,nr_writeback_temp=0i,numa_foreign=0i,numa_hit=5113399878i,numa_interleave=35793i,numa_local=5113399878i,numa_miss=0i,numa_other=0i,pageoutrun=505006i,pgactivate=375664931i,pgalloc_dma=0i,pgalloc_dma32=122480220i,pgalloc_movable=0i,pgalloc_normal=5233176719i,pgdeactivate=122735906i,pgfault=8699921410i,pgfree=5359765021i,pginodesteal=9188431i,pgmajfault=122210i,pgpgin=219717626i,pgpgout=3495885510i,pgrefill_dma=0i,pgrefill_dma32=1180010i,pgrefill_movable=0i,pgrefill_normal=119866676i,pgrotated=60620i,pgscan_direct_dma=0i,pgscan_direct_dma32=12256i,pgscan_direct_movable=0i,pgscan_direct_normal=31501600i,pgscan_kswapd_dma=0i,pgscan_kswapd_dma32=4480608i,pgscan_kswapd_movable=0i,pgscan_kswapd_normal=287857984i,pgsteal_dma=0i,pgsteal_dma32=4466436i,pgsteal_movable=0i,pgsteal_normal=318463755i,pswpin=2092i,pswpout=6206i,slabs_scanned=93775616i,thp_collapse_alloc=24857i,thp_collapse_alloc_failed=102214i,thp_fault_alloc=346219i,thp_fault_fallback=895453i,thp_split=9817i,unevictable_pgs_cleared=0i,unevictable_pgs_culled=1531i,unevictable_pgs_mlocked=6988i,unevictable_pgs_mlockfreed=0i,unevictable_pgs_munlocked=6988i,unevictable_pgs_rescued=5426i,unevictable_pgs_scanned=0i,unevictable_pgs_stranded=0i,zone_reclaim_failed=0i 1459455200071462843
```
