mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-11 22:52:54 +00:00
Signed-off-by: Erhhung Yuan <erhhung@gmail.com>
This commit is contained in:
parent
0820abbc64
commit
fa1ebfa4fd
1 changed files with 2 additions and 2 deletions
|
|
@ -120,12 +120,12 @@ def setup_metrics(app: FastAPI, resource: Resource) -> None:
|
|||
# Instruments
|
||||
request_counter = meter.create_counter(
|
||||
name="http.server.requests",
|
||||
description="Total HTTP requests",
|
||||
description="Counts the total number of inbound HTTP requests.",
|
||||
unit="1",
|
||||
)
|
||||
duration_histogram = meter.create_histogram(
|
||||
name="http.server.duration",
|
||||
description="HTTP request duration",
|
||||
description="Measures the duration of inbound HTTP requests.",
|
||||
unit="ms",
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue