Prometheus Node_exporter 之 Memory Detail Meminfo /proc/meminfo

1. Memory Active / Inactive

type: Graph
Unit: bytes
Label: Bytes
Inactive - 最近使用较少的内存, 优先被回收利用 /proc/meminfo Inactive

metrics:

node_memory_Inactive_bytes{instance=~"$node:$port",job=~"$job"}

Active - 最近被频繁使用的内存,除非绝对必要,否则通常不会回收 /proc/meminfo Active

metrics:

node_memory_Active_bytes{instance=~"$node:$port",job=~"$job"}

2. Memory Commited

type: Graph
Unit: bytes
Label: Bytes
Committed_AS - 当前系统已经分配的内存量,包括已分配但尚未使用的内存大小 /proc/meminfo Committed_AS

metrics:

node_memory_Committed_AS_bytes{instance=~"$node:$port",job=~"$job"}

CommitLimit - 当前系统可分配的内存量 /proc/meminfo CommitLimit

metrics:

node_memory_CommitLimit_bytes{instance=~"$node:$port",job=~"$job"}

3. Memory Active / Inactive Detail

type: Graph
Unit: bytes
Label: Bytes
Inactive_file - LRU list 上长时间未被访问过的与文件对应的内存页 /proc/meminfo LRU_INACTIVE_FILE

metrics:

node_memory_Inactive_file_bytes{instance=~"$node:$port",job=~"$job"}

Inactive_anon - 上长时间未被访问过的匿名页和交换区缓存(包括 tmpfs) /proc/meminfo LRU_INACTIVE_ANON

metrics:

node_memory_Inactive_anon_bytes{instance=~"$node:$port",job=~"$job"}

Active_file - LRU list 最近被访问过的与文件对应的内存页 /proc/meminfo LRU_ACTIVE_FILE

metrics:

node_memory_Active_file_bytes{instance=~"$node:$port",job=~"$job"}

Active_anon - 最近被访问过的匿名页和交换区缓存(包括 tmpfs) /proc/meminfo LRU_ACTIVE_ANON

metrics:

node_memory_Active_anon_bytes{instance=~"$node:$port",job=~"$job"}

4. Memory Writeback and Dirty

type: Graph
Unit: bytes
Label: Bytes
Writeback - 正准备主动回写硬盘的缓存页 /proc/meminfo Writeback

metrics:

node_memory_Writeback_bytes{instance=~"$node:$port",job=~"$job"}

WritebackTmp - FUSE用于临时写回缓冲区的内存 /proc/meminfo WritebackTmp

metrics:

node_memory_WritebackTmp_bytes{instance=~"$node:$port",job=~"$job"}

Dirty - 需要写回磁盘的数据大小 /proc/meminfo Dirty

metrics:

node_memory_Dirty_bytes{instance=~"$node:$port",job=~"$job"}

5. Memory Shared and Mapped

type: Graph
Unit: bytes
Label: Bytes
Mapped - mapped 缓存页占用的内存 /proc/meminfo Mapped

metrics:

node_memory_Mapped_bytes{instance=~"$node:$port",job=~"$job"}

Shmem - 共享内存 /proc/meminfo Shared

metrics:

node_memory_Shmem_bytes{instance=~"$node:$port",job=~"$job"}

6. Memory Slab

type: Graph
Unit: bytes
Label: Bytes
SUnreclaim - 通过slab分配的内存中不可回收的部分 /proc/meminfo SUnreclaim

metrics:

node_memory_SUnreclaim_bytes{instance=~"$node:$port",job=~"$job"}

SReclaimable - 通过slab分配的内存中可回收的部分 /proc/meminfo SReclaimable

metrics:

node_memory_SReclaimable_bytes{instance=~"$node:$port",job=~"$job"}

7. Memory Vmalloc

type: Graph
Unit: bytes
Label: Bytes
VmallocChunk - vmalloc 可分配的最大的逻辑连续的内存大小 /proc/meminfo VmallocChunk

metrics:

node_memory_VmallocChunk_bytes{instance=~"$node:$port",job=~"$job"}

