Documentation
¶
Index ¶
Constants ¶
View Source
const ( SIGRTMIN = syscall.Signal(32) SIGJSON = SIGRTMIN + 4 )
Signals.
View Source
const ( Init = iota Backup Master Fault )
States.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct {
Iname string `json:"iname"`
IfpIfname string `json:"ifp_ifname"`
LastTransition float64 `json:"last_transition"`
Vrid int `json:"vrid"`
State int `json:"state"`
Wantstate int `json:"wantstate"`
}
Data type.
type KeepalivedCollector ¶
type KeepalivedCollector struct {
// contains filtered or unexported fields
}
KeepalivedCollector type.
func NewKeepalivedCollector ¶
func NewKeepalivedCollector(useJSON bool, logger log.Logger) (*KeepalivedCollector, error)
NewKeepalivedCollector creates an KACollector.
func (*KeepalivedCollector) Collect ¶
func (k *KeepalivedCollector) Collect(ch chan<- prometheus.Metric)
Collect fetches metrics from and sends them to the provided channel.
func (*KeepalivedCollector) Describe ¶
func (k *KeepalivedCollector) Describe(ch chan<- *prometheus.Desc)
Describe outputs metrics descriptions.
type Stats ¶
type Stats struct {
AdvertRcvd int `json:"advert_rcvd"`
AdvertSent int `json:"advert_sent"`
BecomeMaster int `json:"become_master"`
ReleaseMaster int `json:"release_master"`
PacketLenErr int `json:"packet_len_err"`
AdvertIntervalErr int `json:"advert_interval_err"`
IPTTLErr int `json:"ip_ttl_err"`
InvalidTypeRcvd int `json:"invalid_type_rcvd"`
AddrListErr int `json:"addr_list_err"`
InvalidAuthtype int `json:"invalid_authtype"`
AuthtypeMismatch int `json:"authtype_mismatch"`
AuthFailure int `json:"auth_failure"`
PriZeroRcvd int `json:"pri_zero_rcvd"`
PriZeroSent int `json:"pri_zero_sent"`
}
Stats type.
Click to show internal directories.
Click to hide internal directories.