Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect pod specific process information such as ps output, memory etc #42

Open
mrajagopal opened this issue Sep 4, 2024 · 2 comments · May be fixed by #78
Open

Collect pod specific process information such as ps output, memory etc #42

mrajagopal opened this issue Sep 4, 2024 · 2 comments · May be fixed by #78
Assignees
Labels
enhancement New feature or request

Comments

@mrajagopal
Copy link
Contributor

Although we have pod level detail within k8s, there are times it may be necessary to understanding the process level utilisation of CPU and memory within the pod/container to assess inefficiencies.
At present, one would need to instruct the customer to access the pod to run various commands which can be prone to error.

Describe the solution you'd like
The objective of this issue is to explore collecting pod specific process information such as ps output, memory etc.

@mrajagopal mrajagopal added the enhancement New feature or request label Sep 4, 2024
@cpuengr949
Copy link

cpuengr949 commented Sep 5, 2024

Some of the commands that have been asked to run are below, it would be nice to have all of this in the support package if needed.
cat /sys/fs/cgroup/memory.stat from within a Ingress Controller pod
for p in $(pidof nginx nginx-ingress); do sudo pmap ${p} -X; done from the k8s node running the Ingress Controller pods
for p in $(pidof nginx nginx-ingress); do cat /proc/${p}/status; done since azure was unable to run the command above
Collect the following information from the API endpoint from the pods:

/api/8/processes
/api/8/connections
/api/8/slabs
/api/8/http/requests
/api/8/http/server_zones
/api/8/http/location_zones
/api/8/http/caches
/api/8/http/upstreams
/api/8/http/keyvals

@mrajagopal mrajagopal self-assigned this Nov 14, 2024
@mrajagopal
Copy link
Contributor Author

Our plan is to deploy a custom container as a sidecar in the pod to fetch the necessary data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants