Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
f3d97361
Unverified
Commit
f3d97361
authored
Jul 20, 2025
by
Charles Chen
Committed by
GitHub
Jul 19, 2025
Browse files
Fix suffix mismatch for the metrics. (#8168)
Signed-off-by:
Charles Chen
<
chenliqian@chenliqian.cn
>
parent
561dd7b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sgl-router/src/metrics.rs
sgl-router/src/metrics.rs
+1
-1
No files found.
sgl-router/src/metrics.rs
View file @
f3d97361
...
@@ -132,7 +132,7 @@ pub fn start_prometheus(config: PrometheusConfig) {
...
@@ -132,7 +132,7 @@ pub fn start_prometheus(config: PrometheusConfig) {
// Initialize metric descriptions
// Initialize metric descriptions
init_metrics
();
init_metrics
();
let
duration_matcher
=
Matcher
::
Suffix
(
String
::
from
(
"duration"
));
let
duration_matcher
=
Matcher
::
Suffix
(
String
::
from
(
"duration
_seconds
"
));
let
duration_bucket
=
[
let
duration_bucket
=
[
0.001
,
0.005
,
0.01
,
0.025
,
0.05
,
0.1
,
0.25
,
0.5
,
1.0
,
2.5
,
5.0
,
10.0
,
15.0
,
30.0
,
45.0
,
0.001
,
0.005
,
0.01
,
0.025
,
0.05
,
0.1
,
0.25
,
0.5
,
1.0
,
2.5
,
5.0
,
10.0
,
15.0
,
30.0
,
45.0
,
60.0
,
90.0
,
120.0
,
180.0
,
240.0
,
60.0
,
90.0
,
120.0
,
180.0
,
240.0
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment