File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -72,12 +72,12 @@ if __name__ == "__main__":
7272```
7373
7474In this example, all logs will be presented in JSON format and the following metrics will be set for the application:
75- 1 . ` fastapi_app_info ` - ASGI application information
76- 2 . ` fastapi_requests_total ` - Total count of requests by method and path
77- 3 . ` fastapi_responses_total ` - Total count of responses by method, path and status codes
78- 4 . ` fastapi_request_duration_seconds ` - Histogram of request duration by path, in seconds
79- 5 . ` fastapi_requests_in_progress ` - Gauge of requests by method and path currently being processed
80- 6 . ` fastapi_requests_exceptions_total ` - Total count of exceptions raised by path and exception type
75+ 1 . ` fastapi_app_info ` - ASGI application information (Gauge)
76+ 2 . ` fastapi_requests_total ` - Total count of requests by method and path (Counter)
77+ 3 . ` fastapi_responses_total ` - Total count of responses by method, path and status codes (Counter)
78+ 4 . ` fastapi_request_duration_seconds ` - Histogram of request duration by path, in seconds (Histogram)
79+ 5 . ` fastapi_requests_in_progress ` - Gauge of requests by method and path currently being processed (Gauge)
80+ 6 . ` fastapi_requests_exceptions_total ` - Total count of exceptions raised by path and exception type (Counter)
8181
8282And these metrics are available by endpoint ` /metrics ` ,
8383but you can import ` get_latest_metrics ` from ` asgi_monitor.metrics ` to create a custom endpoint.
You can’t perform that action at this time.
0 commit comments