mirror of
				https://github.com/coredns/coredns.git
				synced 2025-11-03 18:53:13 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			580 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			580 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package xds
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/coredns/coredns/plugin"
 | 
						|
 | 
						|
	"github.com/prometheus/client_golang/prometheus"
 | 
						|
)
 | 
						|
 | 
						|
var (
 | 
						|
	// ClusterGauge is the number of clusters we are currently tracking.
 | 
						|
	ClusterGauge = prometheus.NewGauge(prometheus.GaugeOpts{
 | 
						|
		Namespace: plugin.Namespace,
 | 
						|
		Subsystem: "traffic",
 | 
						|
		Name:      "clusters_tracked",
 | 
						|
		Help:      "Gauge of tracked clusters.",
 | 
						|
	})
 | 
						|
	EndpointGauge = prometheus.NewGauge(prometheus.GaugeOpts{
 | 
						|
		Namespace: plugin.Namespace,
 | 
						|
		Subsystem: "traffic",
 | 
						|
		Name:      "endpoints_tracked",
 | 
						|
		Help:      "Gauge of tracked endpoints.",
 | 
						|
	})
 | 
						|
)
 |