none
Can multiple services have same implementation keys inorder to co-relate the dependency between the services

    Question

  • Hi Team,

    I would like to know if we can use one Instrumentation Key for multiple services in order to link the services and check for the dependencies.

    Also, if that is not possible I would like to know how to link multiple services in order to show the co-relation between them and get the exception stack trace whenever there are some issues.

    Please do suggest me different ways to implement application insights on multiple services so that they are connected to each other and portrays the dependency between them in the Application Map.

    I am a beginner for Application Insights and a need has arise to implement the above mentioned scenario... Please suggest me if am thinking the right way or the right way either!!!

    Thanks in Advance

    Regards,

    Shri

    Thursday, December 6, 2018 9:14 AM

All replies

  • Hi Team,

    Could someone please help me if the above scenario is a possible one? If not, could someone please suggest me with the right approach.

    Thanks in Advance

    Regards,

    Shri

    Monday, December 10, 2018 8:57 AM
  • Hello Shri,

    Azure Application Insights allows one to monitor Web Applications, regardless of whether they're running on Azure or not. As mentioned in the Official documentation, this happens when one installs an instrumentation package in the application and sets up an Application Insights resource in the Microsoft Azure portal. The instrumentation monitors the app and sends telemetry data to the portal.

    Every Application Insights resource has an Instrumentation Key, also known as the ikey, which specifies where the Telemetry is to be displayed. Also, you can instrument not only the web application, but also any background components, and the JavaScript in the web pages.

    This document talks in detail about Dependency tracking with Azure Application Insights.

    And this document explains how you can leverage Application Map to discover such dependencies.

    Hope this helps!


    Tuesday, December 11, 2018 2:11 PM
    Moderator
  • Thank you for the Quick help...

    However, I still have one doubt. Request you to help me on that as well!

    1> If there is an application which is consuming some services which in-turn has inter-dependencies with external services then how should the AppInsights be configured so as to get the data from the application perspective as a whole. If there is a failure then the AppInsights should be able to provide the end level of exception that failed due to which application did not respond as expected. Which means in the waterfall flow of exceptions, AppInsights should be able to depict where exactly the issue is... To achieve this please suggest me the right path. 

    2> Is it by having multiple Instrumentation Keys one integrated with every dependent service or is it by having one single instrumentation key that must be integrated with all the services...

    Also, do let me know if the above scenarios exist and if exist then how to achieve it!!!

    Thanks in Advance

    Regards,

    Shri


    Shri

    Wednesday, December 12, 2018 2:27 PM
  • #1 > The Application Insights SDKs include a dependency module that automatically collects partial dependency information for your Web app. To get the complete data, you might want to install the appropriate agent for the host server as listed hereYou can also write your own SDK calls to monitor other custom dependencies, both in the client and server code, using the TrackDependency API.

    #2 > One Instrumentation key is generated for each Application Insights resource. To separate telemetry for different application components, or for different versions of the same component, you'll have to create a new Application Insights resource. However, if you want to view all of your Telemetry results in the same resource, you can configure the same ikey throughout. This document can help you understand it better.

    The Application Map feature in Application Insights generates the topology automatically from the Telemetry received from your app. Please check out the Official documentation on Dependency Tracking for Application Insights to know more.

    Tuesday, December 18, 2018 12:11 PM
    Moderator
  • Hello Shri133,

    Have you had a chance to check if any of the above options worked for you? Please let us know otherwise and we'll be happy to assist you!

    Thursday, January 17, 2019 4:50 PM
    Moderator
  • Hello Shri133,

    Have you had a chance to check if any of the above options worked for you? Please let us know otherwise and we'll be happy to assist you!

    Thursday, January 24, 2019 7:38 AM
    Moderator