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
My use-case is rather straight forward, but I think it is generalizable, so I keep it that way.
In a request-response scenario, I have a max amount of tokens. So I have a range of e.g. 0-10. For my dashboard I have the requirement to show the saturation of this piece of software, which is best represented using a percentage. I would like to use iapetos for that. However, iapetos currently only provides the with-activity-counter to achieve saturation representation. While observe had to be used customly for percentage calculation
As my suggestion would also add value to the library, I decided to put up an issue.
Alternatives I considered:
Implement myself - I could do that, but I think this is something other people would also benefit from.
While I could measure the activity using the with-activity-counter, I would still need to cross-reference that by the number of threads I provide. This is variable, so I would need to publish another metric. Infeasible.
Change the requirement - nah... Percentage is an intuitive metric, which doesn't change the meaning when scaling horizontally. On startup, I can acquire the (0, max) directly, while to get it from another source would be overly tedious.
I find the in-situ implementation not that great, as it would introduce possibly a lot of single-use atoms.
I also thought about calculation on (value c#), but I think that would not be thread safe.
The text was updated successfully, but these errors were encountered:
My use-case is rather straight forward, but I think it is generalizable, so I keep it that way.
In a request-response scenario, I have a max amount of tokens. So I have a range of e.g. 0-10. For my dashboard I have the requirement to show the saturation of this piece of software, which is best represented using a percentage. I would like to use iapetos for that. However, iapetos currently only provides the
with-activity-counter
to achieve saturation representation. Whileobserve
had to be used customly for percentage calculationAs my suggestion would also add value to the library, I decided to put up an issue.
Alternatives I considered:
with-activity-counter
, I would still need to cross-reference that by the number of threads I provide. This is variable, so I would need to publish another metric. Infeasible.I have 2 possible solutions:
Suggestion for a discussible implementation:
I find the in-situ implementation not that great, as it would introduce possibly a lot of single-use atoms.
I also thought about calculation on
(value c#)
, but I think that would not be thread safe.The text was updated successfully, but these errors were encountered: