prometheus

package
v0.0.0-...-8bc3ba8 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthCheckDuration = promauto.NewHistogram(
	prometheus.HistogramOpts{
		Name: "auth_check_duration",
		Help: "Duration of the auth token being checked for validity.",
	})
View Source
var AuthCheckWithWaitDuration = promauto.NewHistogram(
	prometheus.HistogramOpts{
		Name: "auth_check_with_wait_duration",
		Help: "Duration of the auth token being checked for validity including waiting time for semaphore.",
	})
View Source
var IdentityCreationCounter = promauto.NewCounter(
	prometheus.CounterOpts{
		Name: "identity_creation_success",
		Help: "Number of identities which have been successfully created, registered and stored.",
	})
View Source
var IdentityCreationDuration = promauto.NewHistogram(
	prometheus.HistogramOpts{
		Name: "identity_creation_duration",
		Help: "Duration of the identity being created, registered and stored.",
	})
View Source
var SignatureCreationCounter = promauto.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",
	})
View Source
var UpstreamResponseDuration = promauto.NewHistogram(prometheus.HistogramOpts{
	Name: "upstream_response_duration",
	Help: "Duration of HTTP responses from upstream server.",
})

Functions

func Handler

func Handler() http.Handler

func NewResponseWriter

func NewResponseWriter(w http.ResponseWriter) *responseWriter

func PromMiddleware

func PromMiddleware(next http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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