Closed bchess closed 2 years ago
Can you provide more details ?
Vault versions ? how to reproduce ?
removing "serial", "common_name", "organization", "organizational_unit", "country", "province", "locality" it's not a solution we will lose information for Alert or Aggregation.
In fact you won't have metric for a specific cert.
The code as-is isn't setting the values for these other labels, see https://github.com/aarnaud/vault-pki-exporter/blob/master/pkg/vault-mon/prometheus.go#L92:
certcount.WithLabelValues(pkiname).Set(float64(len(pki.certs)))
Since it's the count of all certs, i.e. an aggregation, there's no "common_name" etc that'd make sense here
Oh, I see, It was added from a previous PR. Thanks for the fixed.
Fixing this panic