hosts: add hostsfile as label for coredns_hosts_entries (#6801)

Signed-off-by: Paco Xu <paco.xu@daocloud.io>
This commit is contained in:
Paco Xu
2024-08-06 19:13:22 +08:00
committed by GitHub
parent ae65f4e0c7
commit e5945d2767
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ var (
Subsystem: "hosts",
Name: "entries",
Help: "The combined number of entries in hosts and Corefile.",
}, []string{})
}, []string{"hostsfile"})
// hostsReloadTime is the timestamp of the last reload of hosts file.
hostsReloadTime = promauto.NewGauge(prometheus.GaugeOpts{
Namespace: plugin.Namespace,