# Source: bosh-exporter
---

- type: replace
  path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/custom_rules?/-
  value:
    name: BoshStemcellsNotInSync
    rules:
      - alert: BoshStemcellsNotInSync
        expr: "sum by (bosh_stemcell_version) (bosh_deployment_stemcell_info) != 3"
        for: 12h
        labels:
          severity: warning
        annotations:
          summary: "Bosh deployment stemcell versions are not in sync"
          description: "The three bosh deployments should have the same stemcell version, if this alert fires either deploys are taking a long time or paas-bootstrap and paas-cf are not in sync"

Add alert to fire if stemcells are not in sync
Add alert to fire if stemcells are not in sync

Synchronising stemcell versions across paas-cf and paas-bootstrap is
important but easy to miss

Have an alert which tells us to do so if we have forgotten

Signed-off-by: Toby Lorne <527052641d65eef236eeef9545b2acac74c35d57@digital.cabinet-office.gov.uk>
