microsoft / ApplicationInsights-PHP

Azure Application Insights SDK for PHP
https://azure.microsoft.com/services/application-insights/
Other
108 stars 92 forks source link

App Ins - PHP webapp #39

Closed SajalGolas closed 6 years ago

SajalGolas commented 6 years ago

Hi All,

I need some assistance.

Well, I have configured AppIns with an PHP WebApp using Instrumentation Key as shown in this page. Now, my requirement is to see -

  1. Which page of the website gets the most request/hits in a graph.
  2. Which page of the website gets the less response or takes time to load or refresh.

Any lead or help will be highly appreciated. Thank you in advance.

JakubOleksy commented 6 years ago

Have you looked at your dashboard in the Azure Portal? Have you read through the App Insights documentation?

monitarvind commented 6 years ago

hi Jakub,

thanks for the reply. Yes, I have gone through the documentation and tried to change the metric parameters. Please refer to the screenshot.

this is what im getting. image

And, im using this PHP command to receive telemetry from my webapp: Sending a simple page view telemetry item with page name and url: $telemetryClient->trackPageView('myPageView', 'http://www.foo.com'); $telemetryClient->flush();

Is this command sufficient to receive all the page related telemetry? Please guide me through, im new to this.

regards, monit

PS- im also reachable on monit.kk@gmail.com

JakubOleksy commented 6 years ago

Doesn't look like any data is being sent. Can you see any page views?

monitarvind commented 6 years ago

yes, I can see the Page Views. image

But all the details are related to my website's home page. But I want to know:

  1. Which page of the website gets the most request/hits in a graph.
  2. Which page of the website gets the less response or takes time to load or refresh.
JakubOleksy commented 6 years ago

I would suggest you ask your questions in the Application Insights forums. I think you'll have to log custom data to do this.

altshiftzero commented 6 years ago

$telemetryClient->trackPageView('myPageView', 'http://www.foo.com'.$_SERVER['REQUEST_URI']); Or something similar should do the trick. You are passing the same url each time that function is ran. https://docs.microsoft.com/en-us/azure/application-insights/app-insights-api-custom-events-metrics#page-views

SergeyKanzhelev commented 6 years ago

@mrdemc you can always use analytics. Query like this pageViews | summarize avg(duration) by name will group response time by name.

Closing for now - feel free to reopen