You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.
We initialize and retrieve the metrics already here (channels will need to be initialised after the metrics)
Then we do have two options (a) pass the PrimaryMetrics in the new method (b) we just clone and pass the gauge directly. We probably want to do the (a) for consistency
We could also use #637 but just emitting the metrics in gauge. And we’ll need a label with the channel name there so we can differentiate the values.
(thanks to @akichidis for a lot of that direction)
The text was updated successfully, but these errors were encountered:
We're about to merge #637 which tracks channel capacity by logging it every 5s.
We'd rather take inspiration from https://github.com/diem/diem/blob/latest/common/channel/src/lib.rs, which creates
IntGauge
instances per channel for the occupancy of their butter. Note this channel wrapper is based on the std::sync::mpsc, while we rather use tokio::sync::mpsc.In order to the integrate this in our metrics, we could:
We could also use #637 but just emitting the metrics in gauge. And we’ll need a label with the channel name there so we can differentiate the values.
(thanks to @akichidis for a lot of that direction)
The text was updated successfully, but these errors were encountered: