mehdy / keepalived-exporter

Prometheus Keepalived exporter
GNU General Public License v3.0
115 stars 37 forks source link

feat: add excluded vip support #114

Closed dmachard closed 1 year ago

dmachard commented 1 year ago

This PR add a new metric keepalived_vrrp_excluded_state to follow excluded Virtual IPs as described in https://keepalived.readthedocs.io/en/latest/configuration_synopsis.html#vrrp-instance-definitions-synopsis

keepalived.data example:

------< VRRP Topology >------
 VRRP Instance = VI_IPV4
   VRRP Version = 2
   State = MASTER
   ....
   Virtual IP :
     10.0.0.2 dev ens224 scope global set
   Virtual IP Excluded :
     10.0.0.3 dev ens224 scope global set
   ...
dmachard commented 1 year ago

Any chance to have a review on it ?

dmachard commented 1 year ago

new testcases added, ready for review

dmachard commented 1 year ago

done