Azure App service Health Check Enable but metric is not collected

katsukichi 21 Reputation points
2023-11-21T06:50:50.08+00:00

User's image

but my metric is not collected

User's image

help me plz

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,900 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 18,366 Reputation points
    2023-11-21T18:46:03.3366667+00:00

    @katsukichi

    Thanks for reaching here! If you have enabled Health Check for your Azure App Service but the metric is not being collected, there could be a few reasons for this.

    Here are some steps you can take to troubleshoot the issue:

    1. Check if the Health Check feature is enabled for your App Service. You can do this by browsing to the Azure portal and selecting your App Service app. Under Monitoring, select Health check. If the feature is not enabled, select Enable and provide a valid URL path on your application, such as /health or /api/health. Select Save.
    2. Check if the Health Check URL is correct. Make sure that the URL you provided for the Health Check is correct and returns a status code between 200-299 (inclusive). You can test this by browsing to the URL in a web browser or using a tool like Postman.
    3. Check if the Health Check is configured correctly. In addition to configuring the Health Check options, you can also configure the following app settings:
      • WEBSITE_HEALTHCHECK_MAXPINGFAILURES: The required number of failed requests for an instance to be deemed unhealthy and removed from the load balancer. For example, when set to 2, your instances will be removed after 2 failed pings. (Default value is 10)
      • WEBSITE_HEALTHCHECK_IDLETIMEOUT: The amount of time (in seconds) that an instance must be idle before it is removed from the load balancer. (Default value is 120)
      • WEBSITE_HEALTHCHECK_PATH: The URL path that the Health Check feature will use to ping your application. (Default value is /)
      • WEBSITE_HEALTHCHECK_STATUSCODES: The status codes that the Health Check feature will consider healthy. (Default value is 200-399)
      1. Check if the Health Check is being blocked by a firewall. If your application is behind a firewall, make sure that the Health Check URL is allowed through the firewall.
      For more information see- Monitor App Service instances using Health check If none of these steps resolve the issue, suggest you to Please reach out to us by sending an email with subject line “Attn:Sneha |thread title” to AzCommunity[at]microsoft[dot]com referencing this thread, for further assistance. I hope this helps! Let me know if you have any other questions.
    0 comments No comments