Code

Added 'operations_per_second' (redis) type
authorMatteo Contrini <m.contrini@gmail.com>
Mon, 25 Jul 2016 22:35:13 +0000 (00:35 +0200)
committerMatteo Contrini <m.contrini@gmail.com>
Mon, 25 Jul 2016 22:35:13 +0000 (00:35 +0200)
src/redis.c
src/types.db

index 0814126cffab4a466e69b2993bfd519d0bbf7a7f..2d0bd958db9588843155d10dab7bfcf10ddc12e4 100644 (file)
@@ -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);
index 77a9d06f68e02a0eb86e140824f902d1872c1e34..8c6a99560a4f51cb8a3972463f5975b0439deb17 100644 (file)
@@ -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