metrics

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

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

func NewMetrics

func NewMetrics(ipPortAddress string, reg prometheus.Registerer, logger logging.Logger) *Metrics

func (*Metrics) IncAggregatedResponses

func (m *Metrics) IncAggregatedResponses()

func (*Metrics) IncOperatorTaskResponses

func (m *Metrics) IncOperatorTaskResponses()

func (*Metrics) Start

func (m *Metrics) Start(ctx context.Context, reg prometheus.Gatherer) <-chan error

Start creates a http handler for reg and starts the prometheus server in a goroutine, listening at m.ipPortAddress. reg needs to be the prometheus registry that was passed in the NewMetrics constructor

Jump to

Keyboard shortcuts

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