Application insight monitor doesn't send data to portal due to insufficient permission

柔情痞子 提交于 2020-01-24 07:49:29

问题


I installed the application insight status monitor on IIS, however I still don't have server data on the azure portal, and in the monitor I got the following warning message on my app.

"The application XXX running under application pool 'XXX' might have insufficient permissions to collect performance data. If no performance counter data is visible in the portal, make sure that the security principal under which the application runs is a member of 'Performance Monitor Users' group".

Where can I set up the security principal of my app? Thanks!


回答1:


The problem is that the identity under which your Application Pool is running doesn't have access to monitoring and collecting performance counter data. To fix this, you could do the following:

  1. Determine the identity of the Application Pool in IIS
    • Open inetmgr using Run or directly launch IIS from Windows
    • Click on Application Pools and check the identity for the app pool running your app.
    • Alternatively you could navigate to the application, click on Basic or Advanced Settings and check the Application Pool
    • The application pool identity might be set to a built-in one, such as LocalServer, LocalSystem etc. or a custom account.
  2. Add this identity to 'Performance Monitor Users' Group
    • Open Users and Groups or directly launch lusrmgr.msc from Run
    • Navigate to Groups -> Performance Monitor Users
    • Add the identity of the application pool (from previous step)

Now your app should be able to collect performance counters and also send to AI without any problems.

Hope this helps!



来源:https://stackoverflow.com/questions/44124901/application-insight-monitor-doesnt-send-data-to-portal-due-to-insufficient-perm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!