introduction to application insights

14
Introduzione ad Application Insights Gian Maria Ricci [email protected] - @alkampfer http://www.codewrecks.com/ http://www.getlatestversion.it/ author/alkampfer/

Upload: gian-maria-ricci

Post on 06-Aug-2015

328 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Introduction to Application insights

Introduzione ad Application InsightsGian Maria [email protected] - @alkampferhttp://www.codewrecks.com/http://www.getlatestversion.it/author/alkampfer/

Page 2: Introduction to Application insights

#CDays14 – Milano 25, 26 e 27 Febbraio 2014

Agenda

• Some overview on logging and application insights• Demo – demo - demo

Page 3: Introduction to Application insights

#CDays14 – Milano 25, 26 e 27 Febbraio 2014

Why logging?

• Troubleshooting problems in production• Monitor application health in production• Gain telemetry data for your business• Help developer writing code faster (really??)

Page 4: Introduction to Application insights

#CDays14 – Milano 25, 26 e 27 Febbraio 2014

Loggin costs….

• Time: spent to instrument your application• Time: spent to create visualization and dashboards• Money: for storage and resources needed to store vast amount of

data• Time: to maintain more code only devoted to logging infrastructure

Page 5: Introduction to Application insights

#CDays14 – Milano 25, 26 e 27 Febbraio 2014

Application Insights

• Automatic instrumentation of applications (asp.net, Window Phone, Windows Store, Java Web)• IIS agent to gain data from existing applications• One click instrumentation setup in Visual Studio• Instrument application after creation or before creation• Ability to use custom logging

Page 6: Introduction to Application insights

#CDays14 – Milano 25, 26 e 27 Febbraio 2014

demoCreate your first application insights enabled web application

Page 7: Introduction to Application insights

#CDays14 – Milano 25, 26 e 27 Febbraio 2014

Existing and deployed web applications• IIS agent installable with Web Platform Installer• Few click configuration to monitor existing applications• No need to modify code to obtain base metrics• Add classic javascript snippet to track more metrics.

Page 8: Introduction to Application insights

#CDays14 – Milano 25, 26 e 27 Febbraio 2014

demoStart monitor existing application with IIS Agent

Page 9: Introduction to Application insights

#CDays14 – Milano 25, 26 e 27 Febbraio 2014

Synthetic Monitors

• Verify status of your web application from different azure servers around the world• Simple ping test to verify some critical pages responds within specific

response time range• Use Visual Studio WebTest to test a complex navigation path

Page 10: Introduction to Application insights

#CDays14 – Milano 25, 26 e 27 Febbraio 2014

demoSynthetic Monitors for your application with simple ping or .webTest file

Page 11: Introduction to Application insights

#CDays14 – Milano 25, 26 e 27 Febbraio 2014

Obtrusive VS UnObtrusive

• Unobtrusive• Using an agent-only approach does not require developers intervention• Simple deploy on production/test/staging server and start having data

• Obtrusive• Ability to track more metrics automatically• Custom data sent from developers to application insights monitor• Track business goal• Need to write code

Page 12: Introduction to Application insights

#CDays14 – Milano 25, 26 e 27 Febbraio 2014

Choose right strategy

Unobtrusive

Obtrusive instrumented

Obtrusive custom logging code approach

Page 13: Introduction to Application insights

#CDays14 – Milano 25, 26 e 27 Febbraio 2014

demoWrite code to send custom logs to Application Insights

Page 14: Introduction to Application insights

#CDays14 – Milano 25, 26 e 27 Febbraio 2014

Recap

• Application Insights just exited from preview• You can try it on your existing application with few clicks• Lots of data automatically tracked without needs for developer

intervention• Ability to add custom metric to profile your application