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"}


node

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"}


app

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"}


spa

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"}


server

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"}


it

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"}


table

10. Memory Kernel /proc/meminfo KernelStack



type: Graph
Unit: bytes
Label: Bytes
KernelStack - 內核棧大小(常駐內存,不可回收)

metrics:

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


sed

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"}

相關文章
相關標籤/搜索