From e858c0826c0fb1a95a34f3c266cc448d67458d97 Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Mon, 9 Oct 2017 12:24:53 +0200 Subject: [PATCH] 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. --- head.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/head.go b/head.go index 4f3c60c39..b97a44643 100644 --- a/head.go +++ b/head.go @@ -118,13 +118,13 @@ func newHeadMetrics(h *Head, r prometheus.Registerer) *headMetrics { Name: "tsdb_head_gc_duration_seconds", 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", Help: "Maximum timestamp of the head block.", }, func() float64 { return float64(h.MaxTime()) }) - m.maxTime = prometheus.NewGaugeFunc(prometheus.GaugeOpts{ + m.minTime = prometheus.NewGaugeFunc(prometheus.GaugeOpts{ Name: "tsdb_head_min_time", Help: "Minimum time bound of the head block.", }, func() float64 {