Skip to content

Commit

Permalink
Fix panic on startup if the ExternalURL field in the ruler config is …
Browse files Browse the repository at this point in the history
…empty
  • Loading branch information
kralicky committed Aug 22, 2023
1 parent 09f593c commit bf45305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ruler/compat.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func DefaultTenantManagerFactory(cfg Config, p Pusher, q storage.Queryable, engi
QueryFunc: RecordAndReportRuleQueryMetrics(MetricsQueryFunc(EngineQueryFunc(engine, q, overrides, userID), totalQueries, failedQueries), queryTime, logger),
Context: user.InjectOrgID(ctx, userID),
ExternalURL: cfg.ExternalURL.URL,
NotifyFunc: SendAlerts(notifier, cfg.ExternalURL.URL.String()),
NotifyFunc: SendAlerts(notifier, cfg.ExternalURL.String()),
Logger: log.With(logger, "user", userID),
Registerer: reg,
OutageTolerance: cfg.OutageTolerance,
Expand Down

0 comments on commit bf45305

Please sign in to comment.