Files
Alexandr 5af763ebb1
Some checks failed
terraform-dev / validate (push) Successful in 6s
terraform-dev / plan (push) Failing after 11s
terraform-dev / apply (push) Has been skipped
feat: add postgres/gitea/blackbox alerts and more node alerts
2026-04-03 11:34:08 +03:00

20 lines
709 B
YAML

name: "DEV ADIBROV - SSL Certificate Expiring Soon"
expression: |
(probe_ssl_earliest_cert_expiry{job="blackbox"} - time()) / 86400
threshold: 14
for: "1h"
condition_type: "lt"
need_reduce: true
reducer_type: "min"
no_data_state: "OK"
exec_err_state: "Error"
labels:
service: "blackbox"
severity: "warning"
team: "infra"
summary: |
SSL сертификат истекает через {{ printf "%.0f" $values.B.Value }} дней: {{ $labels.instance }}
description: |
SSL сертификат для {{ $labels.instance }} истекает менее чем через 14 дней.
Необходимо обновить сертификат до истечения срока действия.