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

feat: add actual process name to attributes - refs #367 #368

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

ancoron
Copy link

@ancoron ancoron commented Feb 25, 2024

This change adds new process-level attribute name, which (especially on Linux/Unix platforms) never seems to be empty, in contrast to exe or cmdline.

Although the name of a process can be changed arbitrarily, it sometimes is the only way to get to display something.

Most notably, all the processes crated by the Linux kernel and its drivers would usually not get any name or label.

Now, the name allows to handle these in monitoring tools, e.g. for Prometheus:

scaph_process_power_consumption_microwatts{name="kworker/u64:8-kcryptd/254:0",pid="18481",cmdline="",exe=""} 393.04565762067216
scaph_process_power_consumption_microwatts{pid="487",exe="",name="dmcrypt_write/254:0",cmdline=""} 131.01521494421178
scaph_process_power_consumption_microwatts{pid="15227",exe="",name="kworker/u64:15-kcryptd/254:0",cmdline=""} 262.03042988842355
scaph_process_power_consumption_microwatts{exe="",pid="17026",cmdline="",name="kworker/u64:3-kcryptd/254:0"} 917.1065429735929
scaph_process_power_consumption_microwatts{pid="18553",cmdline="",exe="",name="kworker/u64:10-kcryptd/254:0"} 262.03042988842355

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage
Development

Successfully merging this pull request may close these issues.

1 participant