From 981f78a1c4af1dfef39d7dde2bc323ad9a0ede42 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Antonio=20Perdiguero=20L=C3=B3pez?= Date: Fri, 23 Aug 2019 14:33:45 +0200 Subject: [PATCH] Add Starlette Prometheus to plugins and middlewares docs --- docs/middleware.md | 4 ++++ docs/third-party-packages.md | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/docs/middleware.md b/docs/middleware.md index b20adab0..a4a1eb50 100644 --- a/docs/middleware.md +++ b/docs/middleware.md @@ -222,3 +222,7 @@ passes through it. Includes examples for how to emit these timings as statsd me This middleware adds authentication to any ASGI application, requiring users to sign in using their GitHub account (via [OAuth](https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/)). Access can be restricted to specific users or to members of specific GitHub organizations or teams. + +#### [PrometheusMiddleware](https://github.com/perdy/starlette-prometheus) + +A middleware class for capturing Prometheus metrics related to requests and responses, including in progress requests, timing... diff --git a/docs/third-party-packages.md b/docs/third-party-packages.md index 656387ff..74119e51 100644 --- a/docs/third-party-packages.md +++ b/docs/third-party-packages.md @@ -50,6 +50,12 @@ Serverless ASGI adapter for AWS Lambda & API Gateway. Manage and send messages to groups of channels using websockets. Checkout nejma-chat, a simple chat application built using `nejma` and `starlette`. +### Starlette Prometheus + +GitHub + +A plugin for providing an endpoint that exposes [Prometheus](https://prometheus.io/) metrics based on its [official python client](https://github.com/prometheus/client_python). + ## Frameworks ### Responder -- 2.47.2