Skip to content

Commit

Permalink
Reduce bucket factor for relative performance metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
charleskorn committed Jun 11, 2024
1 parent 3917679 commit d2f65bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/querytee/proxy_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ func NewProxyMetrics(registerer prometheus.Registerer) *ProxyMetrics {
Namespace: queryTeeMetricsNamespace,
Name: "backend_response_relative_duration_seconds",
Help: "Time (in seconds) of preferred backend less secondary backend.",
NativeHistogramBucketFactor: 2,
NativeHistogramBucketFactor: 1.1,
}, []string{"route"}),
proportionalDuration: promauto.With(registerer).NewHistogramVec(prometheus.HistogramOpts{
Namespace: queryTeeMetricsNamespace,
Name: "backend_response_relative_duration_proportional",
Help: "Response time of preferred backend, as a proportion of secondary backend response time.",
NativeHistogramBucketFactor: 2,
NativeHistogramBucketFactor: 1.1,
}, []string{"route"}),
}

Expand Down

0 comments on commit d2f65bf

Please sign in to comment.