Verified Commit 9508a0fa authored by lelutin's avatar lelutin
Browse files

Make silence for backups at retirement longer (team#41875)

Backups are set to be deleted after 30 days by default, so expiring the
silence after only 7 days will make useless alerts surface. We actually
know how long the backups are kept for since there's a param for this to
the retire_all function.
parent 91c166b0
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -103,10 +103,7 @@ def retire_all(
            "alertname=BackupStalled",
            "alertname=BackupStalled",
        ],
        ],
        "silencing stalled backup issues related to retired host",
        "silencing stalled backup issues related to retired host",
        # 7 days is the time it takes for the `puppet_reporter` shim
        ends_at=f"in {retirement_delay_backups} days",
        # on the Puppet server to expire old records so they stop
        # bugging us in Prometheus.
        ends_at="in 7 days",
    )
    )
    silence.create(
    silence.create(
        Context(),
        Context(),