{"repo":"stephenhillier/starlette_exporter","free":true,"listed":false,"github":"https://github.com/stephenhillier/starlette_exporter","clone":"git clone https://github.com/stephenhillier/starlette_exporter.git","description":"Prometheus exporter for Starlette and FastAPI","language":"Python","stars":413,"topics":["prometheus","prometheus-exporter","starlette","fastapi","asgi"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"starlette exporter Prometheus exporter for Starlette and FastAPI starlette exporter collects basic metrics for Starlette and FastAPI based applications: starlette requests total: a counter representing the total requests starlette request duration seconds: a histogram representing the distribution of request response times starlette requests in progress: a gauge that keeps track of how many concurrent requests are being processed Metrics include labels for the HTTP method, the path, and the response status code. Use the HTTP handler handle metrics at path /metrics to expose a metrics endpoint to Prometheus. Table of Contents starlette exporter Prometheus exporter for Starlette and FastAPI Table of Contents Usage Starlette FastAPI Options Labels Exemplars Custom Metrics Multiprocess mode (gunicorn deployments) Developing License Dependencies Credits Usage Starlette FastAPI Options app name : Sets the value of the app name label for exported metrics (default: starlette ). prefix : Sets the prefix of the exported metric names (default: starlette ). labels : Optional dict containing default labels that will be added to all metrics. The values can be either a static value or a callback function that retrieves a value from the Request object. See below for examples. exemplars : Optional dict containing label/value pairs. The \"value\" should be a callback function that returns the desired value at runtime. group paths : Populate the path label using named parameters (if any) in the r","default_branch":null,"files":null,"tree":[],"storefront":"/r/stephenhillier","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stephenhillier/starlette_exporter/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}