Adding Performance counter collector support to Web App for Windows Containers#1167
Adding Performance counter collector support to Web App for Windows Containers#1167shibayan wants to merge 2 commits intomicrosoft:developfrom shibayan:webapp-container-windows
Conversation
|
@shibayan Hi thanks for your contribution! Can you describe what the issue is and how is the fix helping with it? |
|
@cijothomas Thank you for replying! Web App for Windows Containers can read performance counters directly. However, when the Because of this process, the value of the performance counter could not be obtained on Windows Containers. When |
|
@shibayan Thanks for explanation! @SergeyKanzhelev can you add someone from AppServices team to confirm the above so that we can take a dependency of this behavior. |
|
ping @SergeyKanzhelev |
|
Any updates? |
|
@shibayan Thanks for reminding here. I will be talking internally to the person from Web App team, and will come back to this this week. |
|
@shibayan I was told from App Service team that its safer to rely on the env variable XENON=1, to detect this. (SKUs might change in future.) |
|
@cijothomas Thanks! Below is an App Service that I own, but Can I ask App Service Team to pass |
|
Hi XENON environment variable is not passed to the container and it is only available in the SCM site. We are making a change to App Service to add a new environment variable called WEBSITE_ISOLATION. When WEBSITE_ISOLATION="hyperv", it means that the website is executed in a Hyper-V Container. It will take some time for this change to be propagated to production but feel free to incorporate this into the AI SDK. Once this change is in prod, please remove the logic to detect Windows Containers using WEBSITE_SKU="PremiumContainer" Thanks, Joaquín |
|
@jvano I understood. Thank you! |
|
@shibayan I will comeback to this soon. i am also working in this area and there are likely lot of conflicts. |
|
@cijothomas That's great! I look forward to the release. |
|
#1195 is ready to merge. I will take this in that or a new follow up PR. |
|
Great work! Awesome! |
|
As I was able to achieve my original purpose, I will close this PR soon :) |
|
closing as #1218 is merged now.Thanks |
Fix Issue #676
Fixed the problem that performance counters are not collected in Web App for Windows Containers.
For significant contributions please make sure you have completed the following items:
Changes in public surface reviewed
Design discussion issue #
CHANGELOG.md updated with one line description of the fix, and a link to the original issue.
The PR will trigger build, unit tests, and functional tests automatically. If your PR was submitted from fork - mention one of committers to initiate the build for you.
If you want to to re-run the build/tests, the easiest way is to simply Close and Re-Open this same PR. (Just click 'close pull request' followed by 'open pull request' buttons at the bottom of the PR)
Please follow [these] (https://github.com/Microsoft/ApplicationInsights-dotnet-server/blob/develop/CONTRIBUTING.md) instructions to build and test locally.