vsphere_exporter icon indicating copy to clipboard operation
vsphere_exporter copied to clipboard

vsphere_exporter never re-authenticates

Open lubyou opened this issue 7 years ago • 1 comments

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

lubyou avatar Aug 04 '17 10:08 lubyou

I think the easiest solution is to let systemd (or some script) restart it, when it exits

doppelgrau avatar Apr 11 '18 19:04 doppelgrau