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

Container id found by cgroup requires normalization

Open xiaomi7732 opened this issue 1 year ago • 1 comments

An issue related to #290, reported by SantoshG-Derivco.

TL;DR

  • In cGroupV1, container id info: 6:cpuset:/kubepods.slice/kubepods-burstable.slice/kubepods-burstable-pod3e221707_600c_4eb1_8fe7_a9a7163a1278.slice/cri-containerd-5146b2bcd77ab4f2624bc1fbd98cf9751741344a80b043dbd77a4e847bff4f06.scope
  • The matched container id: cri-containerd-5146b2bcd77ab4f2624bc1fbd98cf9751741344a80b043dbd77a4e847bff4f06.scope
  • The expected container id: 5146b2bcd77ab4f2624bc1fbd98cf9751741344a80b043dbd77a4e847bff4f06

xiaomi7732 avatar Aug 12 '22 19:08 xiaomi7732

  • [x] Fix in 2.x
  • [x] Fix in 3.x

xiaomi7732 avatar Aug 12 '22 23:08 xiaomi7732

This issue should have been addressed in 2.0.5-beta1. Please check it out.

I'll keep this issue open until the same functionality has been forward port to 3.0.

xiaomi7732 avatar Aug 15 '22 21:08 xiaomi7732

@xiaomi7732 I've tested 2.0.5-beta1 and all looks good thanks 😄

SantoshG-Derivco avatar Aug 16 '22 07:08 SantoshG-Derivco

@SantoshG-Derivco Thanks for the confirmation. It is important for us to know that it works for you :-).

xiaomi7732 avatar Aug 16 '22 16:08 xiaomi7732

Stable package released: https://www.nuget.org/packages/Microsoft.ApplicationInsights.Kubernetes/2.0.5 @SantoshG-Derivco thanks for the contribution!

xiaomi7732 avatar Aug 29 '22 18:08 xiaomi7732