Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVersionBuildContext ¶
func GetVersionBuildContext() string
GetVersionBuildContext returns exporter build context.
Types ¶
type Exporter ¶
type Exporter struct { sync.RWMutex Client *ovsdb.OvsClient // contains filtered or unexported fields }
Exporter collects OVN data from the given server and exports them using the prometheus metrics package.
func NewExporter ¶
NewExporter returns an initialized Exporter.
func (*Exporter) Collect ¶
func (e *Exporter) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector.
func (*Exporter) Describe ¶
func (e *Exporter) Describe(ch chan<- *prometheus.Desc)
Describe describes all the metrics ever exported by the OVN exporter. It implements prometheus.Collector.
func (*Exporter) GatherMetrics ¶
func (e *Exporter) GatherMetrics()
GatherMetrics collect data from OVN server and stores them as Prometheus metrics.
func (*Exporter) IncrementErrorCounter ¶
func (e *Exporter) IncrementErrorCounter()
IncrementErrorCounter increases the counter of failed queries to OVN server.
func (*Exporter) SetPollInterval ¶
SetPollInterval sets exporter's polling interval.
Click to show internal directories.
Click to hide internal directories.