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