Skip to content

Commit 1eeda47

Browse files
committed
increase queue duration histogram bucket
Signed-off-by: Ben Ye <[email protected]>
1 parent 061b348 commit 1eeda47

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* [ENHANCEMENT] Querier: limit series query to only ingesters if `start` param is not specified. #4976
66
* [ENHANCEMENT] Query-frontend/scheduler: add a new limit `frontend.max-outstanding-requests-per-tenant` for configuring queue size per tenant. Started deprecating two flags `-query-scheduler.max-outstanding-requests-per-tenant` and `-querier.max-outstanding-requests-per-tenant`, and change their value default to 0. Now if both the old flag and new flag are specified, the old flag's queue size will be picked. #5005
77
* [ENHANCEMENT] Query-tee: Add `/api/v1/query_exemplars` API endpoint support. #5010
8+
* [ENHANCEMENT] Query Frontend/Query Scheduler: Increase upper bound to 60s for queue duration histogram metric. #5029
89
* [FEATURE] Querier/Query Frontend: support Prometheus /api/v1/status/buildinfo API. #4978
910
* [FEATURE] Ingester: Add active series to all_user_stats page. #4972
1011
* [FEATURE] Ingester: Added `-blocks-storage.tsdb.head-chunks-write-queue-size` allowing to configure the size of the in-memory queue used before flushing chunks to the disk . #5000

pkg/frontend/v1/frontend.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func New(cfg Config, limits Limits, log log.Logger, registerer prometheus.Regist
108108
queueDuration: promauto.With(registerer).NewHistogram(prometheus.HistogramOpts{
109109
Name: "cortex_query_frontend_queue_duration_seconds",
110110
Help: "Time spend by requests queued.",
111-
Buckets: prometheus.DefBuckets,
111+
Buckets: []float64{.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10, 20, 30, 60},
112112
}),
113113
}
114114

pkg/scheduler/scheduler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func NewScheduler(cfg Config, limits Limits, log log.Logger, registerer promethe
116116
s.queueDuration = promauto.With(registerer).NewHistogram(prometheus.HistogramOpts{
117117
Name: "cortex_query_scheduler_queue_duration_seconds",
118118
Help: "Time spend by requests in queue before getting picked up by a querier.",
119-
Buckets: prometheus.DefBuckets,
119+
Buckets: []float64{.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10, 20, 30, 60},
120120
})
121121
s.connectedQuerierClients = promauto.With(registerer).NewGaugeFunc(prometheus.GaugeOpts{
122122
Name: "cortex_query_scheduler_connected_querier_clients",

0 commit comments

Comments
 (0)