Disk related values shows 0

In below some of the values show 0, please help on this to resolve the issue

we are using SSD ,
elasticsearch-version: 1.3.7,

 "fs" : {
    "timestamp" : 1470307139859,
    "total" : {
      "total_in_bytes" : 5611542839296,
      "free_in_bytes" : 4906166595584,
      "available_in_bytes" : 4621109809152,
      "disk_reads" : 0,
      "disk_writes" : 0,
      "disk_io_op" : 0,
      "disk_read_size_in_bytes" : 0,
      "disk_write_size_in_bytes" : 0,
      "disk_io_size_in_bytes" : 0,
      "disk_queue" : "0",
      "disk_service_time" : "0"
    },
    "data" : [ {
      "path" : "<PATH>",
      "mount" : "/ES_ENV",
      "dev" : "/dev/md124p1",
      "total_in_bytes" : 5611542839296,
      "free_in_bytes" : 4906166595584,
      "available_in_bytes" : 4621109809152,
      "disk_reads" : 0,
      "disk_writes" : 0,
      "disk_io_op" : 0,
      "disk_read_size_in_bytes" : 0,
      "disk_write_size_in_bytes" : 0,
      "disk_io_size_in_bytes" : 0,
      "disk_queue" : "0",
      "disk_service_time" : "0"
    } ]

Hi,

Elasticsearch 1.3.7 uses Sigar as the library in charge of retrieving system and disk information. It appears that this library returns 0 or -1 values when it fails to get the right values from the system. It is also pretty opaque values, so we decided to remove Sigar in 2.x.

In newer version of elasticsearch, some filesystem stats are extracted from the OS but not all OS are supported: see https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html#fs-info

For now, I suggest you get these informations directly from your OS and not using the Nodes Stats API.

1 Like

Hi Tanguy, I'm running linux but i'm not getting any fs info except
fs:{
timestamp: 1474056027689,
total: {
total_in_bytes: 460803751936,
free_in_bytes: 330497425408,
available_in_bytes: 329075793920
},
data: [
{
path: "path/to/data/",
mount: "/ (/dev/mapper/vg00-root)",
type: "ext4",
total_in_bytes: 460803751936,
free_in_bytes: 330497425408,
available_in_bytes: 329075793920,
spins: "false"
}
]
},

i was looking for IO info, but that doesn't see to be an option when I try to capture it in the stats. Do I need to install/add something in the config?

Hi Bennet,

Which version do you use?

2.3.4