Skip to content

Commit

Permalink
Specify quantiles for kubenurse_request_duration explicitly
Browse files Browse the repository at this point in the history
Ran into prometheus/client_golang#600 while updating
that client from 0.9 to 1.1. Now we got the quantiles back!
  • Loading branch information
djboris9 committed Aug 26, 2019
1 parent 9c917e4 commit 02e2734
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ var (
// DurationSummary provides the kubenurse_request_duration metric
DurationSummary = prometheus.NewSummaryVec(
prometheus.SummaryOpts{
Name: "kubenurse_request_duration",
Help: "Kubenurse request duration partitioned by error type",
MaxAge: 1 * time.Minute,
Name: "kubenurse_request_duration",
Help: "Kubenurse request duration partitioned by error type",
MaxAge: 1 * time.Minute,
Objectives: map[float64]float64{0.5: 0.05, 0.9: 0.01, 0.99: 0.001},
},
[]string{"type"},
)
Expand Down

0 comments on commit 02e2734

Please sign in to comment.