k8wiz
cert-manager
Easy
Troubleshooting

Which cert-manager metric holds the Unix time at which a Certificate's current X.509 certificate expires?

Select your answer:

Show answer and explanation

Answer: certmanager_certificate_expiration_timestamp_seconds

Explanation

certmanager_certificate_expiration_timestamp_seconds reports the Certificate's status.notAfter as Unix time, so subtracting time() gives the time left before expiry. The renewal metric reports status.renewalTime, which is when cert-manager plans to renew, usually well before expiry.

Read more about cert-manager