#4222 Web plugins?
Opened by cern. Modified

Following up from #3812, we'd like to know if there are any plans to develop a web plugin mechanism. We'd like to contribute our Prometheus metrics exporter for Koji, but a web plugin would be the cleanest way of implementing it.


It's been a far off goal for a long time, but there are no concrete plans for this anytime soon

Metadata Update from @mikem:
- Custom field Size adjusted to None

We might look at web plugins sometime soon-ish. The initial version would probably be limited. I'm curious what sort of hooks you're be interested in having available.

Hi

That's good news! Thanks for letting us know.
In our case, it would be nice to have a simple hook that would allow a plugin to provide content to serve from a given URL. You can see our Prometheus exported implemented here https://pagure.io/fork/alisboav/koji/c/6edef23d0a47a8c42cad2db2c9b40f94f48b2c79?branch=exporter. The hook we would need would essentially be our changes to index.py.

Let us know if you need more information.

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/4222

Please continue any further discussion there.

Metadata