Skip to content

collectors MongoDBCollector

Rob Smith edited this page Jan 31, 2013 · 21 revisions

MongoDBCollector

Collects all number values from the db.serverStatus() command, other values are ignored.

Dependencies

  • pymongo

Options - Generic Options

Setting Default Description Type
byte_unit byte Default numeric output(s) str
databases .* A regex of which databases to gather metrics for. Defaults to all databases. str
enabled False Enable collecting these metrics bool
host localhost Hostname str
measure_collector_time False Collect the collector run time in ms bool

Example Output

servers.hostname.mongo.db_keys.db_nested_key 1
servers.hostname.mongo.dbkey 2
Clone this wiki locally