Prometheus: Is it possible to add metrics from my plugin?

Hello,

Is it possible to add metrics from my plugin to metrics collected by prometheus plugin? If yes, can somebody share sample code?

Looks like I was able to add mine (not sure it’s the right way though)

What did you have to do to add your own metrics? And is it being picked up by prometeus?

it’s picked up but not cleared, i.e. it only accumulates the totals. Seen that prometheus integration got some improvements, but didn’t check them as we didn’t go beyond POC

What do you mean not cleared?