@@ -34,16 +34,15 @@ func init() {
34
34
// InitMetricsVars init statistics metrics vars.
35
35
func InitMetricsVars () {
36
36
StatsHealthyGauges = []prometheus.Gauge {
37
- metrics .StatsHealthyGauge .WithLabelValues ("[0,50)" ),
38
- metrics .StatsHealthyGauge .WithLabelValues ("[50,55)" ),
39
- metrics .StatsHealthyGauge .WithLabelValues ("[55,60)" ),
40
- metrics .StatsHealthyGauge .WithLabelValues ("[60,70)" ),
41
- metrics .StatsHealthyGauge .WithLabelValues ("[70,80)" ),
42
- metrics .StatsHealthyGauge .WithLabelValues ("[80,100)" ),
43
- metrics .StatsHealthyGauge .WithLabelValues ("[100,100]" ),
44
- // [0,100] should always be the last
45
- metrics .StatsHealthyGauge .WithLabelValues ("[0,100]" ),
46
- metrics .StatsHealthyGauge .WithLabelValues ("unneeded analyze" ),
37
+ metrics .StatsHealthyGauge .WithLabelValues ("[0,50)" ), // 0
38
+ metrics .StatsHealthyGauge .WithLabelValues ("[50,55)" ), // 1
39
+ metrics .StatsHealthyGauge .WithLabelValues ("[55,60)" ), // 2
40
+ metrics .StatsHealthyGauge .WithLabelValues ("[60,70)" ), // 3
41
+ metrics .StatsHealthyGauge .WithLabelValues ("[70,80)" ), // 4
42
+ metrics .StatsHealthyGauge .WithLabelValues ("[80,100)" ), // 5
43
+ metrics .StatsHealthyGauge .WithLabelValues ("[100,100]" ), // 6
44
+ metrics .StatsHealthyGauge .WithLabelValues ("[0,100]" ), // 7
45
+ metrics .StatsHealthyGauge .WithLabelValues ("unneeded analyze" ), // 8
47
46
}
48
47
49
48
DumpHistoricalStatsSuccessCounter = metrics .HistoricalStatsCounter .WithLabelValues ("dump" , "success" )
0 commit comments