Method
BackUpRuleGroups
(ctx context.Context, ruleGroups map[string]rulespb.RuleGroupList)
Source from the content-addressed store, hash-verified
| 193 | } |
| 194 | |
| 195 | func (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. |