metrics

package
v0.0.0-...-1a88b7f Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NameSpace is the namespace for the Prometheus metrics
	NameSpace = "idmsvc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	// HTTPRequestDuration is a histogram that measures the duration of the HTTP requests
	HTTPRequestDuration *prometheus.HistogramVec
	// HTTPRequestHeaderSize is a histogram that measures the size of the HTTP request headers.
	HTTPRequestHeaderSize *prometheus.HistogramVec
	// HTTPRequestBodySize is a histogram that measures the size of the HTTP request bodys.
	HTTPRequestBodySize *prometheus.HistogramVec
	// contains filtered or unexported fields
}

Metrics holds all the Prometheus metrics for the application

func NewMetrics

func NewMetrics(reg *prometheus.Registry) *Metrics

NewMetrics creates a new Metrics instance

func (Metrics) Registry

func (m Metrics) Registry() *prometheus.Registry

Jump to

Keyboard shortcuts

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