metrics

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//Namespace defines common namespace name for all metrics exposed by components in this project
	Namespace = "docforge"
)

Variables

This section is empty.

Functions

func InstrumentClientRoundTripperDuration

func InstrumentClientRoundTripperDuration(client *http.Client) *http.Client

InstrumentClientRoundTripperDuration instruments the provided HTTP client for metering HTTP roundtrip duration

func RegisterClientMetrics

func RegisterClientMetrics(registry prometheus.Registerer)

RegisterClientMetrics registers all of the metrics in the standard registry.

func ResetClientMetrics

func ResetClientMetrics()

ResetClientMetrics resets the HTTP client metrics. The functin is useful for designing self-contained unit tests where the count of metrics matters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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