-
Notifications
You must be signed in to change notification settings - Fork 38
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
Custom object template - panic if counter list item indent differs #704
Labels
Comments
@mamoep Thanks for reporting it. We are aware of this issue. We'll look into solving it. |
cgrinds
added a commit
that referenced
this issue
Nov 29, 2021
cgrinds
added a commit
that referenced
this issue
Nov 29, 2021
cgrinds
added a commit
that referenced
this issue
Nov 30, 2021
* fix: improve template yaml parsing Fixes #704 * fix: invalid yaml in testcases * fix: remove earlier yaml parser
Verified using mamoep included failing netport.yaml. Poller starts and collects without error.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I tried to create a custom object template via ansible with
{{ item | to_nice_yaml(indent=2) }}
. The generated output is valid yaml, but the list items undercounter:
are not indented as documented for harvest.Example template (failing):
Example template (working):
Environment
Provide accurate information about the environment to help us reproduce the issue.
bin/harvest start
To Reproduce
Steps to reproduce the behavior:
define custom template as described above
Expected behavior
Collect defined custom metrics
Actual behavior
Template is not picked up and metrics dont get collected
Possible solution, workaround, fix
Indent counter list entries.
Additional context
Log output
The text was updated successfully, but these errors were encountered: