From 5039e9598e71229d881b8cb2a1422d7a419e20a1 Mon Sep 17 00:00:00 2001 From: Matteo Contrini Date: Tue, 26 Jul 2016 00:35:13 +0200 Subject: [PATCH] Added 'operations_per_second' (redis) type --- src/redis.c | 1 + src/types.db | 1 + 2 files changed, 2 insertions(+) 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 -- 2.11.0