angel3_prometheus 10.0.0
angel3_prometheus: ^10.0.0 copied to clipboard
Prometheus metrics for Angel3 applications. Times each request, counts those in progress, and serves the metrics in the Prometheus text format.
Change Log #
10.0.0 #
New in 10.0.0 #
- Metrics:
PrometheusMetricstimes each request from its start to the end of its response, ashttp_request_duration_secondsbymethodand statuscode, counts the requests in progress ashttp_requests_in_progress, and adds the metrics of the Dart process ofprometheus_client.ignoreleaves out requests such as health checks, and an app adds metrics of its own toregistry - Middleware:
configureServermeasures every request, of a middleware that matches every path, but keeps the404 Not Foundof a path that no other route matches, where such a middleware makes it an empty200. It warns when configured after other routes, which it does not measure - Serving:
serveanswersGET /metricsin the Prometheus text format on a server of its own, closed when the app closes, such as one port for each instance ofangel3_production.handlerserves them on a route of the app, andcollectgives them as text