autocert: add metrics for renewal count, total and next expiration (#2019)

This commit is contained in:
Caleb Doxsey 2021-03-25 08:03:04 -06:00 committed by GitHub
parent 7eac4283ed
commit 4cc697ace4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 102 additions and 0 deletions

View file

@ -67,6 +67,11 @@ func (r *metricRegistry) init() {
if err != nil {
log.Error().Err(err).Msg("telemetry/metrics: failed to register policy count metric")
}
err = registerAutocertMetrics(r.registry)
if err != nil {
log.Error().Err(err).Msg("telemetry/metrics: failed to register autocert metrics")
}
})
}