prometheus

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMetrics

func GetMetrics(
	version string,
	domain string,
	scope string,
) metrics.Metrics

GetMetrics returns metrics implementation.

func NewMetrics

func NewMetrics(
	version string,
	domain string,
	scope string,
) metrics.Metrics

NewMetrics creates instance of prometheus metrics.

func NewPrometheusProvider

func NewPrometheusProvider(httpServer *echo.Echo) metrics.Provider

NewPrometheusProvider creates new instance of Prometheus Metrics Provider.

Types

type PromMetrics

type PromMetrics struct {
	// contains filtered or unexported fields
}

PromMetrics manages the metrics for VCS.

func (*PromMetrics) CheckAuthorizationResponseTime

func (pm *PromMetrics) CheckAuthorizationResponseTime(value time.Duration)

CheckAuthorizationResponseTime records the time for CheckAuthorizationResponse controller endpoint call.

func (*PromMetrics) InstrumentHTTPTransport

func (pm *PromMetrics) InstrumentHTTPTransport(id metrics.ClientID, transport http.RoundTripper) http.RoundTripper

InstrumentHTTPTransport instruments the given HTTP transport with metrics such as request duration, number of in-flight requests, etc.

func (*PromMetrics) SignTime

func (pm *PromMetrics) SignTime(value time.Duration)

SignTime records the time for sign.

func (*PromMetrics) VerifyOIDCVerifiablePresentationTime

func (pm *PromMetrics) VerifyOIDCVerifiablePresentationTime(value time.Duration)

Jump to

Keyboard shortcuts

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