내용으로 건너뛰기

Monitoring API activity - Does AWS have a function that could help

1

We’re looking for some kind of URL or API monitoring tool that allows us to measure how many hits certain URLs receive and segment by parameters/basic auth/headers.

Our API is currently located on an EC2 and written in Laravel

질문됨 3년 전522회 조회
1개 답변
2

Application and access logs can be monitored by outputting them to CloudWatch logs and setting up metrics filters.
https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/MonitoringLogData.html

For example, the API "/api/exemple" can be filtered and metrics such as number of accesses, number of failed executions, etc. can be set.

Another external monitoring is CloudWatch synthetics.
This allows the API to be periodically executed by CloudWatch and detected as an anomaly when it fails.
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries.html

전문가
답변함 3년 전

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

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

관련 콘텐츠