Skip to content

Commit

Permalink
fix(hasSourceTenantsForMetrics): Fix the error message, it had metric…
Browse files Browse the repository at this point in the history
… and tenant swapped.
  • Loading branch information
rudo-thomas committed Mar 20, 2024
1 parent 664efab commit fd72575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/validator/others.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (h hasSourceTenantsForMetrics) Validate(group unmarshaler.RuleGroup, rule r
continue
}
if !slices.Contains(group.SourceTenants, tenant) {
errs = append(errs, fmt.Errorf("rule uses metric `%s` of the tenant `%s` tenant, you should set the tenant in the groups source_tenants settings", tenant, usedMetric.Name))
errs = append(errs, fmt.Errorf("rule uses metric `%s` of the tenant `%s`, you should set the tenant in the group's source_tenants settings", usedMetric.Name, tenant))
}
}
}
Expand Down

0 comments on commit fd72575

Please sign in to comment.