Skip to content

Commit 1fb86b6

Browse files
committed
Remove TotalRequests Prometheus metrics as it is not getting used
1 parent a0e9c1d commit 1fb86b6

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

pkg/webhook/internal/metrics/metrics.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,6 @@ import (
2323
)
2424

2525
var (
26-
// TotalRequests is a prometheus metric which counts the total number of requests that
27-
// the webhook server has received.
28-
TotalRequests = prometheus.NewCounterVec(
29-
prometheus.CounterOpts{
30-
Name: "controller_runtime_webhook_requests_total",
31-
Help: "Total number of admission requests",
32-
},
33-
[]string{"webhook", "succeeded"},
34-
)
35-
3626
// RequestLatency is a prometheus metric which is a histogram of the latency
3727
// of processing admission requests.
3828
RequestLatency = prometheus.NewHistogramVec(
@@ -46,6 +36,5 @@ var (
4636

4737
func init() {
4838
metrics.Registry.MustRegister(
49-
TotalRequests,
5039
RequestLatency)
5140
}

0 commit comments

Comments
 (0)