From 5544cb252ac4f684af243b0b589563525a2a4246 Mon Sep 17 00:00:00 2001 From: Yao Zengzeng Date: Sun, 5 May 2019 17:48:42 +0800 Subject: [PATCH] fix some mistakes in comments (#5533) Signed-off-by: YaoZengzeng --- rules/manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/manager.go b/rules/manager.go index 1dc72cc87e..f5b095898a 100644 --- a/rules/manager.go +++ b/rules/manager.go @@ -38,7 +38,7 @@ import ( "github.com/prometheus/prometheus/storage" ) -// RuleHealth describes the health state of a target. +// RuleHealth describes the health state of a rule. type RuleHealth string // The possible health states of a rule based on the last execution. @@ -73,7 +73,7 @@ type Metrics struct { groupRules *prometheus.GaugeVec } -// NewGroupMetrics makes a new Metrics and registers them with then provided registerer, +// NewGroupMetrics makes a new Metrics and registers them with the provided registerer, // if not nil. func NewGroupMetrics(reg prometheus.Registerer) *Metrics { m := &Metrics{