Documentation ¶
Overview ¶
Package prometheus defines a Prometheus metric implementation for a DNS server middleware.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNewCounters = errors.New("failed creating metrics counters") ErrNewGauges = errors.New("failed creating metrics gauges") )
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
func (Metrics) AnswersInc ¶
func (c Metrics) AnswersInc(class, qType string)
func (Metrics) InFlightRequestsDec ¶
func (g Metrics) InFlightRequestsDec()
func (Metrics) InFlightRequestsInc ¶
func (g Metrics) InFlightRequestsInc()
func (Metrics) QuestionsInc ¶
func (c Metrics) QuestionsInc(class, qType string)
func (Metrics) RequestsInc ¶
func (c Metrics) RequestsInc()
func (Metrics) ResponsesInc ¶
func (c Metrics) ResponsesInc()
Click to show internal directories.
Click to hide internal directories.