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

[FR] Add support for checking/validating provided config file #243

Open
rustycl0ck opened this issue Jun 27, 2023 · 0 comments
Open

[FR] Add support for checking/validating provided config file #243

rustycl0ck opened this issue Jun 27, 2023 · 0 comments

Comments

@rustycl0ck
Copy link
Member

Instead of detecting errors in parsing jsonpath or in extracting values at runtime, there should be an option to 1) run config file syntax check separately without running the exporter server 2) check config file syntax at startup and exit if validation fails

These checks/validation can include things:

  • confirm that all the jsonpath syntax fields are valid expressions
  • if a sample data json file is available, check the config file parsing against the data file independently (this will allow users to fix their config files faster and also will help them in figuring out alternate approaches to achieve their metric parsing)
  • confirm that module.valid_status_codes has valid HTTP status codes
  • confirm that module.http_client_config has valid values
  • confirm that provided metric types and value types are valid enum strings
  • if/when available, regex expressions are valid (based on feat: filter metric value using regex #240)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant