gardener / gardener-extension-shoot-cert-service

Gardener extension controller for certificate services for shoot clusters.
https://gardener.cloud
Apache License 2.0
10 stars 35 forks source link

add certificate expiration alert #174

Closed cathyzhang05 closed 1 year ago

cathyzhang05 commented 1 year ago

How to categorize this PR?

/area monitoring /kind enhancement

What this PR does / why we need it: New metrics "cert_management_cert_object_expire" added, based on the new metrics adding alert to monitor the certificate object expiration date, if less than 3 days, sending emails to operator and users.

Which issue(s) this PR fixes: Fixes #

Special notes for your reviewer:

Release note: NONE

gardener-robot-ci-3 commented 1 year ago

Thank you @cathyzhang05 for your contribution. Before I can start building your PR, a member of the organization must set the required label(s) {'reviewed/ok-to-test'}. Once started, you can check the build status in the PR checks section below.

cathyzhang05 commented 1 year ago

Tested the extension shoot-cert-service in my local, the newly created alert has been created in Prometheus:

Screenshot 2023-07-14 at 17 25 10
MartinWeindel commented 1 year ago

@cathyzhang05 Please see my sub-PR on your PR: https://github.com/cathyzhang05/gardener-extension-shoot-cert-service/pull/1