-
-
Notifications
You must be signed in to change notification settings - Fork 604
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
Node statistics improvements #222
Comments
Hello @Sannis , thanks! Regarding to CPU usage - Iooks like measuring this inside application itself is hacky, not accurate and not a convenient practice. This was done using Binary version - this is useful, at moment stats look like this:
I think the correct way for Centrifugo v1.x will be adding
In version 2 Centrifugo will have different metrics mechanics - Prometheus and automatic Graphite exporter - so this must be ported to v2 in a bit different way - using labels, sth like in Prometheus itself:
What do you think? |
@Sannis very sorry for a long reply time - was attending Gophercon EU. Thanks for pointing out how ps behaves. As I said above I think Centrifugo should avoid measuring CPU stats itself so I won't backport this to v2 but we can add this to v1 I suppose. Do you know how this syscall behaves on Windows btw? |
It does not work on Windows AFAIK. But ps does not work either...
This is very limiting. Maybe it's not important for centrifugo and Go, but imagine some service uses several processes or forks periodically. Measuring CPU usage from outside would not be precise enough. It would be per container, not per process. I don't even mention that sometimes it could be useful to measure CPU usage per thread (not for Go though). |
Adding this code in v1 makes sense. I see no reason not to. It is useful and @Sannis is prepared to support it. |
@Sannis thanks for improvements! I will try to make new release soon, there are several small changes in master. |
Also pushed a fix for Windows in 991fae6 - syscalls not defined:
|
During setup centrifugo on production I faced some lack of statistics that we usually use for monitoring and telemetry.
Most important of them are:
Are you have any plans about adding such functionality in 1.x version? In not, I can volunteer for that.
P.S. Anyway thanks @FZambia for great product.
The text was updated successfully, but these errors were encountered: