Skip to content

Commit 66b4d26

Browse files
committed
Add metrics types in readme [skip ci]
1 parent d215142 commit 66b4d26

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ if __name__ == "__main__":
7272
```
7373

7474
In 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

8282
And these metrics are available by endpoint `/metrics`,
8383
but you can import `get_latest_metrics` from `asgi_monitor.metrics` to create a custom endpoint.

0 commit comments

Comments
 (0)