Closed kodachimaru closed 1 year ago
You can see here how to enable CAP capabilities https://github.com/gen2brain/keepalived_exporter/issues/5#issuecomment-579293035 instead of running as root. The exporter is not doing insmod
, KA is doing it.
The perfect combination is to not run Keepalived as root, that is first, run as some user as in that comment, and run exporter as the same user.
Will do that. Thx for the quick answer.
If I run it as a non root user, I get this error
And the only metric returned is
If I run it as "root" instead, the exporter works just fine. But obviously I don't wanna run it as root...
I think that the exporter should not try to use "insmod", maybe just log the missing module and exit. Whoever is installing the exporter will ensure that the required module is present before running it.