Skip to content

Commit 3645df0

Browse files
authored
Merge pull request #1273 from irajdeep/irajdeep/specify_bucket_for_reconcile_time_metrics
🌱 Specify buckets for "controller_runtime_reconcile_time_seconds" histogram metrics
2 parents 00e7f85 + f4118ca commit 3645df0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/internal/controller/metrics/metrics.go

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ var (
4343
ReconcileTime = prometheus.NewHistogramVec(prometheus.HistogramOpts{
4444
Name: "controller_runtime_reconcile_time_seconds",
4545
Help: "Length of time per reconciliation per controller",
46+
Buckets: []float64{0.005, 0.01, 0.025, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0,
47+
1.25, 1.5, 1.75, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 40, 50, 60},
4648
}, []string{"controller"})
4749

4850
// WorkerCount is a prometheus metric which holds the number of

0 commit comments

Comments
 (0)