mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 10:13:14 -05:00
middleware/metrics: survive restart (#542)
* middleware/metrics: survive restart Keep the handler running during restart. Stopping and starting the handler results in "address in use" - sometimes, meaning the reload will be flaky. In turn this behavior means any changes to the monitor stanza are not picked up. * remove resync
This commit is contained in:
@@ -27,6 +27,7 @@ Extra labels used are:
|
||||
If monitoring is enabled, queries that do not enter the middleware chain are exported under the fake
|
||||
name "dropped" (without a closing dot - this is never a valid domain name).
|
||||
|
||||
|
||||
## Syntax
|
||||
|
||||
~~~
|
||||
@@ -45,3 +46,8 @@ Use an alternative address:
|
||||
~~~
|
||||
prometheus localhost:9253
|
||||
~~~
|
||||
|
||||
# Bugs
|
||||
|
||||
When reloading, we keep the handler running, meaning that any changes to the handler aren't picked
|
||||
up. You'll need to restart CoreDNS for that to happen.
|
||||
|
||||
Reference in New Issue
Block a user