Metrics API for plugins.
What is the problem you're trying to solve
Currently if You want to expose some new metrics in Your custom plugin, You need to register it under scheduler/metrics. This forces users to maintain locally entire Volcano repo. If I want to just create my own plugins, compile them and add to upstream Volcano image (as *.so), I'm unable to expose my custom metrics.
Describe the solution you'd like
It would be great, if Session would be able to accept metrics in the same way as - for example - reclaimable functions. I know that in current shape it's impossible. But under the hood, functions are triggered with OnSessionOpen or OnSessionClose, so they behave like a part of session framework. Of course there are some metrics that may be changed by many plugins (like queue share, for example). But it would be great to be able to dynamically attach a new metrics definitions.
Additional context
No response
@Monokaix Sorry for pinning You here, but it would be nice to have some feedback if this idea may be interesting and its worth thinking about potentat implementation. Should I propose some sokution?
@PigNatovsky Yes you can propose a solution first and we can discuss it later :)