mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	middleware/metrics: cleanup (#355)
* middleware/metrics: add more metrics middleware/cache: Add metrics for number of elements in the cache. Also export the total size. Update README to detail the new metrics. middleware/metrics Move metrics into subpackage called "vars". This breaks the import cycle and is cleaner. This allows vars.Report to be used in the the dnsserver to log refused queries. middleware/metrics: tests Add tests to the metrics framework. The metrics/test subpackage allows scraping of the local server. Do a few test scrape of the metrics that are defined in the metrics middleware. This also allows metrics integration tests to check if the caching and dnssec middleware export their metrics correctly. * update README * typos * fix tests
This commit is contained in:
		| @@ -101,6 +101,8 @@ func (k Kubernetes) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.M | ||||
| 	return dns.RcodeSuccess, nil | ||||
| } | ||||
|  | ||||
| func (k Kubernetes) Name() string { return "kubernetes" } | ||||
|  | ||||
| // Err writes an error response back to the client. | ||||
| func (k Kubernetes) Err(zone string, rcode int, state request.Request) (int, error) { | ||||
| 	m := new(dns.Msg) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user