2018-02-05 22:00:47 +00:00
|
|
|
package forward
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/coredns/coredns/plugin"
|
|
|
|
|
|
|
|
|
|
"github.com/prometheus/client_golang/prometheus"
|
2020-07-25 23:06:28 +08:00
|
|
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
2018-02-05 22:00:47 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Variables declared for monitoring.
|
|
|
|
|
var (
|
2023-07-04 15:35:55 +01:00
|
|
|
healthcheckBrokenCount = promauto.NewCounter(prometheus.CounterOpts{
|
2018-02-05 22:00:47 +00:00
|
|
|
Namespace: plugin.Namespace,
|
|
|
|
|
Subsystem: "forward",
|
2020-03-26 09:17:33 +01:00
|
|
|
Name: "healthcheck_broken_total",
|
2019-08-09 00:27:53 +08:00
|
|
|
Help: "Counter of the number of complete failures of the healthchecks.",
|
2018-02-05 22:00:47 +00:00
|
|
|
})
|
2023-07-04 15:35:55 +01:00
|
|
|
|
|
|
|
|
maxConcurrentRejectCount = promauto.NewCounter(prometheus.CounterOpts{
|
2020-02-04 07:59:08 -05:00
|
|
|
Namespace: plugin.Namespace,
|
|
|
|
|
Subsystem: "forward",
|
2020-03-26 09:17:33 +01:00
|
|
|
Name: "max_concurrent_rejects_total",
|
2020-02-04 07:59:08 -05:00
|
|
|
Help: "Counter of the number of queries rejected because the concurrent queries were at maximum.",
|
|
|
|
|
})
|
2018-02-05 22:00:47 +00:00
|
|
|
)
|