metrics

package
v1.5.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultObjectives = map[float64]float64{
	0.5:  0.05,
	0.9:  0.01,
	0.99: 0.001,
}

DefaultObjectives defines default percentiles for Summary (50th, 90th, 99th percentile)

Functions

This section is empty.

Types

type Metrics

type Metrics interface {
	prometheus.Registerer
	prometheus.Gatherer

	RegisterGRPC(*grpc.Server)
	GRPCServerInterceptors() []grpc.ServerOption
	GRPCClientInterceptors() []grpc.DialOption
	BulkRegister(...prometheus.Collector) error
}

func NewMetrics

func NewMetrics(zone string) (Metrics, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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