Add prometheus metrics
Draw inspiration from https://docs.dask.org/en/latest/setup/prometheus.html. Exposing gc metrics in particular seems a good idea.
I love this.
What about also exposing time spent processing requests?
Might also be use to count socket and file system reads.
I wonder if it’s appropriate to use Python audit hooks for that kind of performance tracing.
We needed to start capturing metrics urgently to make sense of some user reports, so I rushed something into main. Needs docs and refinement.
The socket and file usage can be observed through a generic node_exporter. I don’t think we need the Tiled application to do anything special there.
Still needs docs.
Old gist that is relevant: https://gist.github.com/danielballan/1bfb0576781c5671e3b97af2ebafcfa1
Evidently podman-compose does not support --scale. It seems to silently ignore it, as reported here: https://github.com/containers/podman-compose/issues/267