Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 SecureServing bool }
Configuration contains 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 ¶
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.
Click to show internal directories.
Click to hide internal directories.