metric

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientStatsHandler added in v0.0.7

func ClientStatsHandler() *promgrpc.StatsHandler

ClientStatsHandler is a simplified promgrpc.ClientStatsHandler().

func Register added in v0.0.7

func Register(registerer prometheus.Registerer, toRegister ...prometheus.Collector) (func(), error)

func ServerStatsHandler added in v0.0.7

func ServerStatsHandler() *promgrpc.StatsHandler

ServerStatsHandler is a simplified promgrpc.ServerStatsHandler().

Types

type Server

type Server struct {
	// Name is the name of the application.
	Name          string
	Listener      net.Listener
	UrlPath       string
	Gatherer      prometheus.Gatherer
	Registerer    prometheus.Registerer
	PprofDisabled bool
}

func (*Server) Run

func (a *Server) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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