I’ve a Dash app deployed as a container. I’m trying to monitor the app metrics for the underlying Flask app using prometheus. I’ve installed Prometheus Exporter with no issues, and followed the instructions to init the exporter for Flask using the server.
My app is very close to this example in the official documentation , where I have a Location component to manage routing through a callback.
The problem is that when I try to visit the “/metrics” route of course, it’s caught by Dash routing logic through my callback.
Is there any way I can exclude a certain route from triggering my callback -I’m not looking for raise PreventUpdate here-?
Otherwise, what’s the best way to monitor my containerized app using Prometheus for metrics like request latency, error codes, response status, etc.?