[collectd] How to monitor multiple instances of something with the same python module?

Sven Trenkel collectd at semidefinite.de
Fri Feb 20 22:41:58 CET 2015

Are you using this plugin: https://github.com/sebest/collectd-mongodb

Looking at the code, it doesn't seems to be possible to monitor more 
than one database. Which is strange, because it's implemented as an 
object, so it would be trivial to create one instance per database, but 
the config code doesn't do that. I'd suggest filing a ticket on their 
github page.

Until that's fixed you could use a bad workaround:
Create a few copies of that Python file with different names and load 
and configure every file individually. Not great, but it should work.

More information about the collectd mailing list