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
Click to show internal directories.
Click to hide internal directories.