-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
procstat response when monitored process dies #586
Comments
@aodj What would you suggest that procstat sends when the process dies? |
I'm not sure exactly. I initially thought that you could send a |
opting-in to that seems fine |
This issue may happen if you have multiple entries in one file:
To fix it, you can just use a pattern "." or "telegraf|." for
I preferred |
Hi, Issue: What I want to achieve:
Recommendation how to look the procstat config? Kind Regards, |
@fchiorascu You should be able to do this: [[inputs.procstat]]
exe = "memcached"
prefix = "memcached" Unfortunately, the procstat plugin does currently show this error when the process is not running, so make when you run |
I wrote a short proposal on how I think we should fix this in #4237 |
The solution in #4237 has been implemented for 1.8. |
Could we improve the response of the
procstat
input such that when a process dies, it still continues to send some metrics, ideally something signalling that the process has died. Currently, the input outputs a message sayingError: procstat getting process, exe: [] pidfile: [] pattern: [hekas] Failed to execute pgrep. Error: 'exit status 1'
(or similar when usingpid_file
).The text was updated successfully, but these errors were encountered: