This introduces a really basic first pass at defining scuemata for Prometheus rules and alerts. Having these scuemata is prerequisite to being able to actually set up meaningful CI on the examples/pops in this repo - without them, we're not actually validating anything at all about the rules and alerts contained in those pops.
i...really don't know where to check and verify that these schema actually complete representations of what Prometheus allows in its rules and alerts, or if there's any stricter constraints than string that could be applied which would better reflect the constraints imposed by Prometheus itself. But this at least gets something we can iterate on into place!
(This was the product of the community hack session from Aug 3 - thanks to @rgeyer and @matthewnolf for coming and asking all your great questions!)
This introduces a really basic first pass at defining scuemata for Prometheus rules and alerts. Having these scuemata is prerequisite to being able to actually set up meaningful CI on the examples/pops in this repo - without them, we're not actually validating anything at all about the rules and alerts contained in those pops.
i...really don't know where to check and verify that these schema actually complete representations of what Prometheus allows in its rules and alerts, or if there's any stricter constraints than
string
that could be applied which would better reflect the constraints imposed by Prometheus itself. But this at least gets something we can iterate on into place!(This was the product of the community hack session from Aug 3 - thanks to @rgeyer and @matthewnolf for coming and asking all your great questions!)
Fixes #16