x509-certificate-exporter
x509-certificate-exporter copied to clipboard
[feature request]Handel duplicate cert
With version 3.x.x, the server doesn't crash when Kubernetes secret has a duplicate certificate but it does not expose other certs' metrics. It would be good to either directly ignore the duplicate certs or give the option to the user via a flag to ignore these.
~ # curl http://172.20.72.13:9793/metrics
An error has occurred while serving metrics:
collected metric "x509_cert_error" { label:{name:"secret_key" value:"pubkey"} label:{name:"secret_name" value:"certs-server"} label:{name:"secret_namespace" value:"xxx"} xxx:{value:1}} was collected before with the same name and label values
@muzammilrehman this should be bug if it is 100% reproducible
I've encountered the same problem. I would suggest that if a duplicate cert is found then it's simply ignored and an error printed to the logs.