Fix innocuous typo in variable names
This change fixes the variable names holding the tsdb_head_max_time and tsdb_head_min_time metrics. It is a cosmetic change to improve the code readability as the metric values are taken from the correct variables.
This commit is contained in:
		
							parent
							
								
									dc87103807
								
							
						
					
					
						commit
						e858c0826c
					
				
							
								
								
									
										4
									
								
								head.go
								
								
								
								
							
							
						
						
									
										4
									
								
								head.go
								
								
								
								
							|  | @ -118,13 +118,13 @@ func newHeadMetrics(h *Head, r prometheus.Registerer) *headMetrics { | ||||||
| 		Name: "tsdb_head_gc_duration_seconds", | 		Name: "tsdb_head_gc_duration_seconds", | ||||||
| 		Help: "Runtime of garbage collection in the head block.", | 		Help: "Runtime of garbage collection in the head block.", | ||||||
| 	}) | 	}) | ||||||
| 	m.minTime = prometheus.NewGaugeFunc(prometheus.GaugeOpts{ | 	m.maxTime = prometheus.NewGaugeFunc(prometheus.GaugeOpts{ | ||||||
| 		Name: "tsdb_head_max_time", | 		Name: "tsdb_head_max_time", | ||||||
| 		Help: "Maximum timestamp of the head block.", | 		Help: "Maximum timestamp of the head block.", | ||||||
| 	}, func() float64 { | 	}, func() float64 { | ||||||
| 		return float64(h.MaxTime()) | 		return float64(h.MaxTime()) | ||||||
| 	}) | 	}) | ||||||
| 	m.maxTime = prometheus.NewGaugeFunc(prometheus.GaugeOpts{ | 	m.minTime = prometheus.NewGaugeFunc(prometheus.GaugeOpts{ | ||||||
| 		Name: "tsdb_head_min_time", | 		Name: "tsdb_head_min_time", | ||||||
| 		Help: "Minimum time bound of the head block.", | 		Help: "Minimum time bound of the head block.", | ||||||
| 	}, func() float64 { | 	}, func() float64 { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue