[linter][monitoring] check prometheus rules
Preflight Checklist
- [X] I agree to follow the Code of Conduct that this project adheres to.
- [X] I have searched the issue tracker for an issue that matches the one I want to file, without success.
Use case. Why is this important?
For now, we are not testing Prometheus rules. And if we merge misformatted rules to the main branch it will break the Deckhouse queue because Helm won't be able to deploy rules to the cluster.
Proposed Solution
Consider implementing unit tests of Prometheus rules using the promtool.
Additional Information
No response
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
We can use a dedicated go.mod file for matrix tests and import Prometheus to validate rules.