mirror of
				https://github.com/coredns/coredns.git
				synced 2025-11-04 03:03:14 -05:00 
			
		
		
		
	* plugin/forward: Move Proxy into pkg/plugin/proxy, to allow forward.Proxy to be used outside of forward plugin. Signed-off-by: Patrick Downey <patrick.downey@dioadconsulting.com>
		
			
				
	
	
		
			25 lines
		
	
	
		
			754 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			754 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package forward
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/coredns/coredns/plugin"
 | 
						|
 | 
						|
	"github.com/prometheus/client_golang/prometheus"
 | 
						|
	"github.com/prometheus/client_golang/prometheus/promauto"
 | 
						|
)
 | 
						|
 | 
						|
// Variables declared for monitoring.
 | 
						|
var (
 | 
						|
	HealthcheckBrokenCount = promauto.NewCounter(prometheus.CounterOpts{
 | 
						|
		Namespace: plugin.Namespace,
 | 
						|
		Subsystem: "forward",
 | 
						|
		Name:      "healthcheck_broken_total",
 | 
						|
		Help:      "Counter of the number of complete failures of the healthchecks.",
 | 
						|
	})
 | 
						|
	MaxConcurrentRejectCount = promauto.NewCounter(prometheus.CounterOpts{
 | 
						|
		Namespace: plugin.Namespace,
 | 
						|
		Subsystem: "forward",
 | 
						|
		Name:      "max_concurrent_rejects_total",
 | 
						|
		Help:      "Counter of the number of queries rejected because the concurrent queries were at maximum.",
 | 
						|
	})
 | 
						|
)
 |