Skip to content

Commit

Permalink
feat(prometheus): bump prometheus KONG_LATENCY_BUCKETS bucket to 6000 (
Browse files Browse the repository at this point in the history
…#13588) (#10280)

FTI-5990

---------

Co-authored-by: Zachary Hu <6426329+outsinre@users.noreply.github.com>
(cherry picked from commit d81973d)

Co-authored-by: Jun Ouyang <ouyangjun1999@gmail.com>
  • Loading branch information
team-gateway-bot and oowl authored Oct 20, 2024
1 parent 09f9377 commit aa0f232
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/unreleased/kong/bump-prometheus-latency-bucket.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
message: "**Prometheus**: Bumped KONG_LATENCY_BUCKETS bucket's maximal capacity to 6000"
type: feature
scope: Plugin
2 changes: 1 addition & 1 deletion kong/plugins/prometheus/exporter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ local stream_available, stream_api = pcall(require, "kong.tools.stream_api")

local role = kong.configuration.role

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

0 comments on commit aa0f232

Please sign in to comment.