From 691ce066fb0adb8d2df2ae5580d5b1b2d2e2beba Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Tue, 14 Sep 2021 23:10:43 +0200 Subject: [PATCH] backfill: Do not align the start of the group since we align every rule. Signed-off-by: Julien Pivotto --- cmd/promtool/rules.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/promtool/rules.go b/cmd/promtool/rules.go index e19b1605e..8993d6694 100644 --- a/cmd/promtool/rules.go +++ b/cmd/promtool/rules.go @@ -81,10 +81,9 @@ func (importer *ruleImporter) importAll(ctx context.Context) (errs []error) { for name, group := range importer.groups { level.Info(importer.logger).Log("backfiller", "processing group", "name", name) - stimeWithAlignment := group.EvalTimestamp(importer.config.start.UnixNano()) for i, r := range group.Rules() { level.Info(importer.logger).Log("backfiller", "processing rule", "id", i, "name", r.Name()) - if err := importer.importRule(ctx, r.Query().String(), r.Name(), r.Labels(), stimeWithAlignment, importer.config.end, group); err != nil { + if err := importer.importRule(ctx, r.Query().String(), r.Name(), r.Labels(), importer.config.start, importer.config.end, group); err != nil { errs = append(errs, err) } }