mirror of
				https://github.com/containous/traefik.git
				synced 2025-10-30 20:24:28 +03:00 
			
		
		
		
	Improve Prometheus metrics removal
This commit is contained in:
		
				
					committed by
					
						 Traefiker Bot
						Traefiker Bot
					
				
			
			
				
	
			
			
			
						parent
						
							f317e50136
						
					
				
				
					commit
					2c18750537
				
			| @@ -46,12 +46,12 @@ type CollectingHealthCheckMetrics struct { | ||||
| 	Gauge *CollectingGauge | ||||
| } | ||||
|  | ||||
| // NewCollectingHealthCheckMetrics creates a new CollectingHealthCheckMetrics instance. | ||||
| func NewCollectingHealthCheckMetrics() *CollectingHealthCheckMetrics { | ||||
| 	return &CollectingHealthCheckMetrics{&CollectingGauge{}} | ||||
| } | ||||
|  | ||||
| // BackendServerUpGauge is there to satisfy the healthcheck.metricsRegistry interface. | ||||
| func (m *CollectingHealthCheckMetrics) BackendServerUpGauge() metrics.Gauge { | ||||
| 	return m.Gauge | ||||
| } | ||||
|  | ||||
| // NewCollectingHealthCheckMetrics creates a new CollectingHealthCheckMetrics instance. | ||||
| func NewCollectingHealthCheckMetrics() *CollectingHealthCheckMetrics { | ||||
| 	return &CollectingHealthCheckMetrics{&CollectingGauge{}} | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user