Kubernetes related properties are not coming up in App insights

Srivathsan S 41 Reputation points
2022-05-18T09:23:14.217+00:00

Please check this link and let me know. Thanks

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,969 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,961 questions
0 comments No comments
{count} votes

Accepted answer
  1. Monalla-MSFT 12,766 Reputation points
    2022-05-23T20:00:28.377+00:00

    @Srivathsan S - Thanks for reaching out to us.

    and thanks for raising the issue in our GitHub channel as well where our Product team was able to resolve the issue.

    Reiterating it here for broader audience.

    The console application example has been updated. The telemetry initializers stopped being picked up automatically, there's a small code change needed to make it work. Basically, need to update the configure code like this:

    var channel = new InMemoryChannel();
    // Update the configuration code like this:
    services.AddOptions<TelemetryConfiguration>().Configure<IServiceProvider>((config, p) =>
    {
    // Appending registered telemetry initializers.
    foreach (ITelemetryInitializer registeredInitializer in p.GetServices<ITelemetryInitializer>())
    {
    config.TelemetryInitializers.Add(registeredInitializer);
    }
    // Setup up telemetry channels.
    config.TelemetryChannel = channel;
    }

    Hope this helps. and please feel free to reach out if you have any further questions.

    ------------------------------------------------------------------

    If the above response was helpful, please feel free to "Accept as Answer" and "Upvote" the same so it can be beneficial to the community.

    0 comments No comments

0 additional answers

Sort by: Most helpful