'Monitor CPU and memory for Azure WebJob

I have setup application insights for a web app and I can see the performance figures such as CPU and memory consumed by the app. I have another app which contains only a webjob. How can I monitor CPU and memory consumed by the webjob? It is a .NET console application. I have added in the Nuget packages to the console app and I am able to manually register events to Application Insights - such as exceptions. For some reason though I am not getting performance data. Is this possible and how do I do it?



Solution 1:[1]

If third party tools are an option, look into CloudMonix - it can monitor utilizatino metrics of WebApps with Webjobs on them as well as monitor for WebJobs and even restart them upon failure

Solution 2:[2]

Unfortunately you cannot get performance counters from your Web App (App Service) with Application Insights. See here and note the first sentence.

(Not for Azure web apps.) Click Servers on the overview blade to ...

I would recommend looking at the link below for getting the CPU data for your App Service.

Monitor service metrics

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Igorek
Solution 2 Jake Braun