# Source: paas-metrics
---

- type: replace
  path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/custom_rules?/-
  value:
    name: AivenEstimatedCostHigh
    rules:
      - alert: AivenEstimatedCostHigh
        expr: delta(paas_aiven_estimated_cost_pounds[24h]) * 30 > 28500
        labels:
          severity: critical
        annotations:
          summary: "Aiven estimated cost is high, possibly need to alert finance."
          description: "The estimated monthly cost of Aiven is currently £{{ $value | printf \"%.2f\" }}, possibly need to alert finance."

# Source: paas-metrics
---

- type: replace
  path: /instance_groups/name=prometheus2/jobs/name=prometheus2/properties/prometheus/custom_rules?/-
  value:
    name: AivenEstimatedCostHigh
    rules:
      - alert: AivenEstimatedCostHigh
        expr: delta(paas_aiven_estimated_cost_pounds[24h]) * 30 > 35000
        labels:
          severity: critical
        annotations:
          summary: "Aiven estimated cost is high, possibly need to alert finance."
          description: "The estimated monthly cost of Aiven is currently £{{ $value | printf \"%.2f\" }}, possibly need to alert finance."

Update Aiven cost alert value
Update Aiven cost alert value

Our Aiven spending has increased. We are able to raise the alerting
limit as it is still within the limit of our agreed budget.
