search
数据采集 采集源配置 mem 内存指标采集

mem 内存指标采集

简介

采集 mem 指标上报到 DataFlux 中

前置条件

配置

进入 DataKit 安装目录下的 conf.d/host 目录,复制 mem.conf.sample 并命名为 mem.conf。示例如下:

设置:

# Read metrics about memory usage
[[inputs.mem]]
  # no configuration

配置好后,重启 DataKit 即可生效

采集指标

指标 描述 类型 单位 Tag
active integer - host
available integer - host
buffered integer - host
cached integer - host
free integer - host
inactive integer - host
slab integer - host
total integer - host
used integer - host
available_percent float - host
used_percent float - host
wired integer - host
commit_limit integer - host
commited_as integer - host
dirty integer - host
high_free integer - host
high_total integer - host
huge_page_size integer - host
huge_pages_free integer - host
huge_pages_total integer - host
low_free integer - host
low_total integer - host
mapped integer - host
page_tables integer - host
shared integer - host
sreclaimable integer - host
sunreclaim integer - host
swap_cached integer - host
swap_free integer - host
swap_total integer - host
vmalloc_chunk integer - host
vmalloc_total integer - host
vmalloc_used integer - host
write_back integer - host
write_back_tmp integer - host