|
7 jaren geleden | |
---|---|---|
LICENSE | 7 jaren geleden | |
README.md | 7 jaren geleden | |
example.go | 7 jaren geleden | |
example_test.go | 7 jaren geleden | |
metrics.go | 7 jaren geleden | |
setup.go | 7 jaren geleden | |
setup_test.go | 7 jaren geleden |
example - prints "example" on every query received.
The example plugin prints "example" on every query received. It serves as documentation for writing CoreDNS plugins.
example
If monitoring is enabled (via the prometheus directive) the following metric is exported:
coredns_example_request_count_total{server}
- query count to the example plugin.In this configuration, we forward all queries to 9.9.9.9 and print "example" whenever we recieve a query.
. {
forward . 9.9.9.9
example
}
See the manual.