metrics

package
v0.0.0-...-830b495 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: BSD-3-Clause, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecEventGauge

func DecEventGauge(gauge *prometheus.GaugeVec)

DecEventGauge will decrement a gauge and set appropriate labels.

func IncEventCounter

func IncEventCounter(counter *prometheus.CounterVec)

IncEventCounter will increment a counter and set appropriate labels.

func IncEventGauge

func IncEventGauge(gauge *prometheus.GaugeVec)

IncEventGauge will increment a gauge and set appropriate labels.

func IncStatusCounter

func IncStatusCounter(counter *prometheus.CounterVec, status innodb.InstanceStatus)

IncStatusCounter will increment a counter and set appropriate labels.

func NewAgentEventCounter

func NewAgentEventCounter(name string, help string) *prometheus.CounterVec

NewAgentEventCounter will build a new prometheus.CounterVec.

func NewAgentStatusCounter

func NewAgentStatusCounter(name string, help string) *prometheus.CounterVec

NewAgentStatusCounter will build a new prometheus.CounterVec.

func NewOperatorEventCounter

func NewOperatorEventCounter(name string, help string) *prometheus.CounterVec

NewOperatorEventCounter will build a new prometheus.CounterVec.

func NewOperatorEventGauge

func NewOperatorEventGauge(name string, help string) *prometheus.GaugeVec

NewOperatorEventGauge will build a new prometheus.GaugeVec.

func RegisterAgentMetric

func RegisterAgentMetric(metric prometheus.Collector)

RegisterAgentMetric will register a single agent metric.

func RegisterClusterName

func RegisterClusterName(name string)

RegisterClusterName will set the name of the current cluster.

func RegisterOperatorMetric

func RegisterOperatorMetric(metric prometheus.Collector)

RegisterOperatorMetric will register a single operator metric.

func RegisterPodName

func RegisterPodName(name string)

RegisterPodName will set the name of the current pod.

Types

This section is empty.

Jump to

Keyboard shortcuts

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