Open wstranger opened 7 years ago
Can you quickly give a run down on why the multiple collector core code doesn't work for this? Thanks!
I didn't find any suitable implementation in core and use pgbouncer collector code as reference.
Hrm. I can't find it documented in the docs :(
Basically, core allows you to spin up multiple instances of any collector via multiple config files of the pattern
/etc/diamond/collectors/ExampleCollector - foobar.conf
. Every individual config file will be a entirely independent collector process and can be configured as such.
Ok. At the doc http://diamond.readthedocs.io/en/latest/Getting-Started/Configuration/ - we can see next -
The configuration file name should match the name of the diamond collector class.
Hrm. Nothing about wildcards. Slony, Redis, Elastic, pgbouncer collectors use same way as this one. We are planning to use diamond in docker environment and I'm afraid it is not convenient to manage over 100 configuration files. Thank you.
PR LGTM now However, i will defer to @kormoc on merging or not
Add multihost support for PostgreSQL collector