**What this PR does / why we need it**:
This PR changes the `GeneratorURL` associated with alerts generated by
Loki. The new `GeneratorURL` uses a Grafana URL path.
pull/9208/head^2
Mohamed-Amine Bouqsimi2 years agocommitted byGitHub
flagext.DeprecatedFlag(f,"ruler.num-workers","This flag is no longer functional. For increased concurrency horizontal sharding is recommended",util_log.Logger)
cfg.ExternalURL.URL,_=url.Parse("")// Must be non-nil
f.Var(&cfg.ExternalURL,"ruler.external.url","URL of alerts return path.")
f.Var(&cfg.ExternalURL,"ruler.external.url","Base URL of the Grafana instance.")
f.StringVar(&cfg.DatasourceUID,"ruler.datasource-uid","","Datasource UID for the dashboard.")
f.DurationVar(&cfg.EvaluationInterval,"ruler.evaluation-interval",1*time.Minute,"How frequently to evaluate rules.")
f.DurationVar(&cfg.PollInterval,"ruler.poll-interval",1*time.Minute,"How frequently to poll for rule changes.")