Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b28d5f2bfe
Fetching contributors…

Cannot retrieve contributors at this time

executable file 30 lines (24 sloc) 0.713 kb
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from munin.mongodb import MuninMongoDBPlugin
class MongoDBObjectsPlugin(MuninMongoDBPlugin):
args = "--base 1000"
vlabel = "objects"
info = "Number of objects stored"
dbname_in_args = True
fields = (
('objects', dict(
label = "objects",
info = "Number of objects stored",
type = "GAUGE",
min = "0",
def title(self):
return "MongoDB objects in database %s" % self.dbname
def execute(self):
stats = self.db.command("dbstats")
return dict(objects=stats['objects'])
if __name__ == "__main__":
Jump to Line
Something went wrong with that request. Please try again.