aboutsummaryrefslogtreecommitdiff
path: root/man/coredns-hosts.7
diff options
context:
space:
mode:
Diffstat (limited to 'man/coredns-hosts.7')
-rw-r--r--man/coredns-hosts.717
1 files changed, 14 insertions, 3 deletions
diff --git a/man/coredns-hosts.7 b/man/coredns-hosts.7
index 0bb289438..c9cf7e657 100644
--- a/man/coredns-hosts.7
+++ b/man/coredns-hosts.7
@@ -1,5 +1,5 @@
.\" Generated by Mmark Markdown Processer - mmark.miek.nl
-.TH "COREDNS-HOSTS" 7 "August 2019" "CoreDNS" "CoreDNS Plugins"
+.TH "COREDNS-HOSTS" 7 "September 2019" "CoreDNS" "CoreDNS Plugins"
.SH "NAME"
.PP
@@ -93,6 +93,16 @@ is authoritative. If specific zones are listed (for example \fB\fCin-addr.arpa\f
queries for those zones will be subject to fallthrough.
+.SH "METRICS"
+.PP
+If monitoring is enabled (via the \fIprometheus\fP directive) then the following metrics are exported:
+
+.IP \(bu 4
+\fB\fCcoredns_hosts_entries_count{}\fR - The combined number of entries in hosts and Corefile.
+.IP \(bu 4
+\fB\fCcoredns_hosts_reload_timestamp_seconds{}\fR - The timestamp of the last reload of hosts file.
+
+
.SH "EXAMPLES"
.PP
Load \fB\fC/etc/hosts\fR file.
@@ -146,11 +156,12 @@ Load hosts file inlined in Corefile.
.RS
.nf
-\&. {
- hosts example.hosts example.org {
+example.hosts example.org {
+ hosts {
10.0.0.1 example.org
fallthrough
}
+ whoami
}
.fi