Menu
General availability (GA)
Open source
Grafana Cloud
mimir.rules.kubernetes
mimir.rules.kubernetes discovers PrometheusRule Kubernetes resources and loads them into a Mimir instance.
It can also federate rules from different source tenants into a target Mimir tenant by interpreting the monitoring.grafana.com/source_tenants annotation on PrometheusRule resources.
- You can specify multiple
mimir.rules.kubernetescomponents by giving them different labels. - Kubernetes label selectors let you limit the
NamespaceandPrometheusRuleresources the component considers during reconciliation. - Compatible with the Ruler APIs of Grafana Mimir, Grafana Cloud, and Grafana Enterprise Metrics.
- Compatible with the
PrometheusRuleCRD from theprometheus-operator. - This component accesses the Kubernetes REST API from within a Pod.
Note
You must configure Role-based access control (RBAC) in Kubernetes so Alloy can access the Kubernetes REST API.
Note
Alloy version 1.1 and higher supports clustered mode in this component. When you use this component as part of a cluster of Alloy instances, only a single instance from the cluster updates rules using the Mimir API.
Usage
mimir.rules.kubernetes "<LABEL>" {
address = "<MIMIR_RULER_URL>"
}Arguments
You can use the following arguments with mimir.rules.kubernetes: