Documentation ¶
Index ¶
- func GetMetrics(version string, domain string, scope string) metrics.Metrics
- func NewMetrics(version string, domain string, scope string) metrics.Metrics
- func NewPrometheusProvider(httpServer *echo.Echo) metrics.Provider
- type PromMetrics
- func (pm *PromMetrics) CheckAuthorizationResponseTime(value time.Duration)
- func (pm *PromMetrics) InstrumentHTTPTransport(id metrics.ClientID, transport http.RoundTripper) http.RoundTripper
- func (pm *PromMetrics) SignTime(value time.Duration)
- func (pm *PromMetrics) VerifyOIDCVerifiablePresentationTime(value time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMetrics ¶
GetMetrics returns metrics implementation.
func NewMetrics ¶
NewMetrics creates instance of prometheus metrics.
func NewPrometheusProvider ¶
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)
Click to show internal directories.
Click to hide internal directories.