-
-
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
prometheus.yaml broken syntax when generated from hiera #108
Comments
Hi @TomaszUrugOlszewski, thanks for the issue. Are you able to provide a PR for this? |
I've just tested this using the YAML pasted above and I'm unable to replicate the issue. Enviroment: |
@TomaszUrugOlszewski can you please verify the comment from @benpollardcts |
Yes, of course. I'll try to find out what's wrong. |
I was able to recreate my issue on fresh vagrant environment with image debian/contrib-jessie64
Test code
Result
After changing line_width "-1" to "800":
To be honest, I have no idea how to debug it, I'm not familar with ruby. My suggestion is to change it from -1 to some bigger value than 80, or revert, to keep compability with older(?) puppet/puppetserver/debian versions. |
@TomaszUrugOlszewski one question: is the yaml file with the weird syntax working? I want to know whether this is just ugly looking or whether it affects the service. |
Initially I thought that it's broken syntax, but after removing my "dirty fix" looks like everything is fine. Works as expected. |
@TomekClearcode thanks. @TomaszUrugOlszewski can you confirm that the ugly looking syntax is working? |
Sorry @tuxmea, it was me under different login. Yes we can close it, I can live with it. |
@TomaszUrugOlszewski great. thanks. |
We have tried to update to the latest Puppet module version and we got an error with the Prometheus config test during the Puppet run.
We use the following setup:
Part of our working 'prometheus.yaml'
The is the not working config:
Could you please reopen this issue. |
I have the same issue with: puppetserver=5.3.3 And this definitely affects the service. UPD: I was trying to use prometheus server > v2, but did it wrong with hiera. Now I am able to use hiera right way and I have prom v2 and my config has right syntax. |
Closing due to lack of feedback, feel free to re-open |
Hello,
I keep prometheus config in hiera, looks like this:
After switching to latest master commit, my /etc/prometheus/prometheus.yaml transformed from nice yaml into "garbage":
After little digging I found out that it's related to change introduced in
681bc1b
Some details about environment
The text was updated successfully, but these errors were encountered: