Skip to content

Commit 371c277

Browse files
Copilotd-gubert
andcommitted
update bucket values for latency and response size histograms
Co-authored-by: d-gubert <1810309+d-gubert@users.noreply.github.com>
1 parent ed294b2 commit 371c277

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/meteor/app/metrics/server/lib/metrics.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import client from 'prom-client';
44

55
const percentiles = [0.01, 0.1, 0.5, 0.9, 0.95, 0.99, 1];
66

7-
const latencyBuckets = [0.001, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10];
7+
const latencyBuckets = [0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1.0, 2.5, 5.0, 7.5, 10.0];
88
const queueWaitBuckets = [1, 5, 10, 30, 60, 120, 300, 600, 900, 1800, 3600];
99

1010
export const metrics = {
@@ -89,7 +89,7 @@ export const metrics = {
8989
name: 'rocketchat_rest_api_response_size_bytes',
9090
help: 'histogram of rocketchat rest api response sizes in bytes',
9191
labelNames: ['method', 'entrypoint', 'status'],
92-
buckets: [100, 500, 1000, 5000, 10000, 50000, 100000, 500000, 1000000],
92+
buckets: [0, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000],
9393
}),
9494
rocketchatRestApiActiveRequests: new client.Gauge({
9595
name: 'rocketchat_rest_api_active_requests',

0 commit comments

Comments
 (0)