pixie icon indicating copy to clipboard operation
pixie copied to clipboard

No data available for Flamegraph table for init container

Open leonard520 opened this issue 2 years ago • 2 comments

Describe the bug I have one pod whose init container needs to take more than 1 minute to finish the job so I want to check the flame graph for it. Note that most work is done by init containers and the pod will be complete very soon after init container finish it task. The situation is that I am able to see the pod when I select px/perf_flamegraph but it told me "No data available for Flamegraph table". I am sure the time duration is correct and I can see some other pods' flame graph in other namespaces. Is it by design or I miss something?

To Reproduce As above

Expected behavior There should be flame graph.

Screenshots image

Logs Please attach the logs by running the following command:

./px collect-logs

App information (please complete the following information):

  • Pixie 0.13.5
  • K8s cluster version v1.24.10
  • Node Kernel version 5.15.102.1
  • Browser version

Additional context Add any other context about the problem here.

leonard520 avatar May 27 '23 17:05 leonard520

Hi @leonard520 ! Do you have some more information about the init container? For example, what language are you using?

aimichelle avatar Jun 01 '23 16:06 aimichelle

@aimichelle It is written in go. The code looks like https://github.com/pivotal/kpack/blob/main/cmd/build-init/main.go

leonard520 avatar Jun 02 '23 09:06 leonard520