github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/hack/README.md (about)

     1  # Third party chart hacks
     2  
     3  ## [update_prometheus_rules.sh](update_prometheus_rules.sh)
     4  
     5  This script updates Prometheus alerting and recording rules by adding `verrazzano_cluster` to `on` and `by` clauses. `on` and `by` in
     6  Prometheus Rules result in all labels not in the `on` and `by` clauses being dropped from the alerts. Without the `verrazzano_cluster`
     7  label it is impossible to determine which cluster fired the alert (when running more than one cluster).
     8  
     9  When upgrading the kube-prometheus-stack and thanos charts from upstream, run this script to update the rules.