container

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

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

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

JSONVrrps send SIGJSON and parse the data to the list of collector.VRRP struct.

func (*KeepalivedContainerCollectorHost) Refresh added in v1.3.2

func (*KeepalivedContainerCollectorHost) ScriptVrrps

ScriptVrrps parse the script data from keepalived.data.

func (*KeepalivedContainerCollectorHost) StatsVrrps

StatsVrrps send SIGSTATS and parse the stats.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL