From: Matteo Contrini Date: Mon, 25 Jul 2016 22:35:13 +0000 (+0200) Subject: Added 'operations_per_second' (redis) type X-Git-Tag: collectd-5.6.0~150^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5039e9598e71229d881b8cb2a1422d7a419e20a1;p=collectd.git Added 'operations_per_second' (redis) type --- diff --git a/src/redis.c b/src/redis.c index 0814126c..2d0bd958 100644 --- a/src/redis.c +++ b/src/redis.c @@ -430,6 +430,7 @@ static int redis_read (void) /* {{{ */ redis_handle_info (rn->name, rr->str, "volatile_changes", NULL, "changes_since_last_save", DS_TYPE_GAUGE); redis_handle_info (rn->name, rr->str, "total_connections", NULL, "total_connections_received", DS_TYPE_DERIVE); redis_handle_info (rn->name, rr->str, "total_operations", NULL, "total_commands_processed", DS_TYPE_DERIVE); + redis_handle_info (rn->name, rr->str, "operations_per_second", NULL, "instantaneous_ops_per_sec", DS_TYPE_GAUGE); redis_handle_info (rn->name, rr->str, "expired_keys", NULL, "expired_keys", DS_TYPE_DERIVE); redis_handle_info (rn->name, rr->str, "evicted_keys", NULL, "evicted_keys", DS_TYPE_DERIVE); redis_handle_info (rn->name, rr->str, "pubsub", "channels", "pubsub_channels", DS_TYPE_GAUGE); diff --git a/src/types.db b/src/types.db index 77a9d06f..8c6a9956 100644 --- a/src/types.db +++ b/src/types.db @@ -150,6 +150,7 @@ node_stat value:DERIVE:0:U node_tx_rate value:GAUGE:0:127 objects value:GAUGE:0:U operations value:DERIVE:0:U +operations_per_second value:GAUGE:0:U packets value:DERIVE:0:U pending_operations value:GAUGE:0:U percent value:GAUGE:0:100.1