Documentation ¶
Index ¶
- type KeepalivedContainerCollectorHost
- func (k *KeepalivedContainerCollectorHost) DataVrrps() (map[string]*collector.VRRPData, error)
- func (k *KeepalivedContainerCollectorHost) HasVRRPScriptStateSupport() bool
- func (k *KeepalivedContainerCollectorHost) JSONVrrps() ([]collector.VRRP, error)
- func (k *KeepalivedContainerCollectorHost) Refresh() error
- func (k *KeepalivedContainerCollectorHost) ScriptVrrps() ([]collector.VRRPScript, error)
- func (k *KeepalivedContainerCollectorHost) StatsVrrps() (map[string]*collector.VRRPStats, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeepalivedContainerCollectorHost ¶
type KeepalivedContainerCollectorHost struct { SIGJSON syscall.Signal SIGDATA syscall.Signal SIGSTATS syscall.Signal // contains filtered or unexported fields }
KeepalivedContainerCollectorHost implements Collector for when Keepalived is on container and Keepalived Exporter is on a host.
func NewKeepalivedContainerCollectorHost ¶
func NewKeepalivedContainerCollectorHost( useJSON bool, containerName, containerTmpDir, pidPath string, ) *KeepalivedContainerCollectorHost
NewKeepalivedContainerCollectorHost is creating new instance of KeepalivedContainerCollectorHost.
func (*KeepalivedContainerCollectorHost) DataVrrps ¶
func (k *KeepalivedContainerCollectorHost) DataVrrps() (map[string]*collector.VRRPData, error)
DataVrrps send SIGDATA ans parse the data.
func (*KeepalivedContainerCollectorHost) HasVRRPScriptStateSupport ¶
func (k *KeepalivedContainerCollectorHost) HasVRRPScriptStateSupport() bool
HasVRRPScriptStateSupport check if Keepalived version supports VRRP Script State in output.
func (*KeepalivedContainerCollectorHost) JSONVrrps ¶
func (k *KeepalivedContainerCollectorHost) JSONVrrps() ([]collector.VRRP, error)
JSONVrrps send SIGJSON and parse the data to the list of collector.VRRP struct.
func (*KeepalivedContainerCollectorHost) Refresh ¶ added in v1.3.2
func (k *KeepalivedContainerCollectorHost) Refresh() error
func (*KeepalivedContainerCollectorHost) ScriptVrrps ¶
func (k *KeepalivedContainerCollectorHost) ScriptVrrps() ([]collector.VRRPScript, error)
ScriptVrrps parse the script data from keepalived.data.
func (*KeepalivedContainerCollectorHost) StatsVrrps ¶
func (k *KeepalivedContainerCollectorHost) StatsVrrps() (map[string]*collector.VRRPStats, error)
StatsVrrps send SIGSTATS and parse the stats.
Click to show internal directories.
Click to hide internal directories.