Skip to content

Commit

Permalink
(fleet/cert-manager) add CertManagerCertificateReadyStatus alert
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Jun 20, 2024
1 parent 57dc4bd commit 19a3b58
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions fleet/lib/cert-manager-conf/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ resources:
- clusterissuer-letsencrypt-staging.yaml
- clusterissuer-letsencrypt.yaml
- externalsecret-route53.yaml
- prometheusrule-cert-manager.yaml
18 changes: 18 additions & 0 deletions fleet/lib/cert-manager-conf/base/prometheusrule-cert-manager.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
labels:
lsst.io/rule: "true"
name: cert-manager
spec:
groups:
- name: cert-manager
rules:
- alert: CertManagerCertificateReadyStatus
annotations:
description: 'Certificate {{ $labels.namespace }}/{{ $labels.name }} is not ready.'
expr: certmanager_certificate_ready_status{condition="False"} == 1
for: 10m
labels:
severity: critical

0 comments on commit 19a3b58

Please sign in to comment.