Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Implement Prometheus metrics #5

Open
bsctl opened this issue Jan 8, 2021 · 2 comments
Open

Implement Prometheus metrics #5

bsctl opened this issue Jan 8, 2021 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@bsctl
Copy link
Owner

bsctl commented Jan 8, 2021

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 bsctl added enhancement New feature or request help wanted Extra attention is needed labels Jan 8, 2021
@tuxpeople
Copy link
Contributor

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

@bsctl
Copy link
Owner Author

bsctl commented May 24, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants