Open bkamin29 opened 3 years ago
Will look into it - it would be bit complex to validate every 'measurement' section for every backend/exporters, but we could use Yamale or something similar to validate the main schema.
Will look into it - it would be bit complex to validate every 'measurement' section for every backend/exporters, but we could use Yamale or something similar to validate the main schema.
yes, it's enough !
Moving this to v3
as we can validate schemas automatically using the OpenSLO (oslo
) tool - which requires us to move to OpenSLO specification beforehand.
Hi @bkamin29, is this feature still of interest to you?
Yes :)
Ideally, what is the expected behavior in a CI pipeline? Is it an extra command (for example slo-generator validate ...
) that you can call on its own, that returns a non-zero status code if there is an error and stops the pipeline? Or do you want this validation to happen when the files are actually loaded? If the latter, what is the expected behavior from the SLO Generator?
Have a tool/function to valide the good schema of SLO_CONFIG_FILE and ERROR_BUDGET_POLICY_FILE And use it on CICD