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

Feature request - procstat custom tag for each process #1048

Closed
whetherharder opened this issue Apr 18, 2016 · 4 comments
Closed

Feature request - procstat custom tag for each process #1048

whetherharder opened this issue Apr 18, 2016 · 4 comments

Comments

@whetherharder
Copy link

I think it would be quite useful to have a custom tag for each process.
Now we have a possibility to store each process data in separate field using tags. But it is quite difficult to agregate several processes data in one dataset if your processes are changing.

Of course, we can use pid or process name.
But it is not enough if yuo have many aplications with the same name (i.e java).

In that case we have only pid. But i have no idea how to link it with any metadata of paticular application.

May be there are any best pactices ?

Thanks a lot for telegraf!)

@OrangeTux
Copy link
Contributor

How would Telegraf be able to identify processes with the same name?

A partial solution is to use the full command which started the process. But what if you've mulitple processes started by using the exact same command?

@sparrc
Copy link
Contributor

sparrc commented Apr 20, 2016

@whetherharder can you use tag maps to do this?, ie:

[[inputs.procstat]]
  ...
  [inputs.procstat.tags]
    tag1 = "val1"

[[inputs.procstat]]
  ...
  [inputs.procstat.tags]
    tag2 = "val2"

also see #1035

@whetherharder
Copy link
Author

Can not test now, but looks like it is defenitely what i need. Thanks much!

@whetherharder https://github.com/whetherharder can you use tag maps to
do this?, ie:

[[inputs.procstat]]
...
[inputs.procstat.tags]
tag1 = "val1"

[[inputs.procstat]]
...
[inputs.procstat.tags]
tag2 = "val2"

also see #1035 #1035


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#1048 (comment)

@sparrc
Copy link
Contributor

sparrc commented Apr 21, 2016

okay, I'm going to close for now but please feel free to re-open if it doesn't fill your use-case

@sparrc sparrc closed this as completed Apr 21, 2016
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

3 participants