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

statsite showing straming processes #302

Open
AshishVerma7690 opened this issue Sep 27, 2021 · 3 comments
Open

statsite showing straming processes #302

AshishVerma7690 opened this issue Sep 27, 2021 · 3 comments

Comments

@AshishVerma7690
Copy link

Hi There
I am getting strange streaming -c process while running statsite sink.

Below are my statsite settings
[statsite]
bind_address = 0.0.0.0
flush_interval = 60
log_facility = local0
log_level = INFO
stream_cmd = /usr/bin/graphitehooks/statsite-to-carbon
tcp_port = 8125
udp_port = 8125
use_type_prefix = 0

statsite-to-carbon file

exec /usr/bin/python3.8 /usr/bin/graphitehooks/graphite.py 127.0.0.1 2003 ''

when I list all process i get streaming -c /usr/bin/graphitehooks/statsite-to-carbon

root       610   609  0 Sep22 ?        00:00:01 /usr/bin/python3.8 /usr/bin/graphitehooks/graphite.py 127.0.0.1 2003
root       629    55  0 Sep22 ?        00:00:00 streaming -c /usr/bin/graphitehooks/statsite-to-carbon
root       630   629  0 Sep22 ?        00:00:00 /usr/bin/python3.8 /usr/bin/graphitehooks/graphite.py 127.0.0.1 2003
root       645    55  0 Sep22 ?        00:00:01 streaming -c /usr/bin/graphitehooks/statsite-to-carbon
root       646   645  0 Sep22 ?        00:00:01 /usr/bin/python3.8 /usr/bin/graphitehooks/graphite.py 127.0.0.1 2003
root       660    55  0 Sep22 ?        00:00:00 streaming -c /usr/bin/graphitehooks/statsite-to-carbon
root       664    55  0 Sep22 ?        00:00:00 streaming -c /usr/bin/graphitehooks/statsite-to-carbon
root       665    55  0 Sep22 ?        00:00:00 streaming -c /usr/bin/graphitehooks/statsite-to-carbon
root       666   660  0 Sep22 ?        00:00:00 /usr/bin/python3.8 /usr/bin/graphitehooks/graphite.py 127.0.0.1 2003
root       667   664  0 Sep22 ?        00:00:00 /usr/bin/python3.8 /usr/bin/graphitehooks/graphite.py 127.0.0.1 2003
root       668   665  0 Sep22 ?        00:00:00 /usr/bin/python3.8 /usr/bin/graphitehooks/graphite.py 127.0.0.1 2003
@johnkeates
Copy link
Contributor

I think this is normal, what happens is that the main program reads your settings and then forks a process to run your desired streaming command. It then interacts with that process to get data in and out.

pid_t pid = fork();

@AshishVerma7690
Copy link
Author

@johnkeates Thanks for the info. But shouldn't it go away after finishing it? It is in the same state from the last couple of days.
In correct/good instance it run /usr/bin/python3.8 /usr/bin/graphitehooks/graphite.py 127.0.0.1 2003 and flush the metric.

@johnkeates
Copy link
Contributor

Those will only clean up after the parent process has cleaned up and the child processes exit.
It seems that pid 55 is a parent process for many of those, perhaps those weren't closed properly?

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