Probably it's not this project issue, but rather BatchLabs (https://github.com/Azure/BatchLabs/issues/1348). However it might be confusing on both sides. Anyway I think people will look for a solution here as well - same as I did it, and didn't find it so easily.
In BatchLabs before I configured AppInsights for my Windows pool, there was a documentation saying how it should be configured (copy-pasting it without any modification).
Add APP_INSIGHTS_KEY environment variable in the start task(App insights instrumentation key)
Add APP_INSIGHTS_APP_ID environment variable in the start task(App insights application ID)
I did everything as described, but AppInsights weren't working. Only after investigating windows.ps1 I saw that environment variable should be called APP_INSIGHTS_INSTRUMENTATION_KEY, not APP_INSIGHTS_KEY.
Seems like minor issue, but it's quite hard to spot such ones.
For non-windows setups - it might be not an issue, because it's scheduled in another way, and nodestats.py supports both variants.
Probably it's not this project issue, but rather BatchLabs (https://github.com/Azure/BatchLabs/issues/1348). However it might be confusing on both sides. Anyway I think people will look for a solution here as well - same as I did it, and didn't find it so easily.
In BatchLabs before I configured AppInsights for my Windows pool, there was a documentation saying how it should be configured (copy-pasting it without any modification).
I did everything as described, but AppInsights weren't working. Only after investigating windows.ps1 I saw that environment variable should be called
APP_INSIGHTS_INSTRUMENTATION_KEY
, notAPP_INSIGHTS_KEY
. Seems like minor issue, but it's quite hard to spot such ones.For non-windows setups - it might be not an issue, because it's scheduled in another way, and nodestats.py supports both variants.