Skip to content

RST-12669 Use program basename instead of full path #117

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

Merged
merged 1 commit into from
Mar 14, 2025

Conversation

paulbovbel
Copy link
Contributor

@paulbovbel paulbovbel commented Mar 14, 2025

While testing https://github.com/locusrobotics/locus_common/pull/289, I noticed that in telegraf all caktin_virtualenv-related processes are being renamed to /opt/locusrobot, the truncated program path. The full path was fine for ELK stack and friends, but in the new metrics world we should use the program basename.

A note that https://pypi.org/project/setproctitle/ is different than BSD's setproctitle, in that it calls prctl under the hood, and somehow clobbers cmdline as well.

@paulbovbel paulbovbel force-pushed the use-basename branch 2 times, most recently from 0d79c22 to c2b81bd Compare March 14, 2025 03:18
Copy link

@AadityaRavindran AadityaRavindran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, so that's what that was!

@AadityaRavindran AadityaRavindran merged commit c8c20c9 into master Mar 14, 2025
4 checks passed
@AadityaRavindran AadityaRavindran deleted the use-basename branch March 14, 2025 18:39
AadityaRavindran pushed a commit that referenced this pull request Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants