Using Jsonnet to Package Together Dashboards, Alerts and Exporters
summary
Packages dashboards, alerts and exporters as reusable Jsonnet Monitoring Mixins that render into Prometheus alerting rules, Grafana JSON and YAML. Uses Jsonnet features (merge operator, hidden _config, string substitution) so label selectors are injected at render time rather than baked in. Provides a simple package manager (JB) that vendors mixins into a vendor/ dir and a manifest command to emit dashboards, recording rules and configmaps. Works with Kubernetes (ksonnet/kson) and non‑Kube targets like Consul and Cassandra.
AI-written summary · about
chapters (24)
- 0:00Introduction
- 1:20Sharing Dashboards
- 2:02Common Issues
- 2:43Takehome
- 3:51What we want
- 4:48Configurable extensible
- 6:10Best config language
- 8:36Jsonnet
- 9:19JSON
- 15:12Config
- 17:13Prometheus Alert Definition
- 17:32Download Install and Stay Up to Date
- 17:50Jsonnet Bundler
- 18:32Installing Packages
- 19:31Config Override
- 20:01Rendering
- 20:18Mix Tool
- 20:43Deployment agnostic
- 21:00Demo
- 24:38CaseOnIt
- 25:20Prometheus Mixins
- 26:16Monitoring Mixins
- 27:47Playbooks
- 28:17Shoutouts
related talks
30mDashboard as Code
25mNo Jsonnet? No Problem! Prometheus in Perses, Powered by Go
31mService cockpit - developer friendly Grafana based monitoring aggregator
06mIGNITE: Observability with Grafana & Prometheus for Kafka on Kubernetes (CFK)
27mMonitoring as Code: Managing your Observability Assets the Cloud-Native Way
11mBuilding lightweight observability system for Lean Teams
24mPractical Kubernetes Monitoring with Prometheus
25mGrafana as Code-An Open Source Observability Solution
