controllers

package
v0.24.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 3 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerMetrics

type ControllerMetrics struct {
	// contains filtered or unexported fields
}

ControllerMetrics includes all the metrics of the proxy server.

func NewControllerMetrics

func NewControllerMetrics() *ControllerMetrics

NewControllerMetrics create a new ControllerMetrics, configured with default metric names.

func (*ControllerMetrics) ControllerStarted

func (a *ControllerMetrics) ControllerStarted(name string, manager string)

ControllerStarted sets the controllerInstanceCount to 1. These values use set instead of inc/dec to avoid accidentally double counting a controller that starts but fails to properly signal when it crashes.

func (*ControllerMetrics) ControllerStopped

func (a *ControllerMetrics) ControllerStopped(name string, manager string)

ControllerStopped sets the controllerInstanceCount to 0.

func (*ControllerMetrics) Register

func (a *ControllerMetrics) Register()

Jump to

Keyboard shortcuts

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