title: Should Azure Log Analytics and Application Insights be used per app or per environment?
body: <p>We have a Azure based system which is growing in complexity, and we need to monitor chains of events and ensure they arrive where we expect them to arrive.</p>
  <p>We have a on-prem Java application, which sends events to an IoT Hub. The IoT hub routes to service bus queues. We have functions that update a cosmos database, trigger other functions or route to additional queues. Some functions are also callable through an API Management instance.</p>
  <p><a href="https://i.stack.imgur.com/iaGuE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iaGuE.png" alt="enter image description here" /></a></p>
  <p>Our functions are already connected to Application Insights, and here the Application Insights instance is named the same as the Function App (IIRC this naming was suggested through the form that created the AI resource)</p>
  <p>The application map in Application Insights make me lean toward one AI per environment, to have a complete map of the system. Log Analytics also seems logical to use one per environment to be able to potentially correlate data if needed.</p>
  <p>What is the correct path for Log Analytics and Application Insights, respectively?</p>
  <p>If it is not as clear-cut as stated in my title, what factors do I need to consider when I start to use these services?</p>