-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
meta: Runtime metrics stabilization #4073
Comments
@LucioFranco @Matthias247 any opportunities to try using the metrics? |
I was on vacation and after that mostly block on other things. But I might be able to try this out this week. I will however say upfront that I'll expect mostly to report back on the general accessor APIs and how integration into an application will look like. I think that putting |
We should add a counter tracking the number of "false-positive" runtime wakeups. This would be incremented when a worker wakes up without having any work to do. |
I second this. In our project built on tokio, we implemented a custom macro to track poll times. It would be very useful to have it in tokio. |
tokio's metric APIs is not stablized yet: tokio-rs/tokio#4073
It have been quite a long time, what's the status of this issue? @carllerche It is quite useful for library authors to know the number of workers in the current Runtime. |
Work has stalled a bit on this, but we would be happy to mentor people on this work. |
Hello @LucioFranco , is this feature ready for publish? |
I don't believe this is ready for stabilization. |
What's the status on this? It looks like nothing has happened for a while here. @LucioFranco, I would be willing to pick up where you left off here, I just need to know what needs done. |
I believe we have a bunch of metrics in the runtime now and |
I aim to stabilize this feature by EOY. As I look at the current counters, I think some of the more "scheduler implementation detail" counters should be switched to be internal counters. For example, the following counters are more useful for debugging the scheduler than debugging application performance issues:
|
At the risk of reopening bikeshedding, we must also decide on a name: metrics, stats, or counters. Given that we have more than just counters, that probably rules out counters as a name. Lets see what ChatGPT suggests 😆 :
|
Artificial Indecisiveness |
Hi! Sorry, is it too late to ask to turn all gauges into counter pairs? |
Tracks the stabilization of runtime statistics.
RFC: #3845
PRs: #4043
Roadmap
tokio-metrics
providing a higher level api to be consumed that is easier to understand.Open questions
Metrics
,Stats
, orPerfCounters
.RuntimeStats::workers()
return&[WorkerStats]
or an iterator.inc_budget_forced_yield_count
should become a per-worker metric.Additional counters
The text was updated successfully, but these errors were encountered: