Azure API Management and Application Insights

Nilsson, Jonas A 22 Reputation points
2020-08-07T07:36:37.06+00:00

I have connected Application Insights to Azure API Management to monitor the API-traffic.
The default configuration is used, with no Diagnostics logs enabled on individual APIs.

Some APIs have heavy traffic and data ingestion to Application Insights causing a bigger cost.
Is it possible to turn off the monitoring/data ingestion of individual APIs?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,913 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 69,946 Reputation points
    2020-08-07T07:48:21.493+00:00

    Hi @Anonymous

    Yes, you can specify loggers on different levels - single API logger or a logger for all APIs.
    Please refer to this document: https://video2.skills-academy.com/en-us/azure/api-management/api-management-howto-app-insights#enable-application-insights-logging-for-your-api

    16381-image.png


2 additional answers

Sort by: Most helpful
  1. Moamen Hany 1,091 Reputation points MVP
    2020-08-08T12:40:02.597+00:00

    See this video https://video2.skills-academy.com/en-us/azure/api-management/api-management-howto-app-insights#video

    Please do not forget to "Accept the answer" and Upvote on the post that helps you, this can be beneficial to other community members.
    http://www.moamenhany.com

    1 person found this answer helpful.
    0 comments No comments

  2. Nilsson, Jonas A 22 Reputation points
    2020-08-20T13:00:47.477+00:00

    I have reported a bug regarding this configuration. If you set the sampling rate to 0% and uncheck "Always log errors", then all log data is sent to Application Insights, instead of none. A temporary solution is to set the sampling rate to 1% to keep the data ingestion down.

    0 comments No comments