deckhouse icon indicating copy to clipboard operation
deckhouse copied to clipboard

[linter][monitoring] check prometheus rules

Open 31337Ghost opened this issue 4 years ago • 3 comments

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

31337Ghost avatar Sep 13 '21 10:09 31337Ghost

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.

stale[bot] avatar Jan 13 '22 09:01 stale[bot]

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.

stale[bot] avatar Apr 13 '22 13:04 stale[bot]

We can use a dedicated go.mod file for matrix tests and import Prometheus to validate rules.

nabokihms avatar May 26 '22 18:05 nabokihms