From: Florian Forster Date: Thu, 11 Nov 2010 11:35:36 +0000 (+0100) Subject: zfs_arc plugin: Change the order of type instance "fields" for the "cache_result... X-Git-Tag: collectd-5.0.0-beta0~22 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ec4db8654b7c65674dcd441a1fa8e7d20a45b913;p=collectd.git zfs_arc plugin: Change the order of type instance "fields" for the "cache_result" type. --- diff --git a/src/zfs_arc.c b/src/zfs_arc.c index 63957f6d..bc2b0d2b 100644 --- a/src/zfs_arc.c +++ b/src/zfs_arc.c @@ -114,15 +114,15 @@ static int za_read (void) prefetch_data_misses = get_kstat_value(ksp, "prefetch_data_misses"); prefetch_metadata_misses = get_kstat_value(ksp, "prefetch_metadata_misses"); - za_submit_derive ("cache_result", "hit-demand_data", demand_data_hits); - za_submit_derive ("cache_result", "hit-demand_metadata", demand_metadata_hits); - za_submit_derive ("cache_result", "hit-prefetch_data", prefetch_data_hits); - za_submit_derive ("cache_result", "hit-prefetch_metadata", prefetch_metadata_hits); - - za_submit_derive ("cache_result", "miss-demand_data", demand_data_misses); - za_submit_derive ("cache_result", "miss-demand_metadata", demand_metadata_misses); - za_submit_derive ("cache_result", "miss-prefetch_data", prefetch_data_misses); - za_submit_derive ("cache_result", "miss-prefetch_metadata", prefetch_metadata_misses); + za_submit_derive ("cache_result", "demand_data-hit", demand_data_hits); + za_submit_derive ("cache_result", "demand_metadata-hit", demand_metadata_hits); + za_submit_derive ("cache_result", "prefetch_data-hit", prefetch_data_hits); + za_submit_derive ("cache_result", "prefetch_metadata-hit", prefetch_metadata_hits); + + za_submit_derive ("cache_result", "demand_data-miss", demand_data_misses); + za_submit_derive ("cache_result", "demand_metadata-miss", demand_metadata_misses); + za_submit_derive ("cache_result", "prefetch_data-miss", prefetch_data_misses); + za_submit_derive ("cache_result", "prefetch_metadata-miss", prefetch_metadata_misses); /* Ratios */ arc_hits = (gauge_t) get_kstat_value(ksp, "hits");