[英]Sink configuration for Application Insights for Azure Service Fabric
在哪里更新Azure Service Fabric https://docs.microsoft.com/zh-cn/azure/monitoring-and-diagnostics/azure-diagnostics-configure-application-insights的接收器配置?
<SinksConfig>
<Sink name="ApplicationInsights">
<ApplicationInsights>{Insert InstrumentationKey}</ApplicationInsights>
<Channels>
<Channel logLevel="Error" name="MyTopDiagData" />
<Channel logLevel="Verbose" name="MyLogData" />
</Channels>
</Sink>
</SinksConfig>
這些設置是在集群創建過程中設置的,當您從azure門戶設置集群時,必須提供Application Insights Key作為設置的一部分,它將為您創建。
如果使用ARM模板,則必須在模板的wadCfg部分進行配置。
請查看此鏈接以了解更多信息
請考慮到這些設置是針對集群的監視器和日志事件的,如果打算使用這些設置來監視您的應用程序,我建議您使用捆綁在應用程序中的EventFlow。 因為群集通常不會像您的應用程序那樣頻繁地更改。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.