Skip to content

Commit

Permalink
Fix Labels ManagementClusterCertificateIsMissing
Browse files Browse the repository at this point in the history
  • Loading branch information
njuettner committed Jan 24, 2024
1 parent 8321c47 commit 2def7c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
topic: security
- alert: ManagementClusterCertificateIsMissing
annotations:
description: '{{`Cannot renew Certificate for Secret {{ $labels.namespace }}/{{ $labels.certificatename }} on {{ $labels.cluster_id }} because it is missing.`}}'
description: '{{`Cannot renew Certificate for Secret {{ $labels.namespace }}/{{ $labels.certificatename }} because it is missing.`}}'
opsrecipe: managed-app-cert-manager/missing-certificate-for-secret/
expr: count(cert_exporter_secret_not_after{secretkey="tls.crt", certificatename!=""}) by (certificatename,namespace) unless count(label_replace(cert_exporter_certificate_cr_not_after, "certificatename", "$1", "name", "(.*)")) by (certificatename,namespace)
for: 5m
Expand Down

0 comments on commit 2def7c3

Please sign in to comment.