-
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
Is there any way to point a pid file for telegraf so that process could be easily find and kill in cluster? #2566
Comments
Are you asking if telegraf can create its own pidfile? We don't do that in telegraf itself but the initscript does manage one. We try to reserve GitHub Issues for actionable bug reports or feature requests. Please ask general questions at the InfluxData Community site. |
So if anyone else has been on the same goosechase as me I will now save you the time. Telegraf actually seems to support specifying a pidfile. Not that
But if you look closer, this init script is utilising it: Line 145 in 0759c8b
And it seems to be parsed in here: telegraf/cmd/telegraf/telegraf.go Line 41 in 40fac0a
And when I launch Telegraf with
And it even cleans up after itself, after Telegraf is killed:
|
This may be a stupid question. But if there is a way to find process accurately, it would be a big convenience.
The text was updated successfully, but these errors were encountered: