8

I have a production Azure website that I deployed a few days ago. I saw the "Availability" section in application insights (configured server side AI and client side AI is enabled right now) and through the new portal (portal.azure.com) I decided to set up availability "ping" test.

I left the majority of the settings at the default, Test Type was URL ping test, the URL is set to the root of my app, and frequency is 5 minutes. I left the test locations to the default of 5 in the different US regions.

What I noticed was that all the tests failed and I saw a lot of requests in my app for GET / with a status of 404. Since it was filling up my application insights request log with junk, and the availability test registered all failures, I deleted the availability test. Annoyingly after deleting, I noticed it was still there after refreshing the page, so I deleted it again and now it shows as "Not configured" and seems to be truly gone.

Before I deleted the availability test, I saw all these GET / requests in my AI logs and I looked at their IP addresses, they indeed seemed to come from the different US regions.

After I deleted the test, I assumed they would all stop. Unfortunately that did not happen, all but 1 of the 5 ping tests stopped but the one from with IP address as ::1 still seems to be happening. For almost a week that ping test still occurs every 5 minutes even though I deleted it.

How to remove the availability test completely from application insights?

halfer
  • 19,824
  • 17
  • 99
  • 186
Pradeep
  • 5,101
  • 14
  • 68
  • 140
  • Are you sure that this request every 5 minutes is not just the pinger from the Always On feature? What's the user agent on them? – David Ebbo Jun 12 '17 at 14:55
  • In my Web App settings Always On feature is ON under general settings. – Pradeep Jun 12 '17 at 15:05
  • Possible duplicate of [Application Insights disable GET requests every 5 min](https://stackoverflow.com/questions/41827438/application-insights-disable-get-requests-every-5-min) – Peter Bons Jun 12 '17 at 17:27

1 Answers1

7

The request that you see every 5 minutes is likely caused by the Always On feature, which uses it to keep the site alive. It is not related to the availability test.

You can verify that by temporarily turning off Always On and verifying that those requests stop.

David Ebbo
  • 42,443
  • 8
  • 103
  • 117
  • Not sure I understand the issue. WHat is wrong with having a request to the site root every 5 minutes? It is not harmful even. – David Ebbo Jun 12 '17 at 16:30
  • 1
    Use a [TelemetryProcessor](https://azure.microsoft.com/en-us/blog/request-filtering-in-application-insights-with-telemetry-processor/) to filter out the unwanted data then. That is the [official recommendation](https://visualstudio.uservoice.com/forums/357324-application-insights/suggestions/9112585-filter-out-alwayson-requests) – Peter Bons Jun 12 '17 at 17:29
  • @DavidEbbo, whatever GET requests I am getting those are not harmful but when ever I search failed requests in AI then those GET requests appears a lot compared to original failed requests. so, is there any possibility to disable those GET requests occurred in every 5 minutes. – Pradeep Jun 13 '17 at 05:06
  • 1
    Only if you turn off Always On, which will affect your WebJobs. Or you can simple return a 200 from / – David Ebbo Jun 13 '17 at 05:08