-
-
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
$rule_files parameter not respected #180
Comments
Hi @kamusin, thanks for bringing this up and the detailed explanation. Are you able to provide a patch for this? |
I'm working on a fix @bastelfreak, sorry for the delayed answer by the way. |
For now we are dealing this issue with this branch (https://github.com/kamusin/puppet-prometheus/tree/update-rule-files) since we do have hundreds of rules that need to be migrated (plus testing on the exporters) the resulting
|
@kamusin can you rebase? Code is now in server.pp. |
thanks I will try to test this on our |
@bramblek1 sorry for not leaving any updates in a while I just pushed a branch to test version |
@kamusin - please take a look at https://github.com/bramblek1/puppet-prometheus/tree/180_rule_files_param We made similar changes - I think possibly yours does not support the definition of $extra_alerts. |
okay this might require some extra work from my side since the
|
Isn't params gone now ? All the module hiera stuff has gotten rid of it. Have you rebased ? or are you trying to fix the older version? |
@bramblek1 correct. We migrated all logic from the params.pp file to hiera. |
@bramblek1 am running your Branch agains't our CI (sorry I assumed that your branch got merged into master which is not the case). |
this is going to take a while (we have a lot of references from
|
@kamusin - I think it would make more sense to test this change in isolation using the CI for this repo, rather than by proxy. If your code is referencing prometheus::params - your issue is that v 6.x is already incompatible. Should I just send this as a PR instead or do you want to rebase yours? |
feel free to send a PR @bramblek1 , yeah I have tons of references in our repository to |
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
I declared in the init.pp manifest file the following code, which is pretty straightforward.
after running Puppet on the host, I couldn't see any change related to the parameter $rule_files. Furthermore, the resulting prometheus configuration has set an empty array:
What are you seeing
I see no changes in regards of $rule_files parameters, and looks like this parameter is not in use at all. The resulting yaml configuration shows only:
if you read line 194-224:
You can notice that actually the value is calculated from $_rule_files
What behaviour did you expect instead
We are currently using version
3.1.0
in production|staging|dev but we want to upgrade to5.0.0
, however the first step is being able to set the rules parameter since at the moment is loading prometheus without any of our current rules, so I expect to have our rules in place, in a format such as:ps: there is another issue in regards of importing rules using that style, see golang/go#11862 for further information, but at the moment it works for us.
Please let me know if you need something from this side.
cheers!
The text was updated successfully, but these errors were encountered: