ApplicationInsights-Kubernetes icon indicating copy to clipboard operation
ApplicationInsights-Kubernetes copied to clipboard

Is it possible to choose which properties to log into ApplicationInsight ?

Open macpak opened this issue 2 years ago • 3 comments

I can't find this but is it possible to log only specific properties ? (like pod/container name only)

macpak avatar Sep 23 '21 14:09 macpak

@macpak, there's currently no way to specify which properties to include, it is all or nothing. That said, would you mind explain why would you not want some of the properties being there? Thanks!

xiaomi7732 avatar Sep 27 '21 18:09 xiaomi7732

Generally, I'd like to have all of them :) The problem is that in our case, we do not have all the permissions to get all propertes.

When I enabled diagnostics, I saw some failed requests with HTTP 403. Additiionally, it seems that when some properties can't be obtained, no logs are pushed to ApplicationInsights (at least that's what I've observed).

macpak avatar Sep 27 '21 19:09 macpak

It sounds like what you want is: Get the property when possible but don't be disturb if the value couldn't be fetched, right?

xiaomi7732 avatar Feb 16 '22 18:02 xiaomi7732

All the properties are made optional except the Pod. Please check out https://www.nuget.org/packages/Microsoft.ApplicationInsights.Kubernetes/2.0.6-beta1 Or https://www.nuget.org/packages/Microsoft.ApplicationInsights.Kubernetes/3.0.0-beta2

xiaomi7732 avatar Sep 12 '22 22:09 xiaomi7732