jupyter-resource-usage
jupyter-resource-usage copied to clipboard
Switch to using eventstreams
Eventstreams are a much better fit for this than polling via HTTP requests as we do now. We should switch to it (plus a polyfill for IE users)
Is using Prometheus+psutil a good enough compromise to using event streams?
That is what I am trying to implement lately (a standard "interface" for Prometheus to track any suitable psutil metric that the user specifies in config). I have no idea either way whether that's performant or not though.
I think this refers to using an EventSource on the frontend instead of polling via HTTP requests?
With the nbresuse backend emitting the events.