-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
Feature request for recording rule support #69
Comments
Hi @bcoleman532, thanks for this issue. Are you able to add a PR for this? |
At this time, no. My workaround for this is a crude "just get it working" fix instead of doing it correctly. I'd love to be able to eventually provide a PR but between my newness to puppet and my lack of time to work on creating one it isn't something that I could provide any time soon. |
Are you able to share your hack as a PR? We can use that as a baseline to work together on the feature. Don't be scared about contribution, everybody started somewhere. |
Hi @bcoleman532 I'm facing the same problem as you, but I resolved using the "extra_alerts" parameter. How to use it:
|
This workaround is great for Prom 2.0 , it doesn't work for versions <2.0 as the templating does not recognise an "alert" with fields record/expr My $0.02 opinion is that $alerts, $extra_alerts are incorrectly named and really should be $rules and $extra_rules in line with $rule_files. @bastelfreak , @bcoleman532 I've got a branch for making the workaround valid for prom <2.0 if that is helpful for anyone else. |
It might work to use the |
prometheus < 2 is not an issue anymore, IMHO. |
IMHO sufficient solutions are provided. Also there was no significant activity for a few years |
While I can define where prometheus can find a recording rule file, this module gives me no means to specify the contents of that file.
Ideally I would like to be able to use the same module to handle both the prometheus configuration and recording rule definitions.
The text was updated successfully, but these errors were encountered: