mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-11 13:57:36 -08:00
fix some mistakes in comments (#5533)
Signed-off-by: YaoZengzeng <yaozengzeng@zju.edu.cn>
This commit is contained in:
parent
45506841e6
commit
5544cb252a
|
@ -38,7 +38,7 @@ import (
|
||||||
"github.com/prometheus/prometheus/storage"
|
"github.com/prometheus/prometheus/storage"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RuleHealth describes the health state of a target.
|
// RuleHealth describes the health state of a rule.
|
||||||
type RuleHealth string
|
type RuleHealth string
|
||||||
|
|
||||||
// The possible health states of a rule based on the last execution.
|
// The possible health states of a rule based on the last execution.
|
||||||
|
@ -73,7 +73,7 @@ type Metrics struct {
|
||||||
groupRules *prometheus.GaugeVec
|
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.
|
// if not nil.
|
||||||
func NewGroupMetrics(reg prometheus.Registerer) *Metrics {
|
func NewGroupMetrics(reg prometheus.Registerer) *Metrics {
|
||||||
m := &Metrics{
|
m := &Metrics{
|
||||||
|
|
Loading…
Reference in a new issue