monitor sharepoint usage and performance using application insights
TRANSCRIPT
Office 365 Saturday CopenhagenMarch 12, 2016
#o365sdk2016spbg.dk
Monitor SharePoint usage and performance using Application Insights
Anders RaskProActive A/S
What is Application Insights
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
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
What does it cost?PREV
IEW
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”
#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?
#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?
#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!
Installing Application Insights in SharePoint
What is being monitored?
A look at the App Insights Dashboard
Exporting to Power BI
#o365sdk2016spbg.dk
#o365sdk2016spbg.dk
#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
Platin
Gold
SilverSupporting
the community
Thanks to our sponsors
#o365sdk2016spbg.dk