diff --git a/config/prometheus/rules.yaml b/config/prometheus/rules.yaml index be1bc37..a6087d4 100644 --- a/config/prometheus/rules.yaml +++ b/config/prometheus/rules.yaml @@ -15,9 +15,9 @@ spec: - alert: CertificateApproachingExpiration annotations: message: >- - Certificate {{ $labels.namespace }}/{{ $labels.name }} is at 85% of its lifetime + Certificate {{ $labels.exported_namespace }}/{{ $labels.name }} is at 85% of its lifetime summary: >- - Certificate {{ $labels.namespace }}/{{ $labels.name }} is at 85% of its lifetime + Certificate {{ $labels.exported_namespace }}/{{ $labels.name }} is at 85% of its lifetime expr: | cert:time_to_expiration:sec/cert:validity_duration:sec < 0.15 labels: @@ -25,10 +25,10 @@ spec: - alert: CertificateIsAboutToExpire annotations: message: >- - Certificate {{ $labels.namespace }}/{{ $labels.name }} is at 95% of its lifetime + Certificate {{ $labels.exported_namespace }}/{{ $labels.name }} is at 95% of its lifetime summary: >- - Certificate {{ $labels.namespace }}/{{ $labels.name }} is at 95% of its lifetime + Certificate {{ $labels.exported_namespace }}/{{ $labels.name }} is at 95% of its lifetime expr: > cert:time_to_expiration:sec/cert:validity_duration:sec < 0.05 labels: - severity: critical \ No newline at end of file + severity: critical