-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why is "prometheus" label required on PrometheusRules? #150
Comments
Seems that the It may be worth allowing PrometheusRules that do not have a |
The operator also uses the For example, if there is/are |
Would it make sense to have an optional default prefix for created |
FWIW, we will have to think about this topic anyway. We have a ticket in our internal backlog concerning alerts that have the |
You could have a flag called "aggregage-rule" or something, that takes a template string. eg by default This could allow aggregating to one new PrometheusRule per discovered rule, (eg, if we specified Would also allow custom naming and remove dependencies on any particular labels. |
For your information, I have created a PR #153 that would suit our use-case. Feel free to add to it, change it etc |
@conallprendergast I merged your changes in a new PR and made some improvements to the implementation. |
When running in a cluster with PrometheusRules defined, the operator will error when the rules do not contain a
prometheus
label.Why is this label required?
The text was updated successfully, but these errors were encountered: