summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e906ccd)
raw | patch | inline | side by side (parent: e906ccd)
author | Matteo Contrini <m.contrini@gmail.com> | |
Mon, 25 Jul 2016 22:35:13 +0000 (00:35 +0200) | ||
committer | Matteo Contrini <m.contrini@gmail.com> | |
Mon, 25 Jul 2016 22:35:13 +0000 (00:35 +0200) |
src/redis.c | patch | blob | history | |
src/types.db | patch | blob | history |
diff --git a/src/redis.c b/src/redis.c
index 0814126cffab4a466e69b2993bfd519d0bbf7a7f..2d0bd958db9588843155d10dab7bfcf10ddc12e4 100644 (file)
--- a/src/redis.c
+++ b/src/redis.c
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 77a9d06f68e02a0eb86e140824f902d1872c1e34..8c6a99560a4f51cb8a3972463f5975b0439deb17 100644 (file)
--- a/src/types.db
+++ b/src/types.db
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