Skip to content

Commit

Permalink
updated histogram buckets
Browse files Browse the repository at this point in the history
  • Loading branch information
chengcheng-pei authored and seldondev committed Jun 16, 2020
1 parent 987d355 commit 051756c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion executor/api/metric/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func NewClientMetrics(spec *v1.PredictorSpec, deploymentName string, modelName s
prometheus.HistogramOpts{
Name: ClientRequestsMetricName,
Help: "A histogram of latencies for client calls from executor",
Buckets: prometheus.DefBuckets,
Buckets: []float64{0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10},
},
[]string{DeploymentNameMetric, PredictorNameMetric, PredictorVersionMetric, ServiceMetric, ModelNameMetric, ModelImageMetric, ModelVersionMetric, "method", "code"},
)
Expand Down
2 changes: 1 addition & 1 deletion executor/api/metric/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func NewServerMetrics(spec *v1.PredictorSpec, deploymentName string) *ServerMetr
prometheus.HistogramOpts{
Name: ServerRequestsMetricName,
Help: "A histogram of latencies for executor server",
Buckets: prometheus.DefBuckets,
Buckets: []float64{0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10},
},
[]string{DeploymentNameMetric, PredictorNameMetric, PredictorVersionMetric, ServiceMetric, "method", "code"},
)
Expand Down

0 comments on commit 051756c

Please sign in to comment.