Versions in this module Expand all Collapse all v1 v1.0.2 Jan 2, 2021 Changes in this version + var ListenAddr string + func WithServer(ctx context.Context) string + type Metrics struct + Addr string + Next plugin.Handler + Reg *prometheus.Registry + func New(addr string) *Metrics + func (m *Metrics) AddZone(z string) + func (m *Metrics) MustRegister(c prometheus.Collector) + func (m *Metrics) Name() string + func (m *Metrics) OnFinalShutdown() error + func (m *Metrics) OnRestart() error + func (m *Metrics) OnStartup() error + func (m *Metrics) RemoveZone(z string) + func (m *Metrics) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) + func (m *Metrics) ZoneNames() []string