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

fix: enroll failed on docker with diffent user process #11

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

luohoufu
Copy link
Contributor

What does this PR do

This pull request includes several changes to improve the handling of process discovery and address resolution in Kubernetes environments, as well as some minor import adjustments.

Improvements to process discovery and address resolution:

  • lib/process/discover.go: Introduced a new function handleK8sProcess to handle processes with PID 1 in Kubernetes environments, and updated DiscoverESProcessors to use this function. Additionally, added functionality to read listening addresses from /proc/net/tcp and /proc/net/tcp6 files on Linux if no addresses are found initially. [1] [2] [3]

Import adjustments:

Rationale for this change

Standards checklist

  • The PR title is descriptive
  • The commit messages are semantic
  • Necessary tests are added
  • Updated the release notes
  • Necessary documents have been added if this is a new feature
  • Performance tests checked, no obvious performance degradation

@luohoufu luohoufu requested review from silenceqi and medcl January 23, 2025 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants