user10285265
user10285265

Reputation:

Sampling of telemetry over REST API of Applicaiton Insights

From a Java application we have made a logger which utilized the REST API for application insights on Azure.

But we are experiencing sampling of the telemetry we send over the wire. So my question is, is it possible to configure sampling when using the REST API ?

Thanks

Upvotes: 0

Views: 323

Answers (1)

Harshita Singh
Harshita Singh

Reputation: 4870

You can do sampling in App Insights, which is explained here.

There are three varieties of sampling methods offered by Azure App Insights:

  1. Adaptive sampling automatically adjusts the volume of telemetry sent from the SDK in your ASP.NET/ASP.NET Core app, and from Azure Functions. This is the default sampling when you use the ASP.NET or ASP.NET Core SDK. Adaptive sampling is currently only available for ASP.NET server-side telemetry, and for Azure Functions.

  2. Fixed-rate sampling reduces the volume of telemetry sent from both your ASP.NET or ASP.NET Core or Java server and from your users' browsers. You set the rate. The client and server will synchronize their sampling so that, in Search, you can navigate between related page views and requests.

  3. Ingestion sampling happens at the Application Insights service endpoint. It discards some of the telemetry that arrives from your app, at a sampling rate that you set. It doesn't reduce telemetry traffic sent from your app, but helps you keep within your monthly quota. The main advantage of ingestion sampling is that you can set the sampling rate without redeploying your app. Ingestion sampling works uniformly for all servers and clients, but it does not apply when any other types of sampling are in operation.

Upvotes: 0

Related Questions