mirror of
https://github.com/coredns/coredns.git
synced 2025-10-30 01:34:21 -04:00
plugin/metrics: Switch to using promhttp instead of deprecated Handler (#1312)
prometheus.Handler is deprecated according to the godoc for the package so instead we're using promhttp. Additionally, we are exposing the Registry that metrics is using so other plugins that are not inside of coredns can read the registry. Otherwise, if we kept using the Default one, there's no way to access that from outside of the coredns repo since it is vendored.
This commit is contained in:
committed by
Miek Gieben
parent
1919913c98
commit
671d170619
4
vendor/github.com/imdario/mergo/testdata/license.yml
generated
vendored
Normal file
4
vendor/github.com/imdario/mergo/testdata/license.yml
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import: ../../../../fossene/db/schema/thing.yml
|
||||
fields:
|
||||
site: string
|
||||
author: root
|
||||
6
vendor/github.com/imdario/mergo/testdata/thing.yml
generated
vendored
Normal file
6
vendor/github.com/imdario/mergo/testdata/thing.yml
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
fields:
|
||||
id: int
|
||||
name: string
|
||||
parent: ref "datu:thing"
|
||||
status: enum(draft, public, private)
|
||||
author: updater
|
||||
Reference in New Issue
Block a user