跳至内容

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 年前524 查看次数
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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。