metrics

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// metrics prefix
	MetricsPrefix = "gudgeon-"
	// metrics names are prefixed by the metrics prefix and delim
	TotalRules     = "total-rules"
	TotalQueries   = "total-queries"
	CachedQueries  = "cached-queries"
	BlockedQueries = "blocked-queries"
	QueryTime      = "query-time"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics interface {
	GetAll() map[string]map[string]interface{}
	GetMeter(name string) gometrics.Meter
	GetGauge(name string) gometrics.Gauge
	GetCounter(name string) gometrics.Counter
	GetTimer(name string) gometrics.Timer

	// record relevant metrics based on request
	RecordQueryMetrics(request *dns.Msg, response *dns.Msg, rCon *resolver.RequestContext, result *resolver.ResolutionResult)
}

func New

func New(config *config.GudgeonConfig) Metrics

Jump to

Keyboard shortcuts

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