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 Respuestas
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
EXPERTO
iwasa
respondido hace 2 años
  • 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

respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas