You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Current query: apisix_http_requests_total (returns single total value)
After adding labels: Would require sum(apisix_http_requests_total) to get the same total
This would break existing dashboards, alerts, and monitoring setups
Proposed Solution:
Add a new metric apisix_http_route_requests_total with route labels instead of modifying the existing one. This ensures backward compatibility is maintained
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:This would allow users to:
In addition, it will be consistent with other metrics like
http_status
which already includes URI informationThe text was updated successfully, but these errors were encountered: