File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed
Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import (
1111
1212 "github.com/pkg/errors"
1313 "github.com/prometheus/client_golang/prometheus"
14- "github.com/prometheus/prometheus/pkg/rulefmt"
1514
1615 "github.com/grafana/cortextool/pkg/client"
1716 "github.com/grafana/cortextool/pkg/printer"
@@ -519,11 +518,3 @@ func (r *RuleCommand) prepare(k *kingpin.ParseContext) error {
519518
520519 return nil
521520}
522-
523- func getRuleName (r rulefmt.Rule ) string {
524- if r .Record != "" {
525- return r .Record
526- }
527-
528- return r .Alert
529- }
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ type RuleNamespace struct {
2020 Groups []rulefmt.RuleGroup `yaml:"groups"`
2121}
2222
23- // Modifies the aggregation rules in groups to include a given Label.
23+ // AggregateBy Modifies the aggregation rules in groups to include a given Label.
2424func (r RuleNamespace ) AggregateBy (label string ) (int , int , error ) {
2525 var count , mod int
2626 for i , group := range r .Groups {
You can’t perform that action at this time.
0 commit comments