-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rt): expose tokio runtime metrics
Tokio has an unstable feature supporting runtime metrics. This allows service operators to export metrics to systems like Prometheus, so that they can observe how their workloads are performing on the tokio runtime. This exposes information like the number of worker threads, queue depth, the number of tasks polled, and so on. `linkerd2-proxy` should expose these metrics. This uses the `kubert-prometheus-tokio` crate to register a `Runtime` metrics worker, and spawn a task to probe these metrics at a fixed, regular interval. see: <https://github.com/olix0r/kubert/tree/main/kubert-prometheus-tokio> if the `tokio_unstable` feature is not enabled, this will emit a debug event and do nothing.
- Loading branch information
Showing
4 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters