No OS info when running embedded


(Alex-2) #1

If I run an embedded instance of ES, the node stats are not very meaningful

        "os": {
            "timestamp": 1320633257541,
            "uptime": "-1 seconds",
            "uptime_in_millis": -1000,
            "load_average": []
        }

whereas if it's run as a standalone app, the stats look much better:

       "os": {
            "timestamp": 1320633282312,
            "uptime": "86 hours, 8 minutes and 57 seconds",
            "uptime_in_millis": 310137000,
            "load_average": [
                0.13,
                0.13,
                0.08
            ], ...etc

Am I missing anything? Bug or feature?

Cheers
Alex


(Dan Everton) #2

Elasticsearch uses some native libraries to get that information. Look
for the libsigar*.so files in your ES installation. If you're not
providing those in a way ES can load, you'll miss out on OS level
metrics.

Cheers,
Dan


(Alex-2) #3

Thanks, Dan!

Alex


(Shay Banon) #4

Yea, that info comes from sigar, so you can include it in your classpath
(with the relevant native lib) when you embed elasticsearch.

On Mon, Nov 7, 2011 at 2:09 PM, Alex
alessandro.usseglioviretta@gmail.comwrote:

Thanks, Dan!

Alex


(system) #5