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

Automatically populate Kubernetes customDimensions

Open carlin-q-scott opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. I'd like to have information about the deployment environment collected and sent along with the traces.

I was expecting this information to already be included like it is with the codeless asp.net library for App Insights for Kubernetes.

Describe the solution you would like The agent should have a configuration option that causes it to automatically collect environment info from the Kuberentes API and decorate the metrics/traces with that information.

Describe alternatives you have considered

Inject environment variables via the resource definition and reference them in the applicationinsights.json customDimensions section.

carlin-q-scott avatar Feb 24 '23 18:02 carlin-q-scott

Here's my workaround, which maybe is good enough to be included in this project? 🤷

https://gist.github.com/carlin-q-scott/54d7170b19938b45d2e69d5b73cd8fc1

carlin-q-scott avatar Feb 24 '23 21:02 carlin-q-scott