Loading
Slack 관련 문의처가 Salesforce Help로 통합 및 변경됩니다.더 많이 읽기

Querying Rate Limiting Policy Failures in Anypoint Monitoring

게시 일자: Oct 22, 2026
상세 설명
The user is building an automated monitoring report with the Observability API metrics search endpoint and needs the correct query to count API failures caused by a rate limit policy over a specific duration. The user could not determine how to retrieve this failure count from mulesoft.api.summary.
솔루션

CAUSE

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.

SOLUTION

To retrieve the count of rate-limited request failures using the Observability API, filter your search query on the HTTP 429 response code.

  1. Generate an Anypoint Platform bearer token.
  2. Construct your query against the POST /observability/api/v1/metrics:search endpoint.

Query Total Rate Limit Failures Across All APIs

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>"
}'

Query Rate Limit Failures Grouped by API Instance

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.

APPLIES TO

  • Anypoint Monitoring
  • Anypoint Observability API
  • API Manager (Rate Limiting and Throttling Policies)
Knowledge 기사 번호

005465167

 
로드 중
Salesforce Help | Article