0
votes

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>
1

1 Answers

0
votes

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.