limit what data is collected via the config#33
Conversation
|
I fix conflicts in vmware_exporter.py after #34 in https://github.com/Teriand/vmware_exporter/commits/master |
|
Thanks - it's been on my TODO list; either I can merge your changes into my branch & update this PR (I think), or I can close this out & you can open a new PR (I'd include my changes to the README.md and the sample config). |
|
I've merged your changes @Teriand, thanks. |
|
@rverchere any feedback on this? It's backwards compatible with existing configs. |
vmware_exporter/vmware_exporter.py
Outdated
There was a problem hiding this comment.
I think there is a mistake here (duplicates)
There was a problem hiding this comment.
It thing mistake after merge.
In my fork another 183 line.
| return collect_subsystems | ||
|
|
||
|
|
||
| def _collect_subsystems(self, section, valid_subsystems): |
There was a problem hiding this comment.
I think there is a mistake here (duplicates)
There was a problem hiding this comment.
def _collect_subsystems
228 -248 string in fork.. strange merge.
There was a problem hiding this comment.
Probably a bad merge by me, let me take a peek
There was a problem hiding this comment.
Yikes, yeah, I'm gonna say bad merge; let me clean that up
|
Updated to remove duplicate code - tests out OK on my end. |
I've got the same issue as #27 - we're way too large to gather all the VM info in a timely fashion.
Added support for an optional
collect_onlysetting for the config, which will limit collecting to any combination of 'vms', 'datastores' and/or 'hosts'. Will fall-back to collecting everything if nocollect_onlyspecified or if it's not valid.