istio-csr icon indicating copy to clipboard operation
istio-csr copied to clipboard

metrics to check certificate expiry for istio workloads ?

Open anannaya opened this issue 3 years ago • 1 comments

s there any metrics get cert exipry for istio workloads ? I can only get the istiod and rootCA/intermedia CA from the certmanager_certificate_expiration_timestamp_seconds metric.

anannaya avatar Feb 03 '22 09:02 anannaya

Hi @anannaya, AKAIK istio only exposes the following Prometheus metric, which is not very useful for certificates that are signed with a TTL =< 24h.

# TYPE envoy_server_days_until_first_cert_expiring gauge
envoy_server_days_until_first_cert_expiring{} 0

What is the objective of getting this metric? Perhaps there may be other metrics which indicate the same behaviour, such as cert_manager_istio_csr_tls_provider_certificate_requests on istio-csr.

JoshVanL avatar Feb 03 '22 10:02 JoshVanL