Tweaked metrics.
This commit is contained in:
1 parent
ac0d0d8dae
commit
d4abac9d0d
4 files changed
+45
-32
No files matched your search
@@ -85,12 +85,12 @@ OrderServiceServer::OrderServiceServer(
|
||||
me->fast_thread = std::thread([this]() {
|
||||
os::set_thread_name("fast_exe");
|
||||
|
||||
std::array<double, 31> buckets;
|
||||
std::array<double, 30> buckets;
|
||||
auto i = 1;
|
||||
for (auto &b : buckets)
|
||||
b = (i *= 2);
|
||||
|
||||
auto loop_timer = std::make_shared<metrics::HistogramMetric<31>>(
|
||||
auto loop_timer = std::make_shared<metrics::HistogramMetric<30>>(
|
||||
"spark_metrics_fast_thread_loop_ns", buckets);
|
||||
|
||||
me->stats.publish(loop_timer);
|
||||
|
||||
Reference in new issue
Block a user