ovnmonitor

package
v1.12.16 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExporterName

func GetExporterName() string

GetExporterName returns exporter name.

Types

type Configuration

type Configuration struct {
	ListenAddress                   string
	MetricsPath                     string
	PollTimeout                     int
	PollInterval                    int
	SystemRunDir                    string
	DatabaseVswitchName             string
	DatabaseVswitchSocketRemote     string
	DatabaseVswitchFileDataPath     string
	DatabaseVswitchFileLogPath      string
	DatabaseVswitchFilePidPath      string
	DatabaseVswitchFileSystemIDPath string
	DatabaseNorthboundName          string
	DatabaseNorthboundSocketRemote  string
	DatabaseNorthboundSocketControl string
	DatabaseNorthboundFileDataPath  string
	DatabaseNorthboundFileLogPath   string
	DatabaseNorthboundFilePidPath   string
	DatabaseNorthboundPortDefault   int
	DatabaseNorthboundPortSsl       int
	DatabaseNorthboundPortRaft      int
	DatabaseSouthboundName          string
	DatabaseSouthboundSocketRemote  string
	DatabaseSouthboundSocketControl string
	DatabaseSouthboundFileDataPath  string
	DatabaseSouthboundFileLogPath   string
	DatabaseSouthboundFilePidPath   string
	DatabaseSouthboundPortDefault   int
	DatabaseSouthboundPortSsl       int
	DatabaseSouthboundPortRaft      int
	ServiceVswitchdFileLogPath      string
	ServiceVswitchdFilePidPath      string
	ServiceNorthdFileLogPath        string
	ServiceNorthdFilePidPath        string
	EnableMetrics                   bool
}

Configuration contains parameters information.

func ParseFlags

func ParseFlags() (*Configuration, error)

ParseFlags get parameters information.

type Exporter

type Exporter struct {
	sync.RWMutex
	Client *ovsdb.OvnClient
	// contains filtered or unexported fields
}

Exporter collects OVN data from the given server and exports them using the prometheus metrics package.

func NewExporter

func NewExporter(cfg *Configuration) *Exporter

NewExporter returns an initialized Exporter.

func (*Exporter) IncrementErrorCounter

func (e *Exporter) IncrementErrorCounter()

IncrementErrorCounter increases the counter of failed queries to OVN server.

func (*Exporter) StartConnection

func (e *Exporter) StartConnection() error

StartConnection connect to database socket

func (*Exporter) StartOvnMetrics

func (e *Exporter) StartOvnMetrics()

StartOvnMetrics register and start to update ovn metrics

func (*Exporter) TryClientConnection

func (e *Exporter) TryClientConnection()

TryClientConnection try to connect to database socket after init exporter

type OVNDBClusterStatus

type OVNDBClusterStatus struct {
	// contains filtered or unexported fields
}

OVNDBClusterStatus contains information about a cluster.

Jump to

Keyboard shortcuts

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