API Gateway Count Metrics per API Key

0

Customer would like to know if there is a CloudWatch metric, or other mechanism, to report on the number of requests against their AWS API Gateway per API Key. The goal is to distinguish how many requests are coming from each API Key.

2개 답변
1

Hi, @Adam R

You can create a usage plan in API Gateway and export a report (JSON / CSV) for each usage plan from there.
In the report, you can get the number of accesses for each associated API key.

profile picture
전문가
iwasa
답변함 2년 전
  • With the usage plan is there a way to query the data via API or just JSON/CSV export?

  • I was late in replying. sorry.
    In the Usage Plan, you just export.
    You can query using other services (eg Athena).

1

I created a solution that queries an API quota defined by a usage plan, publishes to CloudWatch and sends a notification if it exceeds a threshold. A description and link to code is available on Medium:

https://medium.com/@allenbrodjeski/monitoring-aws-api-gateway-quota-usage-188d440c9c44

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