Skip to content

Commit

Permalink
YT-17150: Fix solomon sensors 3
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyLukyanchikov committed May 3, 2023
1 parent 4175c09 commit bf7840a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions yt/yt/core/concurrency/fair_share_thread_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class TFairShareQueue
: CallbackEventCount_(std::move(callbackEventCount))
{
auto profiler = TProfiler{"/fair_share_queue"}.WithHot().WithTags(tags);
BucketCounter_ = profiler.Gauge("/buckets");
BucketCounter_ = profiler.Summary("/buckets");
SizeCounter_ = profiler.Summary("/size");
WaitTimeCounter_ = profiler.Timer("/time/wait");
ExecTimeCounter_ = profiler.Timer("/time/exec");
Expand Down Expand Up @@ -177,7 +177,7 @@ class TFairShareQueue
inserted->second = invoker;
}

BucketCounter_.Update(TagToBucket_.size());
BucketCounter_.Record(TagToBucket_.size());
return invoker;
}

Expand Down Expand Up @@ -220,7 +220,7 @@ class TFairShareQueue
TagToBucket_.erase(it);
}

BucketCounter_.Update(TagToBucket_.size());
BucketCounter_.Record(TagToBucket_.size());
}

void Shutdown()
Expand Down Expand Up @@ -347,7 +347,7 @@ class TFairShareQueue

std::atomic<int> QueueSize_ = 0;

TGauge BucketCounter_;
NProfiling::TSummary BucketCounter_;
NProfiling::TSummary SizeCounter_;
TEventTimer WaitTimeCounter_;
TEventTimer ExecTimeCounter_;
Expand Down

0 comments on commit bf7840a

Please sign in to comment.