diff --git a/redis_info.py b/redis_info.py index f94f7a5..d41876c 100644 --- a/redis_info.py +++ b/redis_info.py @@ -116,7 +116,11 @@ def dispatch_info(self, client): 'counter', type_instance='commands_processed') else: - self.dispatch_value(info[key], mtype, type_instance=key) + try: + self.dispatch_value(info[key], mtype, type_instance=key) + except KeyError: + collectd.error("Metric %s not found in Redis INFO output" % key) + continue def dispatch_list_lengths(self, client): """