1 / 36

Microsoft Ignite NZ

Microsoft Ignite NZ. 25-28 October 2016 SKYCITY, Auckland. Insights into App Insights - putting the awesome back into analytics. Soon Wong, Technical Specialist Team Lead Provoke Solutions https://www.linkedin.com/in/soon-wong-0937a933. M386. Get involved!. http://bit.ly/ignite2016demo.

rbeaver
Download Presentation

Microsoft Ignite NZ

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Microsoft Ignite NZ 25-28 October 2016 SKYCITY, Auckland

  2. Insights into App Insights - putting the awesome back into analytics Soon Wong, Technical Specialist Team Lead Provoke Solutions https://www.linkedin.com/in/soon-wong-0937a933 M386

  3. Get involved! http://bit.ly/ignite2016demo

  4. Overview Intro TLDR Application Insights Bolting it on – code demo Making sense of it all – azure demo Question time

  5. Don’t be a dinosaur. Application Insights will add awesomeness to your analytics.

  6. Dinosaur logging is mundane

  7. Added awesomeness

  8. Added awesomeness

  9. Added awesomeness

  10. Application Insights

  11. Application Insights Telemetry collection • Diagnostic traces • Exceptions • Custom telemetry • Javascript too! Analytics Proactive alerts • Availability • Proactive diagnostics • Dashboarding • Interactive drill down • Power BI • Metric rules

  12. From Zero, to Analytics

  13. The hierarchy Typical Azure Web app stack ASP.NET MVC web application, hosted in Azure ASP.NET WebAPI web application, hosted in Azure Azure SQL Storage Logging frameworks Log4Net for ASP.NET backend Does anyone log Javascript?

  14. Then came the questions

  15. Bolting it on – code demo

  16. Useful tips

  17. Useful tips Change your Instrumentation Key Don’t leave it hard coded in ApplicationInsights.config // C# (global.asax.cs) Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration.Active.InstrumentationKey = ConfigurationManager.AppSettings["AppInsightsInstrumentationKey"]; // Javascript (_layout.cshtml) varappInsights = window.appInsights || function (config) { function r(config) { t[config] = function () { vari = arguments … … … … }({ instrumentationKey: window.yournamespace.appInsightsInstrumentationKey });

  18. Useful tips Define your user Javascript Unless your users demand anonymity // Javascript: Initialise tracking client appInsights.setAuthenticatedUserContext("johndoe.ignitenz2016"); appInsights.trackPageView();

  19. Useful tips Use Logging tools that you know and trust Don’t write your own… if you don’t have to. NLog: https://www.nuget.org/packages/Microsoft.ApplicationInsights.NLogTarget Log4Net: https://www.nuget.org/packages/Microsoft.ApplicationInsights.Log4NetAppender/ Elmah: https://www.nuget.org/packages/Elmah.ApplicationInsights/

  20. Useful tips Go full custom if needed If you want control, go and bespoke it • // C# • // Set up some metadata • var properties = new Dictionary <string, string> { • {"environment", "UAT"}, • {"server", "ignitenz2016.azurewebsites.net"} • }; • var metrics = new Dictionary <string, double> { • {"QuestionsAnswered", 5}, • {"QuestionsPassed", 4} • }; • // Send • private TelemetryClient client = new TelemetryClient(); • client.TrackEvent("BespokeEvent", properties, metrics);

  21. Making sense of it all – Azure demo

  22. Awesomeness

  23. Added awesomeness Dashboarding Don’t forget to share it!

  24. Added awesomeness Investigate Interactive drill downs

  25. Added awesomeness Investigate Can’t find the cause? Maybe there’s a trend?

  26. Added awesomeness Power BI it Can’t find a graph? Make it.

  27. Added awesomeness Proactive detection Stay informed

  28. Added awesomeness Proactive detection Stay informed

  29. Gotchas

  30. Gotcha! Watch out for that spam Be sure to configure rules in Azure

  31. Gotcha! When 5 million is not enough Application Insights will stop recording any telemetry until the calendar month rolls over Your application will continue to run, just without logging enabled

  32. Gotcha! When 7 days of raw data is not enough Application Insights will discard telemetry after 7 days, but will retain the respective data metrics Use Continuous Export to pipe telemetry to a separate data store (e.g. Azure SQL)

  33. Question time

  34. Don’t be a dinosaur. Use Application Insights today to add awesomeness to your analytics

  35. Additional resources and references Application Insights documentation https://azure.microsoft.com/en-us/documentation/services/application-insights/ https://azure.microsoft.com/en-us/documentation/articles/app-insights-overview/ Soon Wong – Me! https://www.linkedin.com/in/soon-wong-0937a933

More Related