volcano icon indicating copy to clipboard operation
volcano copied to clipboard

Metrics API for plugins.

Open PigNatovsky opened this issue 10 months ago • 2 comments

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

PigNatovsky avatar May 30 '25 11:05 PigNatovsky

@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 avatar Jun 08 '25 20:06 PigNatovsky

@PigNatovsky Yes you can propose a solution first and we can discuss it later :)

JesseStutler avatar Jun 10 '25 02:06 JesseStutler