From c7ab028f787f1c3f1325f6195ea0cb2afc95ab95 Mon Sep 17 00:00:00 2001 From: Vilkov Adel Date: Tue, 9 Jul 2019 10:41:38 +0300 Subject: Add ZRAM collector module to the proc plugin The module gets the ZRAM device list by reading /proc/devices, obtaining an device ID from it, then enumerating the devices in /dev filtering them by corresponding major device number it got from previous step. It takes the data from /sys/block/{name}/mm_stat. --- Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index bc928bba87..ce9d93f5cf 100644 --- a/Makefile.am +++ b/Makefile.am @@ -278,6 +278,7 @@ PROC_PLUGIN_FILES = \ collectors/proc.plugin/proc_vmstat.c \ collectors/proc.plugin/proc_uptime.c \ collectors/proc.plugin/sys_kernel_mm_ksm.c \ + collectors/proc.plugin/sys_block_zram.c \ collectors/proc.plugin/sys_devices_system_edac_mc.c \ collectors/proc.plugin/sys_devices_system_node.c \ collectors/proc.plugin/sys_fs_btrfs.c \ -- cgit v1.2.3