pollypkg / polly

Parameterized Observability Packages
https://pollypkg.github.io/polly/
Apache License 2.0
84 stars 8 forks source link

Add rudimentary Prometheus rule and alert scuemata #28

Closed sdboyer closed 3 years ago

sdboyer commented 3 years ago

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

sdboyer commented 3 years ago

/cc @metalmatze