VmallocTotal - vmalloc 可使用的总内存大小 /proc/meminfo VmallocTotal

metrics:

node_memory_VmallocTotal_bytes{instance=~"$node:$port",job=~"$job"}

VmallocUsed - vmalloc 已用的总内存大小 /proc/meminfo VmallocUsed

metrics:

node_memory_VmallocUsed_bytes{instance=~"$node:$port",job=~"$job"}

8. Memory Bounce /proc/meminfo Bounce

type: Graph
Unit: bytes
Label: Bytes
Bounce - bounce buffers 占用的内存

metrics:

node_memory_Bounce_bytes{instance=~"$node:$port",job=~"$job"}

9. Memory Anonymous

type: Graph
Unit: bytes
Label: Bytes
AnonHugePages - AnonHugePages 占用的内存大小 /proc/meminfo AnonHugePages

metrics:

node_memory_AnonHugePages_bytes{instance=~"$node:$port",job=~"$job"}

AnonPages - 用户进程中匿名内存页大小 /proc/meminfo AnonPages

metrics:

node_memory_AnonPages_bytes{instance=~"$node:$port",job=~"$job"}

10. Memory Kernel /proc/meminfo KernelStack

type: Graph
Unit: bytes
Label: Bytes
KernelStack - 内核栈大小(常驻内存,不可回收)

metrics:

node_memory_KernelStack_bytes{instance=~"$node:$port",job=~"$job"}

11. Memory HugePages Counter

type: Graph
Unit: short
Label: Pages
HugePages_Free - 系统当前总共拥有的空闲 HugePages 数目 /proc/meminfo HugePages_Free

metrics:

node_memory_HugePages_Free{instance=~"$node:$port",job=~"$job"}

HugePages_Rsvd - 系统当前总共保留的HugePages数目,更具体点就是指程序已经向系统申请,但是由于程序还没有实质的HugePages读写操作,因此系统尚未实际分配给程序的HugePages数目 /proc/meminfo HugePages_Rsvd

metrics:

node_memory_HugePages_Rsvd{instance=~"$node:$port",job=~"$job"}

HugePages_Surp - 指超过系统设定的常驻HugePages数目的数目 /proc/meminfo HugePages_Surp

metrics:

node_memory_HugePages_Surp{instance=~"$node:$port",job=~"$job"}

12. Memory HugePages Size

type: Graph
Unit: bytes
Label: Bytes
HugePages - 系统当前总共拥有的HugePages数目 /proc/meminfo HugePages

metrics:

node_memory_HugePages_Total{instance=~"$node:$port",job=~"$job"}

Hugepagesize - 每一页 HugePages 的大小 /proc/meminfo Hugepagesize

metrics:

node_memory_Hugepagesize_bytes{instance=~"$node:$port",job=~"$job"}

13. Memory DirectMap /proc/meminfo DirectMap

type: Graph
Unit: bytes
Label: Bytes
DirectMap1G - 映射为 1G 的内存页的内存数量

metrics:

node_memory_DirectMap1G{instance=~"$node:$port",job=~"$job"}

DirectMap2M - 映射为 2M 的内存页的内存数量

metrics:

node_memory_DirectMap2M_bytes{instance=~"$node:$port",job=~"$job"}

DirectMap4K - 映射为 4kB 的内存页的内存数量

metrics:

node_memory_DirectMap4k_bytes{instance=~"$node:$port",job=~"$job"}

14. Memory Unevictable and MLocked

type: Graph
Unit: bytes
Label: Bytes
Unevictable - 不可被回收的内存 /proc/meminfo Unevictable

metrics:

node_memory_Unevictable_bytes{instance=~"$node:$port",job=~"$job"}

MLocked - 被mlock()系统调用锁定的内存大小 /proc/meminfo MLocked

metrics:

node_memory_Mlocked_bytes{instance=~"$node:$port",job=~"$job"}

15. Memory NFS /proc/meminfo NFS_Unstable

