summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6bbdc6d)
raw | patch | inline | side by side (parent: 6bbdc6d)
author | Florian Forster <octo@collectd.org> | |
Tue, 20 Mar 2012 21:39:39 +0000 (22:39 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Tue, 20 Mar 2012 21:39:39 +0000 (22:39 +0100) |
src/types.db | patch | blob | history | |
src/zfs_arc.c | patch | blob | history |
diff --git a/src/types.db b/src/types.db
index d818b937a4f49ca1254c1db40a29354698ff2f70..4d3951b1e4e0d47a5450c597b244674e608110b2 100644 (file)
--- a/src/types.db
+++ b/src/types.db
memcached_ops value:DERIVE:0:U
memory value:GAUGE:0:281474976710656
multimeter value:GAUGE:U:U
-mutex mutex_miss:COUNTER:0:U
+mutex_operations value:DERIVE:0:U
mysql_commands value:DERIVE:0:U
mysql_handler value:DERIVE:0:U
mysql_locks value:DERIVE:0:U
diff --git a/src/zfs_arc.c b/src/zfs_arc.c
index 8b4c788562ba4c759bb897102836283e6fab409e..12f32866b82355dc9d43cb2f251661fb532bd50c 100644 (file)
--- a/src/zfs_arc.c
+++ b/src/zfs_arc.c
za_submit_gauge ("cache_ratio", type_instance, ratio);
}
-static void za_submit_mutex_counts (derive_t mutex_miss)
-{
- value_t values[1];
-
- values[0].counter = mutex_miss;
-
- za_submit ("mutex", "counts", values, STATIC_ARRAY_SIZE(values));
-}
-
static void za_submit_deleted_counts (derive_t deleted)
{
value_t values[1];
za_submit_gauge ("cache_size", "arc", arc_size);
za_submit_gauge ("cache_size", "L2", l2_size);
- mutex_miss = get_kstat_value(ksp, "mutex_miss");
+ mutex_miss = get_kstat_value (ksp, "mutex_miss");
+ za_submit_derive ("mutex_operation", "miss", mutex_miss);
deleted = get_kstat_value(ksp, "deleted");
za_submit ("io_octets", "L2", l2_io, /* num values = */ 2);
- za_submit_mutex_counts (mutex_miss);
-
za_submit_deleted_counts (deleted);
za_submit_hash_counts (deleted);