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

add cmdline as an process tag #4512

Closed
yumaojun03 opened this issue Aug 3, 2018 · 1 comment
Closed

add cmdline as an process tag #4512

yumaojun03 opened this issue Aug 3, 2018 · 1 comment

Comments

@yumaojun03
Copy link

Feature Request

add cmdline as process tag, when grafana can use it like (tag(cmdline))

Proposal:

the process cmdline information can find in proc's cmdline file, can extract it

Current behavior:

I use pattern to match my java process, here i have 5 java, use process_name can't distinguish them, but the procs has cmdline can. like

[root@event01 ~]# cat /proc/14441/cmdline
/root/software/jdk1.8.0_171/bin/java-jar/opt/jwb/iot-etl/iot-etl.jar
[root@event01 ~]# telegraf --config /etc/telegraf/telegraf.conf --input-filter procstat --test
> procstat,host=event01,pattern=iot,process_name=java ...
> procstat,host=event01,pattern=iot,process_name=java ...
> procstat,host=event01,pattern=iot,process_name=java ...

Desired behavior:

I want to use cmdline as an tag to distinguish them

Use case: [Why is this important (helps with prioritizing requests)]

if process use vm to run like (java, python, nodejs, ...) has this problem

@danielnelson
Copy link
Contributor

Thanks for the feature request, we have an existing issue here: #1873.

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

No branches or pull requests

2 participants