blob: 7b78055359cff6e43a87d27a87b4b05f9864ea61 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package http
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/prometheus/client_golang/prometheus/promhttp"
)
var (
totalRequestsGauge = promauto.NewGauge(prometheus.GaugeOpts{
Name: "zdns_requests_total",
Help: "The total number of DNS requests.",
})
hijackedRequestsGauge = promauto.NewGauge(prometheus.GaugeOpts{
Name: "zdns_requests_hijacked",
Help: "The number of hijacked DNS requests.",
})
prometheusHandler = promhttp.Handler()
)
|