Node statistics: OS uptime value incorrect


(abr) #1

Hello,

I'm running ES 1.5.2 on Centos and I'm willing to expose some statistics
about node perf on a web page.
The OS uptime I get from calling the ES API _nodes/stats is very different
from the one I get from the uptime command directly with linux CLI

[root@DEV-ES-NODE2 ~]# uptime
12:16:03 up 55 days, 1:50, 1 user, load average: 0.00, 0.00, 0.00

with ES REST API:
"uptime_in_millis": 4758625 which is just a bit more that 1h

Is this a misuse of the API? Or some bugs with the ES API?

Antoine

--
Please update your bookmarks! We have moved to https://discuss.elastic.co/

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b8755f86-70a5-48af-8aa4-4dd5abf2d620%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Jason Bryan) #2

I just stumbled across this one on 1.7.x. uptime_in_millis is actually reporting the value in seconds, not millis as the name incorrectly implies.

4758625s = 55.076678d

There is no fix in sight for this issue as most of the OS stats have been removed as of 2.0 with the removal of the now dormant Sigar library. See Sigar removed for details.

Jason


(system) #3