Documentation ¶
Index ¶
- func AuthConfig(baUser, baPass, baFile, bearerToken, bearerTokenFile string) (*promauth.Config, error)
- func TLSConfig(certFile, keyFile, CAFile, serverName string, insecureSkipVerify bool) (*tls.Config, error)
- func Transport(URL, certFile, keyFile, CAFile, serverName string, insecureSkipVerify bool) (*http.Transport, error)
- type Counter
- type ErrGroup
- type Gauge
- type Summary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthConfig ¶ added in v1.66.0
func AuthConfig(baUser, baPass, baFile, bearerToken, bearerTokenFile string) (*promauth.Config, error)
AuthConfig returns promauth.Config based on the given params
Types ¶
type Counter ¶ added in v1.73.0
Counter is a metrics.Counter with Name
func GetOrCreateCounter ¶ added in v1.73.0
GetOrCreateCounter creates a new Counter with the given name
func (Counter) Unregister ¶ added in v1.73.0
func (nm Counter) Unregister()
Unregister removes the metric by name from default registry
type ErrGroup ¶
type ErrGroup struct {
// contains filtered or unexported fields
}
ErrGroup accumulates multiple errors and produces single error message.
type Gauge ¶ added in v1.73.0
Gauge is a metrics.Gauge with Name
func GetOrCreateGauge ¶ added in v1.73.0
GetOrCreateGauge creates a new Gauge with the given name
func (Gauge) Unregister ¶ added in v1.73.0
func (nm Gauge) Unregister()
Unregister removes the metric by name from default registry
type Summary ¶ added in v1.73.0
Summary is a metrics.Summary with Name
func GetOrCreateSummary ¶ added in v1.73.0
GetOrCreateSummary creates a new Summary with the given name
func (Summary) Unregister ¶ added in v1.73.0
func (nm Summary) Unregister()
Unregister removes the metric by name from default registry
Click to show internal directories.
Click to hide internal directories.