Application Insights for AzureWebsite showing GET / requests every five minutes even after deleting availability test
Asked Answered
T

1

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?

Tormentil answered 12/6, 2017 at 14:2 Comment(3)
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?Outwear
In my Web App settings Always On feature is ON under general settings.Tormentil
Possible duplicate of Application Insights disable GET requests every 5 minOuachita
O
8

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.

Outwear answered 12/6, 2017 at 16:5 Comment(5)
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.Outwear
Use a TelemetryProcessor to filter out the unwanted data then. That is the official recommendationOuachita
@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.Tormentil
Only if you turn off Always On, which will affect your WebJobs. Or you can simple return a 200 from /Outwear
This is a great bit of information!Frontality

© 2022 - 2024 — McMap. All rights reserved.