metrics

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ActiveESRequests store active ES requests counter
	ActiveESRequests int64

	// ActiveHTTPRequests store active HTTP requests counter
	ActiveHTTPRequests int64

	// FailedESRequests store failed ES requests counter
	FailedESRequests int64

	// FailedESTraces store failed ES trace documents
	FailedESTraces int64

	// FlushTimer meter collect pending traces time
	FlushTimer = metrics.NewRegisteredTimer("flush.time", metrics.DefaultRegistry)

	// SpansReceived store received spans counter
	SpansReceived int64

	// TracesCompleted store completed traces counter
	TracesCompleted int64

	// TracesUncompleted store uncompleted traces counter
	TracesUncompleted int64

	// TracesPending store pending traces counter
	TracesPending int64
)

Functions

func InitStats

func InitStats(conf *Config) error

InitStats initialize sending statistics to graphite

func SetLogger

func SetLogger(logger *logging.Logger)

SetLogger allows to set up external logger

Types

type Config

type Config struct {
	Enable         bool   `yaml:"enable"`
	GraphiteHost   string `yaml:"graphite_host"`
	GraphitePort   int    `yaml:"graphite_port"`
	GraphitePrefix string `yaml:"graphite_prefix"`
}

Config is settings for graphite

Jump to

Keyboard shortcuts

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