Replies: 1 comment 3 replies
-
|
No, I would not put recording or alerting rule groups in the fallback/runtime config. In Cortex, the "fallback config" knob in the generated config reference is under Alertmanager: alertmanager:
fallback_config_file: ...That is Alertmanager configuration fallback, not ruler rule-group loading. Runtime config examples are for overrides and other runtime settings; they are not Prometheus rule files. Rules belong to the ruler path: configure groups:
- name: example
rules:
- record: up:count
expr: count(up)So the deployable Kubernetes shape is usually: package the rule YAML separately and provision it into the ruler storage/API as part of your release process. If you want CRD-based |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I am working on a setup right now where we install several clusters with several Mimir and Grafana stacks.
We want to ensure that we deploy the same alerting rules and recording rules on each of these Mimir instances.
Is there any good way to import Prometheus alerts and recording rules to all these Mimir instances? Can we just write everything into the fallback config and Mimir loads this for the Anonymous Tenant? (We do not use tenants).
Would this work?
I am aware that the
mimirtoolexist, but we want to avoid using it and really want something that we deploy into the cluster.It is very sad that Custom Resource Definitions (such as PrometheusRule) are ignored by Mimir and clicking through dozens of Grafanas for configuring alerts is also not really an option.
Beta Was this translation helpful? Give feedback.
All reactions