type: Graph
Unit: bytes
Label: Bytes
NFS Unstable - 发给NFS server但尚未写入硬盘的缓存页

metrics:

node_memory_NFS_Unstable_bytes{instance=~"$node:$port",job=~"$job"}

原文地址:https://www.cnblogs.com/qianyuliang/p/10479632.html

时间: 2024-09-30 10:52:31

Prometheus Node_exporter 之 Memory Detail Meminfo /proc/meminfo的相关文章

/proc/meminfo分析

参考: 1. linux/Documentation/filesystems/proc.txt 2. Linux 中 /proc/meminfo 的含义 分析文件信息最权威的就是linux自带的文档,Documentation/filesystems/proc.txt较详细地介绍了proc内容. meminfo: Provides information about distribution and utilization of memory.  This varies by architect

Android中proc/meminfo的详解(原)

今天在写到获取手机可用内存空间的总大小的时候,通过下面的方法去获取的时候,发现该方法最低支持的版本是16,这显然是不可取的. 1 public static long getTotalSpace(Context ctx) { 2 //1.创建ActivityManager对象 3 ActivityManager am = (ActivityManager) 4 ctx.getSystemService(Context.ACTIVITY_SERVICE); 5 //2 获取封装内存信息的对象 6

/proc/meminfo详解

/proc/meminfo Explained "Free," "buffer," "swap," "dirty." What does it all mean? If you said, "something to do with the Summer of '68", you may need a primer on 'meminfo'. The entries in the /proc/meminfo

linux /proc/meminfo 文件分析(转载)

cat /proc/meminfo    读出的内核信息进行解释, 下篇文章会简单对读出该信息的代码进行简单的分析. # cat /proc/meminfo MemTotal:     16438852 kB MemFree:      10980184 kB Buffers:         95884 kB Cached:         224108 kB SwapCached:          0 kB Active:        5161616 kB Inactive:      

/proc/meminfo详解 = /nmon analysis --MEM

memtotal hightotal lowtotal swaptotal memfree highfree lowfree swapfree memshared cached active bigfree buffers swapcached inactive /proc/meminfo详细 (2010-10-13 04:10:22) 转载▼ 标签: 杂谈 分类: linux $cat /proc/meminfo MemTotal:        2052440 kB //总内存 MemFre

/proc/meminfo分析(一)

本文主要分析/proc/meminfo文件的各种输出信息的具体含义. 一.MemTotal MemTotal对应当前系统中可以使用的物理内存. 这个域实际是对应内核中的totalram_pages这个全局变量的,定义如下: unsigned long totalram_pages __read_mostly; 该变量表示当前系统中Linux内核可以管理的所有的page frame的数量.注意:这个值并不是系统配置的内存总数,而是指操作系统可以管理的内存总数. 内核是如何得到totalram_pa

/proc/meminfo中meminfo的计算方法

/proc/meminfo里的可使用内存的计算没有那么简单,并不是简单的free和page cache的加和 free + pagecache 以此为基准 但是需要减去一些内存:首先要减去系统预留的内存reserved memorys,还有一部分是page cache也不能全部回收,需要保留一般的page cache,或者需要减去每一个zone的low memory的值综合: 还有要减掉slab相关的内存,也是减少掉一半. 每个zone的low memory是怎么计算出来的? 原文地址:http

Interpreting /proc/meminfo and free output for Red Hat Enterprise Linux 5, 6 and 7

Interpreting /proc/meminfo and free output for Red Hat Enterprise Linux 5, 6 and 7 Solution Verified - UpdatedOctober 2 2018 at 6:35 AM - https://access.redhat.com/solutions/406773 Environment Red Hat Enterprise Linux (RHEL) 5 Red Hat Enterprise Linu

Prometheus Node_exporter 之 CPU Memory Net Disk

1. CPU type: GraphUnit: shortmax: "100"min: "0"Label: PercentageSystem - cpu 在内核模式下执行的进程占比 metrics: sum by (mode)(irate(node_cpu_seconds_total{mode="system",instance=~"$node:$port",job=~"$job"}[5m])) * 100