Skip to content
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

JSONPATH - AllowMissingKeys field #337

Open
kilianw opened this issue Oct 30, 2024 · 1 comment
Open

JSONPATH - AllowMissingKeys field #337

kilianw opened this issue Oct 30, 2024 · 1 comment

Comments

@kilianw
Copy link

kilianw commented Oct 30, 2024

It would be useful to enable the jsonpath AllowMissingKeys attribute on a per metrics basis.
i.e. in extractValue func, if there isn't a jsonpath match then return an empty response instead of an error.

https://pkg.go.dev/k8s.io/client-go/util/jsonpath#JSONPath.AllowMissingKeys

I'm happy to investigate the implementation if the feature is useful...

@SuperQ
Copy link
Contributor

SuperQ commented Feb 5, 2025

Yes, this would be useful if you want to implement it.

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

2 participants