mirror of
				https://github.com/coredns/coredns.git
				synced 2025-11-04 03:03:14 -05:00 
			
		
		
		
	* introduce metric naming test Signed-off-by: zounengren <zounengren@cmss.chinamobile.com> * Update metrics.go Signed-off-by: zounengren <zounengren@cmss.chinamobile.com>
		
			
				
	
	
		
			18 lines
		
	
	
		
			423 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			423 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package autopath
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/coredns/coredns/plugin"
 | 
						|
 | 
						|
	"github.com/prometheus/client_golang/prometheus"
 | 
						|
)
 | 
						|
 | 
						|
var (
 | 
						|
	// autoPathCount is counter of successfully autopath-ed queries.
 | 
						|
	autoPathCount = prometheus.NewCounterVec(prometheus.CounterOpts{
 | 
						|
		Namespace: plugin.Namespace,
 | 
						|
		Subsystem: "autopath",
 | 
						|
		Name:      "success_total",
 | 
						|
		Help:      "Counter of requests that did autopath.",
 | 
						|
	}, []string{"server"})
 | 
						|
)
 |