Skip to content

Commit

Permalink
fix metrics buckets for cache and service (#132)
Browse files Browse the repository at this point in the history
# Changes
- Align metrics buckets for service and cache
  • Loading branch information
wagpa authored Nov 9, 2024
1 parent b347215 commit b62cd48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cache/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ lazy_static! {
"xenos_cache_get_duration_seconds",
"The cache get request latencies in seconds.",
&["cache_variant", "request_type", "cache_result"],
vec![0.003, 0.005, 0.010, 0.015, 0.025, 0.050, 0.075, 0.100, 0.150, 0.200]
vec![0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.175, 0.25, 0.5, 1.0, 2.0, 5.0, 10.0]
)
.unwrap();

Expand All @@ -39,7 +39,7 @@ lazy_static! {
"xenos_cache_set_duration_seconds",
"The cache set request latencies in seconds.",
&["cache_variant", "request_type"],
vec![0.003, 0.005, 0.010, 0.015, 0.025, 0.050, 0.075, 0.100, 0.150, 0.200]
vec![0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.175, 0.25, 0.5, 1.0, 2.0, 5.0, 10.0]
)
.unwrap();
}
Expand Down
2 changes: 1 addition & 1 deletion src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ lazy_static! {
"xenos_profile_latency_seconds",
"The grpc profile request latency in seconds.",
&["request_type", "status"],
vec![0.003, 0.005, 0.010, 0.015, 0.025, 0.050, 0.075, 0.100, 0.150, 0.200]
vec![0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.175, 0.25, 0.5, 1.0, 2.0, 5.0, 10.0]
)
.unwrap();
}
Expand Down

0 comments on commit b62cd48

Please sign in to comment.