metrics

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 2 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 interface {
	// NewSummary creates a new summary metric
	NewSummary(name string) error
	// NewCounter creates a new counter metric
	NewCounter(name string) error
	// ObserveSummary records a value for a summary metric
	ObserveSummary(name string, duration float64)
	// IncrementCounter increments a counter metric
	IncrementCounter(name string)
}

Metrics is an interface for metrics

func NewPrometheus

func NewPrometheus() Metrics

NewPrometheus returns a new prometheus metrics implementation

Jump to

Keyboard shortcuts

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