Skip to content

Commit

Permalink
Merge pull request #1712 from cezarygerard/patch-2
Browse files Browse the repository at this point in the history
Add buckets to gce_api_request_duration_seconds metric
  • Loading branch information
k8s-ci-robot authored May 19, 2022
2 parents 5a2c55a + 71d261b commit 9f3089f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/composite/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ func registerAPIMetrics(attributes ...string) *apiCallMetrics {
metrics := &apiCallMetrics{
latency: prometheus.NewHistogramVec(
prometheus.HistogramOpts{
Name: "gce_api_request_duration_seconds", // TODO: (shance) reconcile with cloudprovider
Help: "Latency of a GCE API call",
Name: "gce_api_request_duration_seconds", // TODO: (shance) reconcile with cloudprovider
Help: "Latency of a GCE API call",
Buckets: []float64{.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10, 20, 40, 80, 160, 320},
},
attributes,
),
Expand Down

0 comments on commit 9f3089f

Please sign in to comment.