collectors

package
v0.0.0-...-42351fe Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PrometheusNamespace = "wls_ingress_controller"

PrometheusNamespace default metric namespace

Functions

This section is empty.

Types

type Controller

type Controller struct {
	prometheus.Collector
	// contains filtered or unexported fields
}

Controller defines base metrics about the ingress controller

func NewController

func NewController(pod, namespace, class string) *Controller

NewController creates a new prometheus collector for the Ingress controller operations

func (Controller) Collect

func (cm Controller) Collect(ch chan<- prometheus.Metric)

Collect implements the prometheus.Collector interface.

func (Controller) Describe

func (cm Controller) Describe(ch chan<- *prometheus.Desc)

Describe implements prometheus.Collector

func (*Controller) IncCookieCount

func (cm *Controller) IncCookieCount(namespace, name string)

IncCheckCount increment the check counter

func (*Controller) OnStartedLeading

func (cm *Controller) OnStartedLeading(electionID string)

OnStartedLeading indicates the pod was elected as the leader

func (*Controller) OnStoppedLeading

func (cm *Controller) OnStoppedLeading(electionID string)

OnStoppedLeading indicates the pod stopped being the leader

Jump to

Keyboard shortcuts

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