mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	The subsystem of a metric must be it's plugin name. "dns" is reserved for the core. Use a const convention to avoid copy-paste mistakes in naming. Fix dns64 and acl plugin. Signed-off-by: Ben Kochie <superq@gmail.com>
		
			
				
	
	
		
			18 lines
		
	
	
		
			461 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			461 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package dns64
 | |
| 
 | |
| import (
 | |
| 	"github.com/coredns/coredns/plugin"
 | |
| 
 | |
| 	"github.com/prometheus/client_golang/prometheus"
 | |
| )
 | |
| 
 | |
| var (
 | |
| 	// RequestsTranslatedCount is the number of DNS requests translated by dns64.
 | |
| 	RequestsTranslatedCount = prometheus.NewCounterVec(prometheus.CounterOpts{
 | |
| 		Namespace: plugin.Namespace,
 | |
| 		Subsystem: pluginName,
 | |
| 		Name:      "requests_translated_total",
 | |
| 		Help:      "Counter of DNS requests translated by dns64.",
 | |
| 	}, []string{"server"})
 | |
| )
 |