You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Set timeout for ingester Push() calls
* Remove now-unused timeout parameter from ingester Dial
- The semantics of Dial and grpc.WithTimeout() have changed since this was written
* Add a timeout in ruler for each rule-group evaluation
f.DurationVar(&cfg.AlertmanagerRefreshInterval, "ruler.alertmanager-refresh-interval", 1*time.Minute, "How long to wait between refreshing alertmanager hosts.")
101
103
f.IntVar(&cfg.NotificationQueueCapacity, "ruler.notification-queue-capacity", 10000, "Capacity of the queue for notifications to be sent to the Alertmanager.")
102
104
f.DurationVar(&cfg.NotificationTimeout, "ruler.notification-timeout", 10*time.Second, "HTTP timeout duration when sending notifications to the Alertmanager.")
105
+
f.DurationVar(&cfg.GroupTimeout, "ruler.group-timeout", 10*time.Second, "Timeout for rule group evaluation, including sending result to ingester")
103
106
}
104
107
105
108
// Ruler evaluates rules.
@@ -109,6 +112,7 @@ type Ruler struct {
109
112
alertURL*url.URL
110
113
notifierCfg*config.Config
111
114
queueCapacityint
115
+
groupTimeout time.Duration
112
116
113
117
// Per-user notifiers with separate queues.
114
118
notifiersMtx sync.Mutex
@@ -191,6 +195,7 @@ func NewRuler(cfg Config, d *distributor.Distributor, c *chunk.Store) (*Ruler, e
0 commit comments