Saturday 21 November 2015

Get the statistics of cluster

Cluster stats api provides statistics at cluster level.

GET _cluster/stats
Response like below.

{
   "timestamp": 1420628636941,
   "cluster_name": "cluster_sample",
   "status": "yellow",
   "indices": {
      "count": 2,
      "shards": {
         "total": 6,
         "primaries": 6,
         "replication": 0,
         "index": {
            "shards": {
               "min": 1,
               "max": 5,
               "avg": 3
            },
            "primaries": {
               "min": 1,
               "max": 5,
               "avg": 3
            },
            "replication": {
               "min": 0,
               "max": 0,
               "avg": 0
            }
         }
      },
      "docs": {
         "count": 8318,
         "deleted": 0
      },
      "store": {
         "size_in_bytes": 25455486,
         "throttle_time_in_millis": 2255
      },
      "fielddata": {
         "memory_size_in_bytes": 0,
         "evictions": 0
      },
      "filter_cache": {
         "memory_size_in_bytes": 0,
         "evictions": 0
      },
      "id_cache": {
         "memory_size_in_bytes": 0
      },
      "completion": {
         "size_in_bytes": 0
      },
      "segments": {
         "count": 4,
         "memory_in_bytes": 737920,
         "index_writer_memory_in_bytes": 0,
         "index_writer_max_memory_in_bytes": 107253760,
         "version_map_memory_in_bytes": 0,
         "fixed_bit_set_memory_in_bytes": 0
      },
      "percolate": {
         "total": 0,
         "time_in_millis": 0,
         "current": 0,
         "memory_size_in_bytes": -1,
         "memory_size": "-1b",
         "queries": 0
      }
   },
   "nodes": {
      "count": {
         "total": 1,
         "master_only": 0,
         "data_only": 0,
         "master_data": 1,
         "client": 0
      },
      "versions": [
         "1.4.0"
      ],
      "os": {
         "available_processors": 4,
         "mem": {
            "total_in_bytes": 4170121216
         },
         "cpu": [
            {
               "vendor": "Intel",
               "model": "Core(TM) i5-2520M CPU @ 2.50GHz",
               "mhz": 2494,
               "total_cores": 4,
               "total_sockets": 4,
               "cores_per_socket": 1,
               "cache_size_in_bytes": -1,
               "count": 1
            }
         ]
      },
      "process": {
         "cpu": {
            "percent": 17
         },
         "open_file_descriptors": {
            "min": -1,
            "max": -1,
            "avg": 0
         }
      },
      "jvm": {
         "max_uptime_in_millis": 16887987,
         "versions": [
            {
               "version": "1.8.0_25",
               "vm_name": "Java HotSpot(TM) Client VM",
               "vm_version": "25.25-b02",
               "vm_vendor": "Oracle Corporation",
               "count": 1
            }
         ],
         "mem": {
            "heap_used_in_bytes": 87099128,
            "heap_max_in_bytes": 1046937600
         },
         "threads": 78
      },
      "fs": {
         "total_in_bytes": 196051202048,
         "free_in_bytes": 155982974976,
         "available_in_bytes": 155982974976,
         "disk_reads": 98468,
         "disk_writes": 50271,
         "disk_io_op": 148739,
         "disk_read_size_in_bytes": 1811766272,
         "disk_write_size_in_bytes": 1923313664,
         "disk_io_size_in_bytes": 3735079936,
         "disk_queue": "0"
      },
      "plugins": [
         {
            "name": "marvel",
            "version": "1.3.0",
            "description": "Elasticsearch Management & Monitoring",
            "url": "/_plugin/marvel/",
            "jvm": true,
            "site": true
         }
      ]
   }
}



Prevoius                                                 Next                                                 Home

No comments:

Post a Comment