metrics

package
v0.0.0-...-580ec26 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	*grpcpool.Pool
	// contains filtered or unexported fields
}

func NewGrpcPool

func NewGrpcPool(name string, pool *grpcpool.Pool, rec *Recorder) *Pool

func (*Pool) Close

func (p *Pool) Close()

func (*Pool) CollectMetrics

func (p *Pool) CollectMetrics(interval *time.Ticker)

func (*Pool) GetName

func (p *Pool) GetName() string

type Recorder

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

func NewRecorder

func NewRecorder(namespace string) *Recorder

func (*Recorder) CollectGrpcPoolState

func (r *Recorder) CollectGrpcPoolState(pool *Pool) *Recorder

func (*Recorder) MustRegister

func (r *Recorder) MustRegister(registry prometheus.Registerer) *Recorder

It register all the metris on the given registerer pass nil will use DefaultRegisterer

Jump to

Keyboard shortcuts

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