ApplicationInsights-Kubernetes
ApplicationInsights-Kubernetes copied to clipboard
Is it possible to choose which properties to log into ApplicationInsight ?
I can't find this but is it possible to log only specific properties ? (like pod/container name only)
@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!
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).
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?
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