introduction to application insights

Post on 06-Aug-2015

328 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Introduzione ad Application InsightsGian Maria Riccialkampfer@nablasoft.com - @alkampferhttp://www.codewrecks.com/http://www.getlatestversion.it/author/alkampfer/

#CDays14 – Milano 25, 26 e 27 Febbraio 2014

Agenda

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

#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??)

#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

#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

#CDays14 – Milano 25, 26 e 27 Febbraio 2014

demoCreate your first application insights enabled web application

#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.

#CDays14 – Milano 25, 26 e 27 Febbraio 2014

demoStart monitor existing application with IIS Agent

#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

#CDays14 – Milano 25, 26 e 27 Febbraio 2014

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

#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

#CDays14 – Milano 25, 26 e 27 Febbraio 2014

Choose right strategy

Unobtrusive

Obtrusive instrumented

Obtrusive custom logging code approach

#CDays14 – Milano 25, 26 e 27 Febbraio 2014

demoWrite code to send custom logs 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

top related