metrics

package
v0.0.0-...-8f6a4c1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootScope = tally.NoopScope

RootScope tally.NoopScope is a scope that does nothing

Functions

func Shutdown

func Shutdown() error

Shutdown closes underlying resources used by metrics server

func Start

func Start(opts Opts) error

Start starts metrics server

Types

type Opts

type Opts struct {
	Reporter           string
	Interval           time.Duration
	Enabled            bool
	StatsdReporterOpts StatsdReporterOpts
	PromReporterOpts   PromReporterOpts
}

Opts ...

func NewOpts

func NewOpts(peerConfig *viper.Viper) Opts

NewOpts create metrics options based config file. TODO: Currently this is only for peer node which uses global viper. As for orderer, which uses its local viper, we are unable to get metrics options with the function NewOpts()

type PromReporterOpts

type PromReporterOpts struct {
	ListenAddress string
}

PromReporterOpts ...

type StatsdReporterOpts

type StatsdReporterOpts struct {
	Address       string
	FlushInterval time.Duration
	FlushBytes    int
}

StatsdReporterOpts ...

Jump to

Keyboard shortcuts

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