metrics

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// IncreaseInterruptionEventCounter increases the interruption metric by one with a label value of cluster
	IncreaseInterruptionEventCounter(cluster string)
	// ServeMetrics serves metrics on the specified port and path of the given
	ServeMetrics(path, port string)
}

Client provides methods for modifying metrics

func NewClient

func NewClient(log *zap.SugaredLogger) Client

NewClient creates a new metrics client. To actually start the metrics server, call the Client's ServeMetrics method.

Jump to

Keyboard shortcuts

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