metrics

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 3 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 {
	// ErrorsCounter global instance of prometheus.Counter for errors
	ErrorsCounter prometheus.Counter

	// WarningsCounter global instance of prometheus.Counter for warnings
	WarningsCounter prometheus.Counter

	// HttpDuration global instance of prometheus.HistogramVec for duration of HTTP requests
	HttpDuration *prometheus.HistogramVec

	HttpRequestTotal *prometheus.CounterVec

	HttpClientDuration *prometheus.HistogramVec

	HttpClientRequestTotal *prometheus.CounterVec
}

Metrics container for common prometheus metrics

func NewMetrics

func NewMetrics(appConfig *app.Config) *Metrics

Jump to

Keyboard shortcuts

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