简体   繁体   中英

Sink configuration for Application Insights for Azure Service Fabric

Where do I update the sink configuration for Azure Service Fabric https://docs.microsoft.com/en-us/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>

These settings is set as part of the cluster creation, when you setup a cluster from azure portal, you have to provide Application Insights Key as part of the setup and it will create for your.

If you used ARM templates, you have to configure it on wadCfg section of your template.

Please take a look at this link to know more

Please take into account that these settings are targeted monitor and log events from the cluster, if are planning to use these settings to monitor you apps, I would recommend using EventFlow bundled in your application. Because the cluster generally does not change as often as your application does.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM