joe-elliott / cert-exporter

A Prometheus exporter that publishes cert expirations on disk and in Kubernetes secrets
Apache License 2.0
316 stars 87 forks source link

fix(#90): certs expiration counts #91

Closed faust64 closed 2 years ago

faust64 commented 2 years ago

As reported by @rajvml

I confirm I did experience with the same issue: when the cert-exporter is used to collect metrics exclusively from the kubernetes API, series such as cert_exporter_kubeconfig_expires_in_seconds are not defined, which breaks those expressions.

I've been using something similar to this fix for quite some time ( https://gitlab.com/synacksynack/opsperator/docker-operator/-/blob/master/roles/prometheus/files/dashboards/Cert_Manager.json ), should have submitted this a while ago ...

joe-elliott commented 2 years ago

Awesome, thanks!