mirror of
https://github.com/coredns/coredns.git
synced 2025-11-14 07:52:17 -05:00
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.
go-resiliency
Resiliency patterns for golang. Based in part on Hystrix, Semian, and others.
Currently implemented patterns include:
- circuit-breaker (in the
breakerdirectory) - semaphore (in the
semaphoredirectory) - deadline/timeout (in the
deadlinedirectory) - batching (in the
batcherdirectory) - retriable (in the
retrierdirectory)
Follows semantic versioning using https://gopkg.in/ - import from
gopkg.in/eapache/go-resiliency.v1
for guaranteed API stability.