-
Notifications
You must be signed in to change notification settings - Fork 138
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
Process Exporter Service failing due to error in Config file #358
Comments
It should also be working on newline, could it be because of spacing with custom values? YAML can be quite unpredictable with scoping sometimes. It would be useful if you added some before / after code in jinja and templated to yaml to see what errors out. |
@prakyathraj please post the variable you are attempting to use. Btw, you can take a look at the alternative molecule scenario for more examples of a working config ansible/roles/process_exporter/molecule/alternative/molecule.yml Lines 18 to 29 in f3514a9
|
process_exporter_names attribute is passed as string in Json format as suggested in doc https://prometheus-community.github.io/ansible/branch/main/process_exporter_role.html .
Even though it works with default value, it fails when we set custom values. So, we need to pass value in same line instead of newline as done in manual
Fix
screenshot.Issue:
Fix:
The text was updated successfully, but these errors were encountered: