Skip to content

Commit

Permalink
Initialize unsealErrorsTotal with "fetch" = 0
Browse files Browse the repository at this point in the history
Add part of the initialization from bitnami-labs#463
See bitnami-labs#543
  • Loading branch information
simon-anz authored Jul 20, 2021
1 parent 62cfb26 commit b1bc0f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/controller/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ func init() {
prometheus.MustRegister(conditionInfo)
prometheus.MustRegister(httpRequestsTotal)
prometheus.MustRegister(httpRequestDurationSeconds)
// Initialise known label values
unsealErrorsTotal.WithLabelValues("fetch")
}

// ObserveCondition sets a `condition_info` Gauge according to a SealedSecret status.
Expand Down

0 comments on commit b1bc0f8

Please sign in to comment.