Mixins are jsonnet templates that we can use to generate prometheus recording and alerting rules, and grafana dashboards.
In this repo, we generate the official kubernetes mixins with our custom config.
To update the current mixin to an upstream release:
- Check for a suitable release
- Run:
jb install github.com/kubernetes-monitoring/kubernetes-mixin@<branch_name>
To update the recording rules run:
jsonnet -J vendor -S -e 'std.manifestYamlDoc((import "mixin.libsonnet").prometheusRules)' | yq -P >files/prometheus-rules/rules.yml
To update the dashboards run:
jsonnet -J vendor -m files/dashboards -e '(import "mixin.libsonnet").grafanaDashboards'
Once you have generated updated mixins here, you can propagate them to