From: Ruben Kerkhof Date: Wed, 27 Apr 2016 12:01:58 +0000 (+0200) Subject: zfs_arc plugin: get more MRU/MFU stats X-Git-Tag: collectd-5.6.0~301^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=61635f3;p=collectd.git zfs_arc plugin: get more MRU/MFU stats --- diff --git a/src/zfs_arc.c b/src/zfs_arc.c index 4204a7e7..37a918b5 100644 --- a/src/zfs_arc.c +++ b/src/zfs_arc.c @@ -320,6 +320,11 @@ static int za_read (void) za_read_derive (ksp, "demand_metadata_misses", "cache_result", "demand_metadata-miss"); za_read_derive (ksp, "prefetch_data_misses", "cache_result", "prefetch_data-miss"); za_read_derive (ksp, "prefetch_metadata_misses", "cache_result", "prefetch_metadata-miss"); + za_read_derive (ksp, "mfu_hits", "cache_result", "mfu-hit"); + za_read_derive (ksp, "mfu_ghost_hits", "cache_result", "mfu_ghost-hit"); + za_read_derive (ksp, "mru_hits", "cache_result", "mru-hit"); + za_read_derive (ksp, "mru_ghost_hits", "cache_result", "mru_ghost-hit"); + za_read_derive (ksp, "prefetch_metadata_misses", "cache_result", "prefetch_metadata-miss"); /* Ratios */ arc_hits = (gauge_t) get_zfs_value(ksp, "hits");