Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Dropped indicates we dropped the query before any handling. It has no closing dot, so it can not be a valid zone.
Dropped = "dropped"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Metrics ¶
type Metrics struct { Next middleware.Handler Addr string Once *sync.Once ZoneNames []string // contains filtered or unexported fields }
Metrics holds the prometheus configuration. The metrics' path is fixed to be /metrics
func (*Metrics) OnShutdown ¶
OnShutdown tears down the metrics on shutdown.
Click to show internal directories.
Click to hide internal directories.