summaryrefslogtreecommitdiffstats
path: root/pcp/Platform.h
diff options
context:
space:
mode:
authorSohaib <sohaib.amhmd@gmail.com>2021-02-22 16:45:44 +1100
committerNathan Scott <nathans@redhat.com>2021-06-09 17:09:29 +1000
commite1d1a5cec6db15c05e6b75f06e451c7ffa3fde24 (patch)
treeba5b7964703a91dbd02b966f4a4e9f90e5851ba5 /pcp/Platform.h
parent6bb59f88811763c8b7ab63a17ebccf2ca56a5410 (diff)
Add ZFS ARC statistics and meters to the PCP platform
Diffstat (limited to 'pcp/Platform.h')
-rw-r--r--pcp/Platform.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/pcp/Platform.h b/pcp/Platform.h
index c9e46b80..eb6b3f10 100644
--- a/pcp/Platform.h
+++ b/pcp/Platform.h
@@ -62,6 +62,10 @@ void Platform_setSwapValues(Meter* this);
void Platform_setZramValues(Meter* this);
+void Platform_setZfsArcValues(Meter* this);
+
+void Platform_setZfsCompressedArcValues(Meter* this);
+
char* Platform_getProcessEnv(pid_t pid);
char* Platform_getInodeFilename(pid_t pid, ino_t inode);
@@ -132,6 +136,17 @@ typedef enum Metric_ {
PCP_PSI_IOFULL, /* kernel.all.pressure.io.full.avg */
PCP_PSI_MEMSOME, /* kernel.all.pressure.memory.some.avg */
PCP_PSI_MEMFULL, /* kernel.all.pressure.memory.full.avg */
+ PCP_ZFS_ARC_ANON_SIZE, /* zfs.arc.anon_size */
+ PCP_ZFS_ARC_BONUS_SIZE, /* zfs.arc.bonus_size */
+ PCP_ZFS_ARC_COMPRESSED_SIZE, /* zfs.arc.compressed_size */
+ PCP_ZFS_ARC_UNCOMPRESSED_SIZE, /* zfs.arc.uncompressed_size */
+ PCP_ZFS_ARC_C_MAX, /* zfs.arc.c_max */
+ PCP_ZFS_ARC_DBUF_SIZE, /* zfs.arc.dbuf_size */
+ PCP_ZFS_ARC_DNODE_SIZE, /* zfs.arc.dnode_size */
+ PCP_ZFS_ARC_HDR_SIZE, /* zfs.arc.hdr_size */
+ PCP_ZFS_ARC_MFU_SIZE, /* zfs.arc.mfu_size */
+ PCP_ZFS_ARC_MRU_SIZE, /* zfs.arc.mru_size */
+ PCP_ZFS_ARC_SIZE, /* zfs.arc.size */
PCP_ZRAM_CAPACITY, /* zram.capacity */
PCP_ZRAM_ORIGINAL, /* zram.mm_stat.data_size.original */
PCP_ZRAM_COMPRESSED, /* zram.mm_stat.data_size.compressed */

© 2014-2024 Faster IT GmbH | imprint | privacy policy