mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
chore: increase coderd_chatd_message_count histogram max bucket to 1024 (#24409)
The `coderd_chatd_message_count` histogram's current max bucket of 128 is being hit in production. This increases the exponential bucket count from 8 to 11, extending coverage from `1..128` to `1..1024`. Before: `1, 2, 4, 8, 16, 32, 64, 128` After: `1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024` Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com>
This commit is contained in:
@@ -50,7 +50,7 @@ func NewMetrics(reg prometheus.Registerer) *Metrics {
|
||||
Subsystem: metricsSubsystem,
|
||||
Name: "message_count",
|
||||
Help: "Number of messages in the prompt per LLM request.",
|
||||
Buckets: prometheus.ExponentialBuckets(1, 2, 8), // 1, 2, 4, 8, 16, 32, 64, 128
|
||||
Buckets: prometheus.ExponentialBuckets(1, 2, 11), // 1, 2, 4, ..., 1024
|
||||
}, []string{"provider"}),
|
||||
PromptSizeBytes: factory.NewHistogramVec(prometheus.HistogramOpts{
|
||||
Namespace: metricsNamespace,
|
||||
|
||||
Reference in New Issue
Block a user