Summary
In this chapter, we’ve gone from zero to hero in Jsonnet. Take a deep breath and admire the fact that you’ve – most likely – just learned a whole new programming language. With Jsonnet, we can remove some of the tedium of managing YAML files – like those used by Prometheus – by hand. This can help to ensure more consistent and less error-prone management of these files over time by keeping our code DRY.
Not only that, but we’ve learned how the Monitoring Mixin specification enables projects to create reusable, configurable Prometheus rules and Grafana dashboards. By leveraging existing mixins (and/or making our own!), we can ensure greater observability and monitoring of our systems.
In our next chapter, we’ll continue exploring ways to mature our operations of Prometheus monitoring stacks using CI/CD tooling to perform tasks such as validation and testing.