locked
Azure Application insight server performance monitoring RRS feed

  • Question

  • HI,

    I am using Azure application insight and want to know how to handle below scenarios.

    1) using Azure AppInsight across my application workflow which contains some non-asp.net components. I have a web role and a worker role, I can use AI in web role, but how can I use it in worker role. goal is to have end-to-end tracking for my workflow.

    2) in web role, is there an option to get call timing details for my server side code. for page timing, I want to drill down which method in that page took maximum time.

    3)when I use APp Insight javascript code in my page for tracking, it start collecting data. Is there an option to specifiy my some custom ID to log along with data. Presently AI logs its own sessionId and requestId, I want to associate my customId(per request) against the captured data.

    Thanks


    singhhome

    Monday, December 29, 2014 1:13 PM

Answers

  • Also please see this thread for more information on how to configure AI for a worker role:

    http://stackoverflow.com/questions/26505483/appinsights-for-wpf-application/26641583#26641583

    Add Application Insights API nuget to your application, update the instrumentation key in the config to match the one from you AI resource, then you can

    TelemetryClient telemetryClient = new TelemetryClient();

    and use methods such as TrackTrace, TraceRequest, TrackMetric/Event etc.


    Application Insights team is hiring: https://careers.microsoft.com/jobdetails.aspx?jid=166735. Interested? Please email your resume to albulank at microsoft.com.

    • Marked as answer by singhhome Wednesday, December 31, 2014 8:35 AM
    Tuesday, December 30, 2014 7:19 AM

All replies

  • As I understand for your web role you are using "Application Insights for Web Applications". This package adds http module which tracks requests.
    Application Insights for Web Applications actually depends on Application Insights API package. Using this Core API you can track events and metrics from any .Net application. So for your question 1 and 2: you will need to use AI SDK and manually instrument your code.

    As for Js SDK all AI types have a property bag. Here is a post with documentation: https://social.msdn.microsoft.com/Forums/vstudio/en-US/9d80b249-e411-424f-b213-6152484c8573/application-insights-js-api-docs?forum=ApplicationInsights


    Anastasia

    • Proposed as answer by Alex Bulankou Tuesday, December 30, 2014 7:19 AM
    Tuesday, December 30, 2014 12:27 AM
  • Also please see this thread for more information on how to configure AI for a worker role:

    http://stackoverflow.com/questions/26505483/appinsights-for-wpf-application/26641583#26641583

    Add Application Insights API nuget to your application, update the instrumentation key in the config to match the one from you AI resource, then you can

    TelemetryClient telemetryClient = new TelemetryClient();

    and use methods such as TrackTrace, TraceRequest, TrackMetric/Event etc.


    Application Insights team is hiring: https://careers.microsoft.com/jobdetails.aspx?jid=166735. Interested? Please email your resume to albulank at microsoft.com.

    • Marked as answer by singhhome Wednesday, December 31, 2014 8:35 AM
    Tuesday, December 30, 2014 7:19 AM