Skip to content

Commit

Permalink
FQ: edit LatencyMs buckets count in Histogram (ydb-platform#13549)
Browse files Browse the repository at this point in the history
  • Loading branch information
kardymonds authored Jan 21, 2025
1 parent af7eb62 commit ce2c5e5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ydb/core/fq/libs/actors/pending_fetcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class TPendingFetcher : public NActors::TActorBootstrapped<TPendingFetcher> {

private:
static ::NMonitoring::IHistogramCollectorPtr GetLatencyHistogramBuckets() {
return ::NMonitoring::ExplicitHistogram({0, 1, 2, 5, 10, 20, 50, 100, 500, 1000, 2000, 5000, 10000, 30000, 50000, 500000});
return ::NMonitoring::ExplicitHistogram({0, 10, 100, 1000, 10000});
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class TComputeDatabasesCacheActor : public NActors::TActorBootstrapped<TComputeD
}

static ::NMonitoring::IHistogramCollectorPtr GetLatencyHistogramBuckets() {
return ::NMonitoring::ExplicitHistogram({0, 1, 2, 5, 10, 20, 50, 100, 500, 1000, 2000, 5000, 10000, 30000, 50000, 500000});
return ::NMonitoring::ExplicitHistogram({0, 10, 100, 1000, 10000});
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class TComputeDatabaseMonitoringActor : public NActors::TActorBootstrapped<TComp
}

static ::NMonitoring::IHistogramCollectorPtr GetLatencyHistogramBuckets() {
return ::NMonitoring::ExplicitHistogram({0, 1, 2, 5, 10, 20, 50, 100, 500, 1000, 2000, 5000, 10000, 30000, 50000, 500000});
return ::NMonitoring::ExplicitHistogram({0, 10, 100, 1000, 10000});
}
};

Expand Down
2 changes: 1 addition & 1 deletion ydb/core/fq/libs/test_connection/counters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void TTestConnectionRequestCounters::Register(const ::NMonitoring::TDynamicCount
}

NMonitoring::IHistogramCollectorPtr TTestConnectionRequestCounters::GetLatencyHistogramBuckets() {
return NMonitoring::ExplicitHistogram({0, 1, 2, 5, 10, 20, 50, 100, 500, 1000, 2000, 5000, 10000, 30000, 50000, 500000});
return NMonitoring::ExplicitHistogram({0, 10, 100, 1000, 10000});
}

} // NFq

0 comments on commit ce2c5e5

Please sign in to comment.