Skip to content

Commit

Permalink
feat: added alert for expired certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
Hardikl committed Jun 21, 2024
1 parent ef462ae commit 618b649
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion container/prometheus/alert_rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,13 @@ groups:
severity: "warning"
annotations:
summary: "Certificate [{{ $labels.name }}] will be expiring on [{{ $labels.expiry_time }}]"
description: "Certificate [{{ $labels.name }}] will be expiring on [{{ $labels.expiry_time }}]"
description: "Certificate [{{ $labels.name }}] will be expiring on [{{ $labels.expiry_time }}]"

# Certificates expired
- alert: Certificates expired
expr: (certificate_expiry_time{} - time()) < 0
labels:
severity: "critical"
annotations:
summary: "Certificate [{{ $labels.name }}] has been expired on [{{ $labels.expiry_time }}]"
description: "Certificate [{{ $labels.name }}] has been expired on [{{ $labels.expiry_time }}]"

0 comments on commit 618b649

Please sign in to comment.