gen2brain / keepalived_exporter

Keepalived Prometheus Exporter
Apache License 2.0
46 stars 14 forks source link

How to deploy to legacy keepalived? #1

Closed liuzhen closed 5 years ago

liuzhen commented 5 years ago

We have multiple instance in our prod, and not built with any extra flags. Any workaround?

gen2brain commented 5 years ago

No workaround currently. It is possible to add an option for the exporter, to send a different SIGNAL to KA, and then to add functions to parse some text files instead of decoding JSON.

I do not need that, so not sure when will I find time to add such option.

gen2brain commented 5 years ago

Text files parsing is implemented in https://github.com/gen2brain/keepalived_exporter/commit/a8b3e1304623dbc2b52baf7d63d1fef0faab680f and that is default now. JSON can be enabled with the -ka.json option.

Let me know how it works and if there are issues.

liuzhen commented 5 years ago

Great.