Skip to content

giantswarm/giantswarm-kubernetes-mixin

Repository files navigation

Customizing upstream Prometheus Rules and Grafana Dashboards

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.

Update

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>

Prometheus rules (records)

To update the recording rules run:

jsonnet -J vendor -S -e 'std.manifestYamlDoc((import "mixin.libsonnet").prometheusRules)' | yq -P >files/prometheus-rules/rules.yml

Grafana dashboards

To update the dashboards run:

jsonnet -J vendor -m files/dashboards -e '(import "mixin.libsonnet").grafanaDashboards'

Next steps

Once you have generated updated mixins here, you can propagate them to

About

Customising upstream Grafana dashboards for Giant Swarm

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published