joe-elliott / cert-exporter

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

Is it possible to use this exporter to monitor PEM files within each pod? #140

Open Reyzorcat opened 11 months ago

Reyzorcat commented 11 months ago

Is it possible to use this exporter to monitor PEM files within each pod? As far as I understand from the documentation, PEM files can only be monitored locally from the exporter pod itself or from the host using a daemonset. I would like to be able to monitor files within each cluster pod

joe-elliott commented 11 months ago

It should be. If you attach this container as a sidecar it can share the same volumes as the "main" container. Then you can configure cert-exporter to read the pem files on the shared volume.