mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-27 16:24:19 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			755 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			755 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.",
 | |
| 	})
 | |
| )
 |