Instant available metrics #442
Labels
C-util
Component: utility classes and helpers.
E-intermediate
Effort: intermediate.
T-enhancement
Type: enhancement.
T-request
Type: request.
I've encountered a scenario where certain metrics, such as allocation statistics/collections length are instantly available but are external and not directly controllable. Currently, the approach to forward these metrics to metrics is by employing
tokio::spawn
with an endless loop as shown below:While this method works, it's not the most efficient or elegant solution, particularly when considering that exporters may have varying scrape intervals.
Suggestion:
Would it be possible to introduce a global notification mechanism, on which all metrics will render their measurements?
The text was updated successfully, but these errors were encountered: