Skip to content

Commit aa0f232

Browse files
feat(prometheus): bump prometheus KONG_LATENCY_BUCKETS bucket to 6000 (#13588) (#10280)
FTI-5990 --------- Co-authored-by: Zachary Hu <[email protected]> (cherry picked from commit d81973d) Co-authored-by: Jun Ouyang <[email protected]>
1 parent 09f9377 commit aa0f232

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
message: "**Prometheus**: Bumped KONG_LATENCY_BUCKETS bucket's maximal capacity to 6000"
2+
type: feature
3+
scope: Plugin

kong/plugins/prometheus/exporter.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ local stream_available, stream_api = pcall(require, "kong.tools.stream_api")
2424

2525
local role = kong.configuration.role
2626

27-
local KONG_LATENCY_BUCKETS = { 1, 2, 5, 7, 10, 15, 20, 30, 50, 75, 100, 200, 500, 750, 1000 }
27+
local KONG_LATENCY_BUCKETS = { 1, 2, 5, 7, 10, 15, 20, 30, 50, 75, 100, 200, 500, 750, 1000, 3000, 6000 }
2828
local UPSTREAM_LATENCY_BUCKETS = { 25, 50, 80, 100, 250, 400, 700, 1000, 2000, 5000, 10000, 30000, 60000 }
2929
local AI_CACHE_FETCH_LATENCY_BUCKETS = { 1, 2, 5, 10, 15, 20, 30, 50, 75, 100, 200, 500, 750, 1000, 2000 }
3030
local AI_LLM_PROVIDER_LATENCY_BUCKETS = { 250, 500, 1000, 1500, 2000, 2500, 3000, 3500, 4000, 4500, 5000, 10000, 30000, 60000 }

0 commit comments

Comments
 (0)