Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage metrics (session duration and others) are no longer automatically calculated #10

Open
AlexBulankou opened this issue May 19, 2016 · 0 comments

Comments

@AlexBulankou
Copy link

AlexBulankou commented May 19, 2016

The following usage metrics are no longer automatically calculated and removed from Application Insights as we are making APM and not usage our primary focus:

  • events per session
  • exceptions per session
  • pages per session
  • time between sessions
  • time between sessions (authenticated users)
  • session duration

We are recommending that the customers use Application Analytics queries to calculate these usage metrics.

Here's an example for session duration:

customEvents //or change to whatever type you feel is represented the most in your scenario
| where session_Id != ""
| summarize max(timestamp), min(timestamp) by session_Id
| extend sessionDurationSeconds=todouble(max_timestamp-min_timestamp)/10000000.00 //convert timespan to ticks and divide by 10mln to get seconds
| summarize percentile(sessionDurationSeconds, 50) , stdev(sessionDurationSeconds), avg(sessionDurationSeconds), count(sessionDurationSeconds) by bin(min_timestamp,1d)
| order by min_timestamp asc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant