Documentation ¶
Index ¶
- func DecEventGauge(gauge *prometheus.GaugeVec)
- func IncEventCounter(counter *prometheus.CounterVec)
- func IncEventGauge(gauge *prometheus.GaugeVec)
- func IncStatusCounter(counter *prometheus.CounterVec, status innodb.InstanceStatus)
- func NewAgentEventCounter(name string, help string) *prometheus.CounterVec
- func NewAgentStatusCounter(name string, help string) *prometheus.CounterVec
- func NewOperatorEventCounter(name string, help string) *prometheus.CounterVec
- func NewOperatorEventGauge(name string, help string) *prometheus.GaugeVec
- func RegisterAgentMetric(metric prometheus.Collector)
- func RegisterClusterName(name string)
- func RegisterOperatorMetric(metric prometheus.Collector)
- func RegisterPodName(name string)
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.