monitor sharepoint usage and performance using application insights
TRANSCRIPT
![Page 1: Monitor SharePoint usage and performance using Application Insights](https://reader035.vdocuments.mx/reader035/viewer/2022062310/58d1e5a81a28ab51448b4b1f/html5/thumbnails/1.jpg)
Office 365 Saturday CopenhagenMarch 12, 2016
#o365sdk2016spbg.dk
Monitor SharePoint usage and performance using Application Insights
Anders RaskProActive A/S
![Page 2: Monitor SharePoint usage and performance using Application Insights](https://reader035.vdocuments.mx/reader035/viewer/2022062310/58d1e5a81a28ab51448b4b1f/html5/thumbnails/2.jpg)
What is Application Insights
![Page 3: Monitor SharePoint usage and performance using Application Insights](https://reader035.vdocuments.mx/reader035/viewer/2022062310/58d1e5a81a28ab51448b4b1f/html5/thumbnails/3.jpg)
Why should I care, as a developer?
Application Lifecycle Management
Build
MeasureLearn
Knowing how people use your application lets you focus on relevant scenarios
Release annotations
Show when you added new a new build, so you can see if performance was affected
![Page 4: Monitor SharePoint usage and performance using Application Insights](https://reader035.vdocuments.mx/reader035/viewer/2022062310/58d1e5a81a28ab51448b4b1f/html5/thumbnails/4.jpg)
What can we monitor from?
Azure Application Insights
Web apps-ASP.NET-Java-using SDK
Azure Cloud
Services-using SDK
Windows Services
&Desktop-using SDK
Web-
JavaScript
Other-languages-frameworks-logging-CMS-Export
Mobile apps
-moved to HockeyApps
![Page 5: Monitor SharePoint usage and performance using Application Insights](https://reader035.vdocuments.mx/reader035/viewer/2022062310/58d1e5a81a28ab51448b4b1f/html5/thumbnails/5.jpg)
What does it cost?PREV
IEW
![Page 6: Monitor SharePoint usage and performance using Application Insights](https://reader035.vdocuments.mx/reader035/viewer/2022062310/58d1e5a81a28ab51448b4b1f/html5/thumbnails/6.jpg)
How does it work?You install tracking
code or instrumentation
through SDK
Telemetry data is send to Azure when
instrumentation code or tracking code is “hit”
![Page 7: Monitor SharePoint usage and performance using Application Insights](https://reader035.vdocuments.mx/reader035/viewer/2022062310/58d1e5a81a28ab51448b4b1f/html5/thumbnails/7.jpg)
#o365sdk2016spbg.dk
Assuming Client side code (we all do that, right?)• Insert JavaScript tracking code
into .master page using a custom action
• Insert per page using Embed
How do I monitor in SharePoint?
![Page 8: Monitor SharePoint usage and performance using Application Insights](https://reader035.vdocuments.mx/reader035/viewer/2022062310/58d1e5a81a28ab51448b4b1f/html5/thumbnails/8.jpg)
#o365sdk2016spbg.dk
..or use instrumentation directy in your code to• Track events• Track metrics• Trace statements for debugging or
event handling• Track exceptions
Source code:http://www.andrewconnell.com/
How do I monitor in SharePoint?
![Page 9: Monitor SharePoint usage and performance using Application Insights](https://reader035.vdocuments.mx/reader035/viewer/2022062310/58d1e5a81a28ab51448b4b1f/html5/thumbnails/9.jpg)
#o365sdk2016spbg.dk
Don’t affect performance, by monitoring performance!• Tracking is batched and runs in separate
thread• Only trace what is relevant!• If you need specific tracing, add more
instrumentation temporarily• Enable debug or verbose temporarily• Limit number of Ajax calls logged• Include script as Inline JS not script link
Things worth noting!
![Page 10: Monitor SharePoint usage and performance using Application Insights](https://reader035.vdocuments.mx/reader035/viewer/2022062310/58d1e5a81a28ab51448b4b1f/html5/thumbnails/10.jpg)
Installing Application Insights in SharePoint
![Page 11: Monitor SharePoint usage and performance using Application Insights](https://reader035.vdocuments.mx/reader035/viewer/2022062310/58d1e5a81a28ab51448b4b1f/html5/thumbnails/11.jpg)
What is being monitored?
![Page 12: Monitor SharePoint usage and performance using Application Insights](https://reader035.vdocuments.mx/reader035/viewer/2022062310/58d1e5a81a28ab51448b4b1f/html5/thumbnails/12.jpg)
A look at the App Insights Dashboard
![Page 13: Monitor SharePoint usage and performance using Application Insights](https://reader035.vdocuments.mx/reader035/viewer/2022062310/58d1e5a81a28ab51448b4b1f/html5/thumbnails/13.jpg)
Exporting to Power BI
![Page 14: Monitor SharePoint usage and performance using Application Insights](https://reader035.vdocuments.mx/reader035/viewer/2022062310/58d1e5a81a28ab51448b4b1f/html5/thumbnails/14.jpg)
#o365sdk2016spbg.dk
![Page 15: Monitor SharePoint usage and performance using Application Insights](https://reader035.vdocuments.mx/reader035/viewer/2022062310/58d1e5a81a28ab51448b4b1f/html5/thumbnails/15.jpg)
#o365sdk2016spbg.dk
![Page 16: Monitor SharePoint usage and performance using Application Insights](https://reader035.vdocuments.mx/reader035/viewer/2022062310/58d1e5a81a28ab51448b4b1f/html5/thumbnails/16.jpg)
#o365sdk2016spbg.dk
Overview (VERY well documented!!!)https://azure.microsoft.com/en-us/documentation/articles/app-insights-overview Integrationhttp://www.andrewconnell.com/blog/using-azure-application-insights-with-single-page-appsAdd data using PowerShellhttps://vnextengineer.azurewebsites.net/powershell-application-insights/
• Pricinghttps://azure.microsoft.com/en-us/pricing/details/application-insights/
• SDK for JShttps://github.com/Microsoft/ApplicationInsights-JS/blob/master/API-reference.md
Links to relevant resources
![Page 17: Monitor SharePoint usage and performance using Application Insights](https://reader035.vdocuments.mx/reader035/viewer/2022062310/58d1e5a81a28ab51448b4b1f/html5/thumbnails/17.jpg)
Platin
Gold
SilverSupporting
the community
Thanks to our sponsors
#o365sdk2016spbg.dk