vsphere_exporter
vsphere_exporter copied to clipboard
vsphere_exporter never re-authenticates
Hi,
I was giving your exporter a try.
I just launched it, queried the /metrics URI via browser, and then went away for half an hour without querying it.
Once I returned, I queried the /metrics URI again, upon which is exporter exited due to authentication issues.
It seems like the exporter authenticates once, and then just reuses the client object, which is probably fine, until your vcenter goes away, your authenticated client times out (like in my case), or you run into any other issues that prevents exporter <> vcenter communication.
Would it be possible to handle this case?
Thank you
I think the easiest solution is to let systemd (or some script) restart it, when it exits