Note: This root cause is inferred from the case investigation and was not explicitly confirmed. Validate it against your environment before applying the fix.
Rate limiting and throttling policies reject requests exceeding configured thresholds with HTTP status code 429 (Too Many Requests). Because rate limiting violations do not exist as distinct metrics by policy name in the "mulesoft.api.summary" data source, these events are tracked by filtering on "http.status_code" = 429.
To retrieve the count of rate-limited request failures using the Observability API, filter your search query on the HTTP 429 response code.
POST /observability/api/v1/metrics:search endpoint.To retrieve the total rate-limiting failure count across an entire business group and environment within a timestamp range, execute the following cURL command:
curl -X POST \ "https://anypoint.mulesoft.com/observability/api/v1/metrics:search?limit=50&offset=0" \ -H "Authorization: Bearer <ACCESS_TOKEN>" \ -H "Content-Type: application/json" \ -d '{ "query": "SELECT COUNT(requests) AS rateLimitFailures FROM \"mulesoft.api.summary\" WHERE \"sub_org.id\" = '\''<BUSINESS_GROUP_ID>'\'' AND \"env.id\" = '\''<ENVIRONMENT_ID>'\'' AND \"http.status_code\" = 429 AND timestamp BETWEEN <START_MS> AND <END_MS>" }'
To view a breakdown of throttled requests per API instance, group the query results by the "api.instance.id" field:
curl -X POST \ "https://anypoint.mulesoft.com/observability/api/v1/metrics:search?limit=50&offset=0" \ -H "Authorization: Bearer <ACCESS_TOKEN>" \ -H "Content-Type: application/json" \ -d '{ "query": "SELECT COUNT(requests), \"api.instance.id\" FROM \"mulesoft.api.summary\" WHERE \"sub_org.id\" = '\''<BUSINESS_GROUP_ID>'\'' AND \"env.id\" = '\''<ENVIRONMENT_ID>'\'' AND \"http.status_code\" = 429 AND timestamp BETWEEN <START_MS> AND <END_MS> GROUP BY \"api.instance.id\"" }'
Replace the following placeholders:
<ACCESS_TOKEN>: Your valid Anypoint Platform access token.<BUSINESS_GROUP_ID>: The target Organization or Business Group ID.<ENVIRONMENT_ID>: The target Environment ID.<START_MS>: Start time of the query range in epoch milliseconds.<END_MS>: End time of the query range in epoch milliseconds.005465167

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.