evle opened a new issue, #11888:
URL: https://github.com/apache/apisix/issues/11888
### Description
### Description
The current prometheus plugin provides `http_requests_total` metric to track
the total number of client requests. However, it lacks the ability to track
requests by URI, which is crucial for monitoring traffic patterns and
identifying potential bottlenecks at the endpoint level.
### Why
Currently, `http_requests_total` is defined as a simple gauge without labels:
```
metrics.requests = prometheus:gauge("http_requests_total"
```
This would allow users to:
- Track request counts per endpoint
- Set up alerts based on endpoint-specific traffic patterns
- Better understand traffic distribution across different APIs
In addition, it will be consistent with other metrics like `http_status`
which already includes URI information
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]