kubelived icon indicating copy to clipboard operation
kubelived copied to clipboard

Implement Prometheus metrics

Open bsctl opened this issue 3 years ago • 2 comments

Currently, sending USR1 signal to keepalived process will dump configuration data to /tmp/keepalived.data, and sending USR2 will write statistics to /tmp/keepalived.stats inside the container.

$ kubectl -n kube-system exec kube-keepalived-master-0 -- kill -USR1 1
$ kubectl -n kube-system exec kube-keepalived-master-0 -- cat /tmp/keepalived.stats

It would be nice to have a sidecar container exposing statistics as Prometheus metrics.

bsctl avatar Jan 08 '21 18:01 bsctl

I recently stumbled upon this: https://github.com/cafebazaar/keepalived-exporter not sure if this would be feasible for this purpose.

tuxpeople avatar May 24 '21 14:05 tuxpeople

Hi @tuxpeople thanks for the suggestion but I prefer to stay away from GPL licensed code.

bsctl avatar May 24 '21 16:05 bsctl