Skip to content

Commit 3141e94

Browse files
Clara Rullmeta-codesync[bot]
authored andcommitted
Remove redundant dynamic metrics
Summary: Remove the per-repository mononoke.app.initialization_time_millisecs FB303 metric. Repository initialization latency is already emitted with the repo name through the MononokeAppStats ODS3 metric. Remove the mononoke.scs_server.method.<method>.completion_time_ms dynamic histogram. SCS request latency is already emitted as duration_ms through MononokeScsRequest ODS3 and in the mononoke_scs_server Scuba request record. Update the checked-in oncall guidance to direct latency investigations to those supported sources. Reviewed By: RajivTS Differential Revision: D115717579 fbshipit-source-id: 14887e2dc8c2d87bbc4fbd3dbe08224298d091af
1 parent a370c41 commit 3141e94

2 files changed

Lines changed: 0 additions & 21 deletions

File tree

eden/mononoke/cmdlib/mononoke_app/src/repos_manager.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ fn repos_manager_concurrency() -> Result<usize> {
6969

7070
define_stats! {
7171
prefix = "mononoke.app";
72-
initialization_time_millisecs: dynamic_timeseries(
73-
"initialization_time_millisecs.{}",
74-
(reponame: String);
75-
Average, Sum, Count
76-
),
7772
completion_duration_secs: timeseries(Average, Sum, Count),
7873
// Deep-shard repo load failures (config load or facet build) via add_repo,
7974
// the chokepoint every deep-shard load funnels through.
@@ -278,11 +273,6 @@ impl<Repo> MononokeReposManager<Repo> {
278273
.with_context(|| format!("Failed to initialize repo '{repo_name}'"))?;
279274
let n = completed.fetch_add(1, Ordering::Relaxed) + 1;
280275
info!("Initialized repo: {} ({}/{})", &repo_name, n, total);
281-
STATS::initialization_time_millisecs.add_value(
282-
start.elapsed().as_millis().try_into().unwrap_or(i64::MAX),
283-
(repo_name.to_string(),),
284-
);
285-
286276
#[cfg(fbcode_build)]
287277
let instrument = Instrument_MononokeAppStats::new();
288278
#[cfg(fbcode_build)]

eden/mononoke/servers/scs/scs_methods/src/source_control_impl.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ define_stats! {
132132
total_request_internal_failure_permille: timeseries(Average),
133133
total_request_invalid_permille: timeseries(Average),
134134

135-
// Duration per method
136-
method_completion_time_ms: dynamic_quantile_stat("method.{}.completion_time_ms", (method: String); Average, Sum, Count; P 5, P 50, P 90; Duration::from_secs(60), Duration::from_secs(600), Duration::from_secs(3600)),
137135
total_method_requests: dynamic_timeseries("method.{}.total_method_requests", (method: String); Rate, Sum),
138136
total_method_internal_failure: dynamic_timeseries("method.{}.total_method_internal_failure", (method: String); Rate, Sum),
139137

@@ -970,10 +968,6 @@ fn log_result<T: AddScubaResponse>(
970968
STATS::total_request_internal_failure_permille.add_value(internal_failure * 1000);
971969
STATS::total_request_invalid_permille.add_value(invalid_request * 1000);
972970
STATS::total_request_overloaded.add_value(overloaded);
973-
STATS::method_completion_time_ms.add_value(
974-
stats.completion_time.as_millis_unchecked() as i64,
975-
(method.to_string(),),
976-
);
977971

978972
ctx.perf_counters().insert_perf_counters(&mut scuba);
979973

@@ -1140,11 +1134,6 @@ fn log_stream_complete(
11401134
STATS::total_request_internal_failure_permille.add_value(internal_failure * 1000);
11411135
STATS::total_request_invalid_permille.add_value(invalid_request * 1000);
11421136
STATS::total_request_overloaded.add_value(overloaded);
1143-
// Only accounts for the time to start the stream, not the overall time.
1144-
STATS::method_completion_time_ms.add_value(
1145-
initial_future_stats.completion_time.as_millis_unchecked() as i64,
1146-
(method.to_string(),),
1147-
);
11481137

11491138
ctx.perf_counters().insert_perf_counters(&mut scuba);
11501139

0 commit comments

Comments
 (0)