Cloud watch application insight supports PHP application monitoring

0

We want to monitor PHP application (http metrics, API routes are called, duration, errors, etc) is there any AWS service that provides those metrics ? Does Cloud watch application insight supports php application and provide those metrics ?

Hemanth
已提問 7 個月前檢視次數 413 次
2 個答案
0

Hello.

As far as I can see from the document below, I don't think PHP is mentioned.
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/appinsights-what-is.html#appinsights-stack

Is it possible to access your PHP application from a public network?
In that case, I think it would be a good idea to use CloudWatch Synthetics to set up external monitoring.
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries.html

profile picture
專家
已回答 7 個月前
0

I assume this is a PHP web application on EC2 Linux instance.

You can install CloudWatch agent and use it to collect Linux metrics and logs (e.g. php error log and web server logs which contains information such as URLs requested, duration of each request, http status code etc..).

If you need to collect custom PHP application metrics, you can install AWS SDK for PHP and modify your PHP code to publish custom metrics to CloudWatch.

AWS
專家
Mike_L
已回答 7 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南