Miek Gieben 1092ed3ad3 plugin/example: update README
Metrics also exist

Fixes #3
2018-04-27 07:15:14 +01:00
2018-02-25 08:52:52 +00:00
2018-04-26 21:56:11 +01:00
2018-04-26 21:56:11 +01:00
2018-04-27 07:15:14 +01:00
2018-02-25 08:52:52 +00:00
2018-04-01 13:28:37 +01:00

example

Name

example - prints "example" on every query received.

Description

The example plugin prints "example" on every query received. It serves as documentation for writing CoreDNS plugins.

Syntax

example

Metrics

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.

The server label indicated which server handled the request, see the metrics plugin for details.

Examples

In this configuration, we forward all queries to 9.9.9.9 and print "example" whenever we receive a query.

. {
  forward . 9.9.9.9
  example
}

Also See

See the manual.

Description
No description provided
Readme 2.8 MiB
Languages
Go 100%