chartcheck

command
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command chartcheck checks the chart rendered with the all-options values, which enable the PrometheusRule, the VMRule and both deliveries of the dashboard and keep the default rule values (C-19.FR-3, C-19.FR-4, C-19.FR-9):

  • the PrometheusRule and the VMRule have the same spec: one group muster with the rules of the chart rules table of reference.md, each with its severity, for and default expression, a summary, a description and the runbook_url that the Deployment's MUSTER_RUNBOOK_BASE_URL and the appVersion give, as internalalerts.RunbookVersion does;
  • the dashboard ConfigMap holds muster.json with the uid muster, the title Muster, the variables datasource, namespace, job, integration, route and destination, and the rows Overview, Ingestion, Delivery and Platform, each with panels whose queries use the data source variable;
  • the regex of each entity variable takes the id as the value and the name as the text from the series of its query_result as Grafana prints them, with the labels in the sorted order Prometheus returns them in;
  • every metric of a rule expression, a panel query or a variable query is in the metric catalogue, a histogram through its _bucket, _sum or _count series; up, process_* and go_* need no entry;
  • a GrafanaDashboard references the dashboard ConfigMap and has an instanceSelector.

It prints one line per problem and exits with 1; make helm-check runs it. With -extract-rules it checks nothing and writes the spec of the PrometheusRule as a Prometheus rule file, which make rules-test passes to promtool; with -tests every rule must have its unit test <dir>/<alertname>.yaml and every unit test a rule.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL