aboutsummaryrefslogtreecommitdiff
path: root/plugin/hosts/metrics.go
blob: f97497bf21d718b78b116dff28b1d4356a0d6227 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package hosts

import (
	"github.com/coredns/coredns/plugin"

	"github.com/prometheus/client_golang/prometheus"
	"github.com/prometheus/client_golang/prometheus/promauto"
)

var (
	// hostsEntries is the combined number of entries in hosts and Corefile.
	hostsEntries = promauto.NewGaugeVec(prometheus.GaugeOpts{
		Namespace: plugin.Namespace,
		Subsystem: "hosts",
		Name:      "entries",
		Help:      "The combined number of entries in hosts and Corefile.",
	}, []string{})
	// hostsReloadTime is the timestamp of the last reload of hosts file.
	hostsReloadTime = promauto.NewGauge(prometheus.GaugeOpts{
		Namespace: plugin.Namespace,
		Subsystem: "hosts",
		Name:      "reload_timestamp_seconds",
		Help:      "The timestamp of the last reload of hosts file.",
	})
)
-7/+309 2018-05-21Enforcing gofmt -s on linter check (#1820)Gravatar Yong Tang 2-4/+3 2018-05-21plugin/template: Support NODATA responses (#1816)Gravatar Tobias Schmidt 2-2/+10 2018-05-19Fix `make check` dependency error (#1818)Gravatar Yong Tang 1-0/+2 2018-05-18plugin/forward: close connection manager in proxy finalizer (#1768)Gravatar Ruslan Drozhdzh 1-0/+5 2018-05-18add dup endpoint name test (#1811)Gravatar Chris O'Haver 1-6/+30 2018-05-18reload: don't fail test on addr in use (#1804)Gravatar Miek Gieben 1-1/+9 2018-05-17Fix typo in erratic.go (#1812)Gravatar Anton Antonov 1-1/+1 2018-05-17Update kubernetes/client-go to v7.0.0 (#1808)Gravatar Yong Tang 730-43138/+17318 2018-05-16golinter fix (#1807)Gravatar Yong Tang 1-2/+2 2018-05-16Vendor update with github.com/ugorji/go and github.com/apache/thrift pinning ...Gravatar Yong Tang 10682-4047998/+37388 2018-05-16Dep ensure (#1803)Gravatar Miek Gieben 10377-54910/+4225825 2018-05-16Probe simplification (#1784)Gravatar Ruslan Drozhdzh 1-49/+42 2018-05-15plugin/tls: make CA parameter optional (#1800)Gravatar Ruslan Drozhdzh 2-3/+5 2018-05-11plugin/reload: mention auto in reload (#1793)Gravatar Chris O'Haver 1-0/+3 2018-05-11plugin/proxy: fix except example (#1796)Gravatar Chris O'Haver 1-1/+1 2018-05-11Try to clarify rewrite docs (#1795)Gravatar Chris O'Haver 1-13/+19 2018-05-10Up miekg/dns to 1.0.6 (#1792)Gravatar Miek Gieben 1-1/+1