diff --git a/mongodb.py b/mongodb.py index afd77ad..259be45 100644 --- a/mongodb.py +++ b/mongodb.py @@ -184,7 +184,7 @@ def do_server_status(self): if 'mem' in server_status: for t in ['resident', 'virtual', 'mapped']: mem_metric = server_status['mem'].get(t) - if mem_metric: + if mem_metric is not None: self.submit('gauge', 'mem.' + t, mem_metric) # network