Skip to content

Commit

Permalink
remove label requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoBrigitte committed Jun 21, 2024
1 parent 9b70437 commit 23fce3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func main() {
}

// Debug
metrics.ReconcileError.WithLabelValues("cluster").Add(42)
metrics.ReconcileError.WithLabelValues().Add(42)
setupLog.Info("starting manager")
if err := mgr.Start(ctrl.SetupSignalHandler()); err != nil {
setupLog.Error(err, "problem running manager")
Expand Down
2 changes: 1 addition & 1 deletion pkg/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var (
ReconcileError = prometheus.NewCounterVec(prometheus.CounterOpts{
Name: "observability_operator_reconcile_error_total",
Help: "Total number of reconciliations error",
}, []string{"controller", "result"})
})
)

func init() {
Expand Down

0 comments on commit 23fce3a

Please sign in to comment.