Skip to content

Error loading example config #179

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

Closed
zhengtianbao opened this issue Sep 17, 2022 · 2 comments
Closed

Error loading example config #179

zhengtianbao opened this issue Sep 17, 2022 · 2 comments

Comments

@zhengtianbao
Copy link

When I follow the readme guide to run the example, json_exporter report error message:

caller=main.go:59 level=error msg="Error loading config" err="yaml: line 11: did not find expected key"

path: "{ .values[?(@.state == "INACTIVE")] }"

Replace the outermost double quotes with single quotes at Line 12, then it worked.

@turtletree
Copy link
Contributor

Had the same issue and the above suggested solution fixed it. Thanks :) @zhengtianbao
Please include the fix into the main branch, thanks!

@rustycl0ck
Copy link
Member

Fixed in #185

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants