thenodon / go-infoblox-exporter

GNU General Public License v3.0
0 stars 0 forks source link

possibility to scrape more grids #2

Open pbousek opened 7 months ago

pbousek commented 7 months ago

In a multi-grid environment, this plugin can only be used when running in parallel with different configurations on a different port - each process on a different port with a different GM.

If it would be possible to add the option of multiple GMs in the configuration, fo exapmle with the addition of a "grid" entry

infoblox: grid: internal master: infoblox.master.com wapi_version: 2.10.5 username: foo password: bar

grid: external master: infoblox2.master.com wapi_version: 2.10.5 username: foo password: bar

and then curl 'localhost:9597/probe?grid=internal&target=infoblox.master.com&module=member_services'

Or any other way that allows to get data from multiple grids.

Thank Petr

thenodon commented 7 months ago

Hi @pbousek It sounds like a good idea and yes it's possible, but needs development. Currently I do not see so much activite of usage on this project, and my time is currently limited. Im open to a PR if you like to give it a try.
A workaround is to spin up two exporters on different ports, one for each master.

pbousek commented 7 months ago

I understand your limitations. I 'm not programmer and I don't know go language ... Only perl, python little bit. But I will try to look at the code if I will be able to do something...

Thank you