prometheus

package
v2.0.11-0...-ba100f2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IdentityCreationCounter = prometheus.NewCounter(prometheus.CounterOpts{
	Name: "identity_creation_success",
	Help: "Number of identities which have been successfully created and stored.",
})
View Source
var IdentityCreationDuration = promauto.NewHistogram(prometheus.HistogramOpts{
	Name:    "identity_creation_duration",
	Help:    "Duration of the identity being created, registered and stored.",
	Buckets: prometheus.LinearBuckets(0.01, 0.01, 10),
})
View Source
var SignatureCreationCounter = prometheus.NewCounter(prometheus.CounterOpts{
	Name: "signature_creation_success",
	Help: "Number of successfully created signatures",
})
View Source
var SignatureCreationDuration = promauto.NewHistogram(prometheus.HistogramOpts{
	Name:    "signature_creation_duration",
	Help:    "Duration of the creation of a signed object",
	Buckets: prometheus.LinearBuckets(0.01, 0.01, 10),
})
View Source
var UpstreamResponseDuration = prometheus.NewHistogram(prometheus.HistogramOpts{
	Name:    "upstream_response_duration",
	Help:    "Duration of HTTP responses from upstream server.",
	Buckets: prometheus.LinearBuckets(0.01, 0.01, 10),
})

Functions

func InitPromMetrics

func InitPromMetrics(router *chi.Mux)

func NewResponseWriter

func NewResponseWriter(w http.ResponseWriter) *responseWriter

func PromMiddleware

func PromMiddleware(next http.Handler) http.Handler

func RegisterPromMetrics

func RegisterPromMetrics()

Types

This section is empty.

Jump to

Keyboard shortcuts

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