기본 엔드포인트를 재정의하는 Application Insights
Application Insights에서 특정 지역으로 데이터를 보내려면 기본 엔드포인트 주소를 재정의해야 합니다. 각 SDK에는 약간 다른 수정이 필요하며, 이는 모두 이 문서에 설명되어 있습니다. 이러한 변경을 수행하려면 샘플 코드를 조정하고 QuickPulse_Endpoint_Address
, TelemetryChannel_Endpoint_Address
및 Profile_Query_Endpoint_address
의 자리 표시자 값을 특정 지역의 실제 엔드포인트 주소로 바꿔야 합니다. 이 문서의 끝에는 이 구성이 필요한 지역의 엔드포인트 주소에 대한 링크가 포함되어 있습니다.
참고
2025년 3월 31일에 계측 키 수집에 대한 지원이 종료됩니다. 계측 키 수집은 계속 작동하지만 더 이상 기능에 대한 업데이트 또는 지원을 제공하지 않습니다. 연결 문자열로 전환하여 새로운 기능을 활용합니다.
SDK 코드 변경
참고
SDK 업그레이드가 수행될 때마다 applicationinsights.config 파일이 자동으로 덮어쓰여집니다. SDK 업그레이드를 수행한 후에는 지역별 엔드포인트 값을 다시 입력해야 합니다.
<ApplicationInsights>
...
<TelemetryModules>
<Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryModule, Microsoft.AI.PerfCounterCollector">
<QuickPulseServiceEndpoint>Custom_QuickPulse_Endpoint_Address</QuickPulseServiceEndpoint>
</Add>
</TelemetryModules>
...
<TelemetrySinks>
<Add Name = "default">
<TelemetryChannel>
<EndpointAddress>TelemetryChannel_Endpoint_Address</EndpointAddress>
</TelemetryChannel>
</Add>
</TelemetrySinks>
...
<ApplicationIdProvider Type="Microsoft.ApplicationInsights.Extensibility.Implementation.ApplicationId.ApplicationInsightsApplicationIdProvider, Microsoft.ApplicationInsights">
<ProfileQueryEndpoint>Profile_Query_Endpoint_address</ProfileQueryEndpoint>
</ApplicationIdProvider>
...
</ApplicationInsights>
엔드포인트를 수정해야 하는 지역
현재 엔드포인트 수정이 필요한 유일한 지역은 Azure Government와 Azure 중국입니다.
지역 | 엔드포인트 이름 | 값 |
---|---|---|
Azure 중국 | 원격 분석 채널 | https://dc.applicationinsights.azure.cn/v2/track |
Azure 중국 | QuickPulse(라이브 메트릭) | https://live.applicationinsights.azure.cn/QuickPulseService.svc |
Azure 중국 | 프로필 쿼리 | https://dc.applicationinsights.azure.cn/api/profiles/{0}/appId |
Azure Government | 원격 분석 채널 | https://dc.applicationinsights.us/v2/track |
Azure Government | QuickPulse(라이브 메트릭) | https://quickpulse.applicationinsights.us/QuickPulseService.svc |
Azure Government | 프로필 쿼리 | https://dc.applicationinsights.us/api/profiles/{0}/appId |
현재 일반적으로 `api.applicationinsights.io'를 통해 액세스되는 Application Insights REST API를 사용하는 경우 해당 지역에 로컬인 엔드포인트를 사용해야 합니다.
지역 | 엔드포인트 이름 | 값 |
---|---|---|
Azure 중국 | REST API | api.applicationinsights.azure.cn |
Azure Government | REST API | api.applicationinsights.us |
다음 단계
- Azure Government의 사용자 지정 수정 사항에 대해 자세히 알아보려면 Azure 모니터링 및 관리에 대한 자세한 지침을 참조하세요.
- Azure 중국에 대해 자세히 알아보려면 Azure 중국 플레이북을 참조하세요.