The best option is to use the Prometheus Operator "PrometheusRule" object. This will allow you to directly push rules to your clusters where they need to be.
See the operator documentation: https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/user-guides/alerting.md On Fri, Oct 22, 2021 at 9:31 AM jthunder <[email protected]> wrote: > Hi guys, > > We use Prometheus to monitor K8s clusters and applications on them. We > have create 500-800 alert rules to be applied to Prometheus. But we don't > find any doc about how to arrange these rules. > > Currently we have 3 options: > 1. One file per rule; or > 2. One file including all rules; or > 3. Spread all rules to 5-8 files based on clusters or severity; > > In addition, we need to modify these rules and trigger Prometheus to > reload them. > > Any suggestions? > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Prometheus Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/25496f59-f441-4d69-b10e-e833a7334f70n%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/25496f59-f441-4d69-b10e-e833a7334f70n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CABbyFmr7Fgm14L3P%3D6Ld6REnbSF%2B3maWYvDzP-Pc9Kqn62nQhA%40mail.gmail.com.

