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
Click to show internal directories.
Click to hide internal directories.