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
f.DurationVar(&cfg.AlertmanagerRefreshInterval, "ruler.alertmanager-refresh-interval", 1*time.Minute, "How long to wait between refreshing alertmanager hosts.")
86
88
f.IntVar(&cfg.NotificationQueueCapacity, "ruler.notification-queue-capacity", 10000, "Capacity of the queue for notifications to be sent to the Alertmanager.")
87
89
f.DurationVar(&cfg.NotificationTimeout, "ruler.notification-timeout", 10*time.Second, "HTTP timeout duration when sending notifications to the Alertmanager.")
90
+
f.DurationVar(&cfg.GroupTimeout, "ruler.group-timeout", 10*time.Second, "Timeout for rule group evaluation, including sending result to ingester")
88
91
}
89
92
90
93
// Ruler evaluates rules.
@@ -94,6 +97,7 @@ type Ruler struct {
94
97
alertURL*url.URL
95
98
notifierCfg*config.Config
96
99
queueCapacityint
100
+
groupTimeout time.Duration
97
101
98
102
// Per-user notifiers with separate queues.
99
103
notifiersMtx sync.Mutex
@@ -112,6 +116,7 @@ func NewRuler(cfg Config, d *distributor.Distributor, c *chunk.Store) (*Ruler, e
0 commit comments