MCPcopy Index your code
hub / github.com/cortexproject/cortex / BackUpRuleGroups

Method BackUpRuleGroups

pkg/ruler/manager.go:195–199  ·  view source on GitHub ↗
(ctx context.Context, ruleGroups map[string]rulespb.RuleGroupList)

Source from the content-addressed store, hash-verified

193}
194
195func (r *DefaultMultiTenantManager) BackUpRuleGroups(ctx context.Context, ruleGroups map[string]rulespb.RuleGroupList) {
196 if r.rulesBackupManager != nil {
197 r.rulesBackupManager.setRuleGroups(ctx, ruleGroups)
198 }
199}
200
201// syncRulesToManager maps the rule files to disk, detects any changes and will create/update the
202// users Prometheus Rules Manager.

Callers 1

TestBackupRulesFunction · 0.95

Calls 1

setRuleGroupsMethod · 0.80

Tested by 1

TestBackupRulesFunction · 0.76