Skip to content

Commit a44c8f2

Browse files
committed
More buckets
Signed-off-by: Aylei <rayingecho@gmail.com>
1 parent 60ef732 commit a44c8f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sky/server/metrics.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
'Time spent processing API server requests',
3636
['path', 'method', 'status'],
3737
buckets=(0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1.0, 2.5, 5.0, 10.0, 20.0, 30.0,
38-
float('inf')),
38+
60.0, 120.0, float('inf')),
3939
)
4040

4141
# Time spent processing requests in executor.
@@ -53,15 +53,15 @@
5353
'Time spent processing code',
5454
['name', 'group'],
5555
buckets=(0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1.0, 2.5, 5.0, 10.0, 20.0, 30.0,
56-
float('inf')),
56+
60.0, 120.0, float('inf')),
5757
)
5858

5959
SKY_APISERVER_EVENT_LOOP_LAG_SECONDS = prom.Histogram(
6060
'sky_apiserver_event_loop_lag_seconds',
6161
'Scheduling delay of the server event loop',
6262
['pid'],
63-
buckets=(0.001, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2, 5,
64-
float('inf')),
63+
buckets=(0.001, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2, 5, 20.0,
64+
60.0, float('inf')),
6565
)
6666

6767
metrics_app = fastapi.FastAPI()

0 commit comments

Comments
 (0)