Nodejs application status on azure webapp for monitoring

pragadeesh.raju 41 Reputation points
2020-07-03T11:00:32.053+00:00

Hello All,

I am running my nodejs application on webapp service. I have an agent to monitor the application health and status. In that application status is checked by WMIC and other status by API.
WMIC -- WMIC PROCESS get Caption,Commandline,Processid (where i can monitor something like this -- node.exe "D:\Program Files\iisnode\interceptor.js" "D:\home\site\wwwroot\run.js")

right now, I have few questions about it.

1) I couldn't run WMIC command in webapp as it is a sandbox. Is there any workaround for it to run WMIC. or any other way to monitor the process.

2) can i use the agent outside to webapp to check the other activity health by the API.

let me know any suggestions/solutions to overcome this. Thanks.

cc @brtrach-MSFT

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,913 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 28,636 Reputation points Microsoft Employee
    2020-07-07T00:41:08.527+00:00

    Hi @pragadeeshraju-2799,

    I'm not sure if you've explored Heath Check which is still in preview, but I would look at that. You can create an alert that will trigger should the health check count not meet expectations.

    1. As you are already aware, WMIC can't be accessed from the sanbox. One workaround you could do would be to host your app in a docker container. If you got that, make sure you use one of the cached images to avoid container start time timeouts.
    2. I'm not aware of any 3rd party agents off hand, but you can easily create a service application that pings your app service and reports however you want/need it to. I will say though that Azure Monitor is quite comprehensive should you want to review 1st party service.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.