Versions in this module Expand all Collapse all v1 v1.4.0 Sep 14, 2024 v1.3.3 May 1, 2024 v1.3.2 Aug 3, 2023 Changes in this version type Collector + Refresh func() error v1.3.1 Jul 24, 2023 Changes in this version type VRRPData + ExcludedVIPs []string v1.3.0 Apr 2, 2023 Changes in this version + var VRRPScriptStates = []string + var VRRPScriptStatuses = []string + var VRRPStates = []string + func ParseStats(i io.Reader) (map[string]*VRRPStats, error) + func ParseVIP(vip string) (string, string, bool) + func ParseVRRPData(i io.Reader) (map[string]*VRRPData, error) + type Collector interface + DataVrrps func() (map[string]*VRRPData, error) + HasVRRPScriptStateSupport func() bool + JSONVrrps func() ([]VRRP, error) + ScriptVrrps func() ([]VRRPScript, error) + StatsVrrps func() (map[string]*VRRPStats, error) + type KeepalivedCollector struct + func NewKeepalivedCollector(useJSON bool, scriptPath string, collector Collector) *KeepalivedCollector + func (k *KeepalivedCollector) Collect(ch chan<- prometheus.Metric) + func (k *KeepalivedCollector) Describe(ch chan<- *prometheus.Desc) + type KeepalivedStats struct + Scripts []VRRPScript + VRRPs []VRRP + type VRRP struct + Data VRRPData + Stats VRRPStats + func ParseJSON(i io.Reader) ([]VRRP, error) + type VRRPData struct + GArpDelay int + IName string + Intf string + State int + VIPs []string + VRID int + WantState int + type VRRPScript struct + Name string + State string + Status string + func ParseVRRPScript(i io.Reader) []VRRPScript + type VRRPStats struct + AddrListErr int + AdvertIntervalErr int + AdvertRcvd int + AdvertSent int + AuthFailure int + AuthTypeMismatch int + BecomeMaster int + IPTTLErr int + InvalidAuthType int + InvalidTypeRcvd int + PRIZeroRcvd int + PRIZeroSent int + PacketLenErr int + ReleaseMaster int