Fix wrong repeat rate setting in config.go.
Change-Id: I362f4d2ad85eb21a64ac85814fdc2fa85da6a7f4
This commit is contained in:
parent
be0e958d8f
commit
6d789102f9
|
@ -100,7 +100,7 @@ func (c Config) AggregationRules() manager.AggregationRules {
|
||||||
}
|
}
|
||||||
rules = append(rules, &manager.AggregationRule{
|
rules = append(rules, &manager.AggregationRule{
|
||||||
Filters: filtersFromPb(r.Filter),
|
Filters: filtersFromPb(r.Filter),
|
||||||
RepeatRate: minimumRepeatRate,
|
RepeatRate: rate,
|
||||||
NotificationConfigName: r.GetNotificationConfigName(),
|
NotificationConfigName: r.GetNotificationConfigName(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,7 +54,7 @@ func (i *InhibitRule) Filter(s AlertLabelSets, t AlertLabelSets) AlertLabelSets
|
||||||
type Inhibitor struct {
|
type Inhibitor struct {
|
||||||
mu sync.Mutex
|
mu sync.Mutex
|
||||||
inhibitRules InhibitRules
|
inhibitRules InhibitRules
|
||||||
dirty bool
|
dirty bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// Replaces the current InhibitRules with a new set.
|
// Replaces the current InhibitRules with a new set.
|
||||||
|
|
Loading…
Reference in New Issue