What are the rules for Azure Application Insights data throttling?

Emin Sehic 0 Reputation points
2023-09-04T14:03:34.28+00:00

We use Azure Application Insights to collect data from our frontend Angular Application. We noticed some logs are missing (we know that by providing payment ID - some value of internal use), but we do not know why they are missing.

We haven't implemented any of these:

  • Adaptive sampling (not even supported for JavaScript SDK)
  • Fixed-rate sampling
  • Ingestion sampling (ingestion sampling on Azure Portal for the Application Insights resource is set to collect all data - 100%)

We used the query recommended in the official documentation to check if any logs have been sampled, and RetainedPercentage is 100, which means no sampling occurred.

What caught our attention however are these statements from the official documentation:

  • "Sampling also helps you avoid Application Insights throttling your telemetry."
  • "Sampling reduces the likelihood that your application sees throttling occur."
  • "...without causing data loss from throttling."
  • "...You may still experience telemetry data loss related to throttling..."

As we do not have any sampling configured by us, is it possible that we lost our data due to the throttling? I could not find any more info on throttling, like when it occurs and in which amount.

Can someone help here, please? What if we want to keep all of our logs for 90 days, with no sampling and no throttling, is it even possible?

Thank you!

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,662 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Thomas Meads 1,586 Reputation points
    2023-09-04T15:58:02.9033333+00:00

    Hi,

    Application insights limits are outlined here: https://learn.microsoft.com/en-us/azure/azure-monitor/service-limits#application-insights. To understand if your event was lost due to throttling you would have to evaluate the period you where expecting the event against these limits. If you have hit these limits contacting Microsoft support would be the best option as they will up these limits if possible.

    However, I note that these logs are coming from a frontend client application. This is important as these apps run in a much more variable environment and therefore it is possible that these logs were dropped due to a transient issue on the client side or a network issue. It maybe worth exploring this as a potential as well.

    It being a client side app I'd review the importance of this data and if there are other ways of logging it to app insights through a medium you control such as a backend API. This will give a greater guarantee that the data will be sent and ingested.

    Hope this is helpful.

    1 person found this answer helpful.

  2. AnuragSingh-MSFT 21,551 Reputation points Moderator
    2023-09-06T06:14:05.2766667+00:00

    Emin Sehic, thank you for the reply. As you mentioned, the blocking of requests from front/end (client browser) to AppInsights API endpoint could be one of the possibilities. For details on URLs/Ports requirement, see Application Insights Outgoing Ports

    Another possibility could be the limit reached for the daily cap - Application Insights daily cap configuration and queries to check

    If you do identify certain client machines/IPs from which the telemetry does not reach the AppInsights workspace, I would suggest opening a support case with Azure Support so that it can be investigated along with the logs from backend, if required.

    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.