Skip to content

Repository for Grafana/Kibana dashboards and Prometheus alerting rules

Notifications You must be signed in to change notification settings

osism/kolla-operations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4b70d1c · Jan 18, 2025

History

46 Commits
Oct 18, 2023
Jan 10, 2025
Jan 10, 2025
Jan 9, 2025
Jan 18, 2025
Jan 9, 2025
Feb 10, 2024
Jan 18, 2025
Jan 9, 2025

Repository files navigation

kolla-operations

Repository for Grafana dashboards and Prometheus alerting rules. For use with the Prometheus exporters from Kolla.

Usage

While it is possible to directly place .rules files into the prometheus/ folder and grafana dashboards into grafana/dashboards or a subfolder thereof, use of monitoring-mixins is encouraged.

Build the jsonnet container

Build the mixin container to manage mixins

podman build -t mixins .src

Building mixins

jsonnet-bundler is used to fetch mixins and their dependencies from upstream.

  • Install mixin dependencies

    podman run -it -v .:/srv localhost/mixins:latest jb install
    
  • Build alerts, rules and dashboards

    podman run -it -v .:/srv localhost/mixins:latest
    
  • Check all changes into git, including the generated alerts, rules and dashboards

Adding new mixins

  • Add any new upstream mixins to `.src/jsonnetfile.json
  • Add a local libsonnet for any new mixins in `.src/mixins/$DASHBOARDSUBFOLDER/$NAME.libsonnet
  • Apply any customizations to the local $NAME.libsonnet
  • Build mixins
  • Check all changes into git, including the .src/jsonnetfile.lock.json

Updating mixins

  • Update the jsonnet-bundler dependencies in `.src/jsonnetfile.lock.json

    podman run -it -v .:/srv localhost/mixins:latest jb update
    
  • Check all changes into git, including the .src/jsonnetfile.lock.json