-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Autogenerate a "real" set of rules files consumable by prometheus #110
Comments
A lot of alerting rules here are taken from monitoring mixin projects (which produce "real" rule files). For more, you can see for example following sub-projects:
Mixins are what prometheus community agreed on to provide a customizable package containing recording rules, alerts, and grafana dashboards. For more info on mixins you can read in https://github.com/monitoring-mixins/docs And mixins can be combined together and inherited. One example of more advanced use-case could be seen in https://github.com/coreos/kube-prometheus project. |
Thanks for the info, I’ll have a look. |
Hey @paulfantom, so I've looked at these and are non the wiser for it! Are you suggesting that it would be a good idea or bad idea to also produce some immediately useable templates? If good idea, then I can't immediately see how these mixins help get the rules.yml file into a usable collection of prometheus consumable YAML files? |
Mixins are written in jsonnet language, which allows overriding any parameter, so I don't see any benefit of using templating. It isn't the easiest path to follow but provides the best customizability options, which is quite important when someone creates a library (which mixins classify as).
If you mean In the end it is @samber decision if he wants this repository to be a guideline (as it is now) or a library (if templating was introduced). :) |
I think this issue deserves to be in the README.md or around. I also was wondering why even code snippets are not directly usable in the configs and now I see why. But how many still do have this question? |
You can run Anyway, a better tooling should be used when available. |
@samber I also stumbled upon this: So far I saw As a user, I wonder what No criticism at all, but maybe indeed it would be good to have some statements on the philosophy of this repo right inside the README. |
I agree with @sjentzsch. Rather than diverging from the upstream mixin projects it would be much better if this project would just unify all of these projects in one place without altering them and add any other missing mixins for different categories (redis, kafka etc.) which might not have existing mixin projects. Enhancements should be contributed to the upstream projects so we as the users can enjoy well maintained sets of rules. The way this can be achieved is by setting up a sync job which fetches upstream changes daily (I believe the prometheus-operator project does that) and making sure these changes are not modified. |
Copy and pasting these rules is ok, but it would be easier if there was a generated set of rules files from
rules.yml
that would "just work".Is there any reason this isn't generated? If not are there any templating tools that anyone knows of that could achieve this?
The text was updated successfully, but these errors were encountered: