nodes-stats.asciidoc 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433
  1. [[cluster-nodes-stats]]
  2. === Nodes stats API
  3. ++++
  4. <titleabbrev>Nodes stats</titleabbrev>
  5. ++++
  6. Returns cluster nodes statistics.
  7. [[cluster-nodes-stats-api-request]]
  8. ==== {api-request-title}
  9. `GET /_nodes/stats` +
  10. `GET /_nodes/<node_id>/stats` +
  11. `GET/_nodes/stats/<metric>` +
  12. `GET/_nodes/<node_id>/stats/<metric>` +
  13. `GET /_nodes/stats/<metric>/<index_metric>` +
  14. `GET /_nodes/<node_id>/stats/<metric>/<index_metric>`
  15. [[cluster-nodes-stats-api-desc]]
  16. ==== {api-description-title}
  17. You can use the cluster nodes stats API to retrieve statistics for nodes in a cluster.
  18. All the nodes selective options are explained <<cluster-nodes,here>>.
  19. By default, all stats are returned. You can limit the returned information by
  20. using metrics.
  21. [[cluster-nodes-stats-api-path-params]]
  22. ==== {api-path-parms-title}
  23. `<metric>`::
  24. (Optional, string) Limits the information returned to the specific metrics.
  25. A comma-separated list of the following options:
  26. +
  27. --
  28. `adaptive_selection`::
  29. Statistics about <<search-adaptive-replica,adaptive replica selection>>.
  30. `breaker`::
  31. Statistics about the field data circuit breaker.
  32. `discovery`::
  33. Statistics about the discovery.
  34. `fs`::
  35. File system information, data path, free disk space, read/write
  36. stats.
  37. `http`::
  38. HTTP connection information.
  39. `indices`::
  40. Indices stats about size, document count, indexing and deletion times,
  41. search times, field cache size, merges and flushes.
  42. `ingest`::
  43. Statistics about ingest preprocessing.
  44. `jvm`::
  45. JVM stats, memory pool information, garbage collection, buffer
  46. pools, number of loaded/unloaded classes.
  47. `os`::
  48. Operating system stats, load average, mem, swap.
  49. `process`::
  50. Process statistics, memory consumption, cpu usage, open
  51. file descriptors.
  52. `thread_pool`::
  53. Statistics about each thread pool, including current size, queue and
  54. rejected tasks.
  55. `transport`::
  56. Transport statistics about sent and received bytes in cluster
  57. communication.
  58. --
  59. `<index_metric>`::
  60. (Optional, string) Limit the information returned for `indices` metric to
  61. the specific index metrics. It can be used only if `indices` (or `all`)
  62. metric is specified. Supported metrics are:
  63. +
  64. --
  65. * `completion`
  66. * `docs`
  67. * `fielddata`
  68. * `flush`
  69. * `get`
  70. * `indexing`
  71. * `merge`
  72. * `query_cache`
  73. * `recovery`
  74. * `refresh`
  75. * `request_cache`
  76. * `search`
  77. * `segments`
  78. * `store`
  79. * `translog`
  80. * `warmer`
  81. --
  82. include::{docdir}/rest-api/common-parms.asciidoc[tag=node-id]
  83. [[cluster-nodes-stats-api-query-params]]
  84. ==== {api-query-parms-title}
  85. include::{docdir}/rest-api/common-parms.asciidoc[tag=completion-fields]
  86. include::{docdir}/rest-api/common-parms.asciidoc[tag=fielddata-fields]
  87. include::{docdir}/rest-api/common-parms.asciidoc[tag=fields]
  88. include::{docdir}/rest-api/common-parms.asciidoc[tag=groups]
  89. include::{docdir}/rest-api/common-parms.asciidoc[tag=level]
  90. `types`::
  91. (Optional, string) A comma-separated list of document types for the
  92. `indexing` index metric.
  93. include::{docdir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
  94. include::{docdir}/rest-api/common-parms.asciidoc[tag=include-segment-file-sizes]
  95. [[cluster-nodes-stats-api-response-body]]
  96. ==== {api-response-body-title}
  97. `cluster_name`::
  98. (string)
  99. Name of the cluster. Based on the <<cluster.name>> setting.
  100. `nodes.<node_id>.timestamp`::
  101. (integer)
  102. Time the node stats were collected for this response. Recorded in milliseconds
  103. since the https://en.wikipedia.org/wiki/Unix_time[Unix Epoch].
  104. `nodes.<node_id>.name`::
  105. (string)
  106. Human-readable identifier for the node. Based on the <<node.name>> setting.
  107. `nodes.<node_id>.transport_address`::
  108. (string)
  109. Host and port for the <<modules-transport,transport layer>>, used for internal
  110. communication between nodes in a cluster.
  111. `nodes.<node_id>.host`::
  112. (string)
  113. Network host for the node, based on the <<network.host>> setting.
  114. `nodes.<node_id>.ip`::
  115. (string)
  116. IP address and port for the node.
  117. `nodes.<node_id>.roles`::
  118. (array of strings)
  119. Roles assigned to the node. See <<modules-node>>.
  120. `nodes.<node_id>.attributes`::
  121. (object)
  122. Object containing a list of attributes for the node.
  123. [NOTE]
  124. ====
  125. The remaining node statistics are grouped by section. Each statistic is keyed by `nodes.<node_id>`.
  126. ====
  127. [[cluster-nodes-stats-api-response-body-indices]]
  128. ===== `indices` section
  129. [%collapsible]
  130. ====
  131. `indices.docs.count`::
  132. (integer)
  133. include::{docdir}/rest-api/common-parms.asciidoc[tag=docs-count]
  134. `indices.docs.deleted`::
  135. (integer)
  136. include::{docdir}/rest-api/common-parms.asciidoc[tag=docs-deleted]
  137. `indices.store.size`::
  138. (<<byte-units,byte value>>)
  139. Total size of all shards assigned to the node.
  140. `indices.store.size_in_bytes`::
  141. (integer)
  142. Total size, in bytes, of all shards assigned to the node.
  143. `indices.indexing.index_total`::
  144. (integer)
  145. Total number of indexing operations.
  146. `indices.indexing.index_time`::
  147. (<<time-units,time value>>)
  148. Total time spent performing indexing operations.
  149. `indices.indexing.index_time_in_millis`::
  150. (integer)
  151. Total time in milliseconds
  152. spent performing indexing operations.
  153. `indices.indexing.index_current`::
  154. (integer)
  155. Number of indexing operations currently running.
  156. `indices.indexing.index_failed`::
  157. (integer)
  158. Number of failed indexing operations.
  159. `indices.indexing.delete_total`::
  160. (integer)
  161. Total number of deletion operations.
  162. `indices.indexing.delete_time`::
  163. (<<time-units,time value>>)
  164. Time spent performing deletion operations.
  165. `indices.indexing.delete_time_in_millis`::
  166. (integer)
  167. Time in milliseconds
  168. spent performing deletion operations.
  169. `indices.indexing.delete_current`::
  170. (integer)
  171. Number of deletion operations currently running.
  172. `indices.indexing.noop_update_total`::
  173. (integer)
  174. Total number of noop operations.
  175. `indices.indexing.is_throttled`::
  176. (boolean)
  177. Number of times
  178. operations were throttled.
  179. `indices.indexing.throttle_time`::
  180. (<<time-units,time value>>)
  181. Total time spent throttling operations.
  182. `indices.indexing.throttle_time_in_millis`::
  183. (integer)
  184. Total time in milliseconds
  185. spent throttling operations.
  186. `indices.get.total`::
  187. (integer)
  188. Total number of get operations.
  189. `indices.get.getTime`::
  190. (<<time-units,time value>>)
  191. Time spent performing get operations.
  192. `indices.get.time_in_millis`::
  193. (integer)
  194. Time in milliseconds
  195. spent performing get operations.
  196. `indices.get.exists_total`::
  197. (integer)
  198. Total number of successful get operations.
  199. `indices.get.exists_time`::
  200. (<<time-units,time value>>)
  201. Time spent performing successful get operations.
  202. `indices.get.exists_time_in_millis`::
  203. (integer)
  204. Time in milliseconds
  205. spent performing successful get operations.
  206. `indices.get.missing_total`::
  207. (integer)
  208. Total number of failed get operations.
  209. `indices.get.missing_time`::
  210. (<<time-units,time value>>)
  211. Time spent performing failed get operations.
  212. `indices.get.missing_time_in_millis`::
  213. (integer)
  214. Time in milliseconds
  215. spent performing failed get operations.
  216. `indices.get.current`::
  217. (integer)
  218. Number of get operations currently running.
  219. `indices.search.open_context`::
  220. (integer)
  221. Number of open search contexts.
  222. `indices.search.query_total`::
  223. (integer)
  224. Total number of query operations.
  225. `indices.search.query_time`::
  226. (<<time-units,time value>>)
  227. Time spent performing query operations.
  228. `indices.search.query_time_in_millis`::
  229. (integer)
  230. Time in milliseconds
  231. spent performing query operations.
  232. `indices.search.query_current`::
  233. (integer)
  234. Number of query operations currently running.
  235. `indices.search.fetch_total`::
  236. (integer)
  237. Total number of fetch operations.
  238. `indices.search.fetch_time`::
  239. (<<time-units,time value>>)
  240. Time spent performing fetch operations.
  241. `indices.search.fetch_time_in_millis`::
  242. (integer)
  243. Time in milliseconds
  244. spent performing fetch operations.
  245. `indices.search.fetch_current`::
  246. (integer)
  247. Number of fetch operations currently running.
  248. `indices.search.scroll_total`::
  249. (integer)
  250. Total number of scroll operations.
  251. `indices.search.scroll_time`::
  252. (<<time-units,time value>>)
  253. Time spent performing scroll operations.
  254. `indices.search.scroll_time_in_millis`::
  255. (integer)
  256. Time in milliseconds
  257. spent performing scroll operations.
  258. `indices.search.scroll_current`::
  259. (integer)
  260. Number of scroll operations currently running.
  261. `indices.search.suggest_total`::
  262. (integer)
  263. Total number of suggest operations.
  264. `indices.search.suggest_time`::
  265. (<<time-units,time value>>)
  266. Time spent performing suggest operations.
  267. `indices.search.suggest_time_in_millis`::
  268. (integer)
  269. Time in milliseconds
  270. spent performing suggest operations.
  271. `indices.search.suggest_current`::
  272. (integer)
  273. Number of suggest operations currently running.
  274. `indices.merges.current`::
  275. (integer)
  276. Number of merge operations currently running.
  277. `indices.merges.current_docs`::
  278. (integer)
  279. Number of document merges currently running.
  280. `indices.merges.current_size`::
  281. (<<byte-units,byte value>>)
  282. Memory used performing current document merges.
  283. `indices.merges.current_size_in_bytes`::
  284. (integer)
  285. Memory, in bytes, used performing current document merges.
  286. `indices.merges.total`::
  287. (integer)
  288. Total number of merge operations.
  289. `indices.merges.total_time`::
  290. (<<time-units,time value>>)
  291. Total time spent performing merge operations.
  292. `indices.merges.total_time_in_millis`::
  293. (integer)
  294. Total time in milliseconds
  295. spent performing merge operations.
  296. `indices.merges.total_docs`::
  297. (integer)
  298. Total number of merged documents.
  299. `indices.merges.total_size`::
  300. (<<byte-units,byte value>>)
  301. Total size of document merges.
  302. `indices.merges.total_size_in_bytes`::
  303. (integer)
  304. Total size of document merges in bytes.
  305. `indices.merges.total_stopped_time`::
  306. (<<time-units,time value>>)
  307. Total time spent stopping merge operations.
  308. `indices.merges.total_stopped_time_in_millis`::
  309. (integer)
  310. Total time in milliseconds
  311. spent stopping merge operations.
  312. `indices.merges.total_throttled_time`::
  313. (<<time-units,time value>>)
  314. Total time spent throttling merge operations.
  315. `indices.merges.total_throttled_time_in_millis`::
  316. (integer)
  317. Total time in milliseconds
  318. spent throttling merge operations.
  319. `indices.merges.total_auto_throttle`::
  320. (<<byte-units,byte value>>)
  321. Size of automatically throttled merge operations.
  322. `indices.merges.total_auto_throttle_in_bytes`::
  323. (integer)
  324. Size, in bytes, of automatically throttled merge operations.
  325. `indices.refresh.total`::
  326. (integer)
  327. Total number of refresh operations.
  328. `indices.refresh.total_time`::
  329. (<<time-units,time value>>)
  330. Total time spent performing refresh operations.
  331. `indices.refresh.total_time_in_millis`::
  332. (integer)
  333. Total time in milliseconds
  334. spent performing refresh operations.
  335. `indices.refresh.external_total`::
  336. (integer)
  337. Total number of external refresh operations.
  338. `indices.refresh.external_total_time`::
  339. (<<time-units,time value>>)
  340. Total time spent performing external operations.
  341. `indices.refresh.external_total_time_in_millis`::
  342. (integer)
  343. Total time in milliseconds
  344. spent performing external operations.
  345. `indices.refresh.listeners`::
  346. (integer)
  347. Number of refresh listeners.
  348. `indices.flush.total`::
  349. (integer)
  350. Number of flush operations.
  351. `indices.flush.periodic`::
  352. (integer)
  353. Number of flush periodic operations.
  354. `indices.flush.total_time`::
  355. (<<time-units,time value>>)
  356. Total time spent performing flush operations.
  357. `indices.flush.total_time_in_millis`::
  358. (integer)
  359. Total time in milliseconds
  360. spent performing flush operations.
  361. `indices.warmer.current`::
  362. (integer)
  363. Number of active index warmers.
  364. `indices.warmer.total`::
  365. (integer)
  366. Total number of index warmers.
  367. `indices.warmer.total_time`::
  368. (<<time-units,time value>>)
  369. Total time spent performing index warming operations.
  370. `indices.warmer.total_time_in_millis`::
  371. (integer)
  372. Total time in milliseconds
  373. spent performing index warming operations.
  374. `indices.query_cache.memory_size`::
  375. (<<byte-units,byte value>>)
  376. Total amount of memory used for the query cache across all shards assigned to
  377. the node.
  378. `indices.query_cache.memory_size_in_bytes`::
  379. (integer)
  380. Total amount of memory, in bytes, used for the query cache across all shards
  381. assigned to the node.
  382. `indices.query_cache.total_count`::
  383. (integer)
  384. Total count of hits, misses, and cached queries
  385. in the query cache.
  386. `indices.query_cache.hit_count`::
  387. (integer)
  388. Number of query cache hits.
  389. `indices.query_cache.miss_count`::
  390. (integer)
  391. Number of query cache misses.
  392. `indices.query_cache.cache_size`::
  393. (integer)
  394. Size, in bytes, of the query cache.
  395. `indices.query_cache.cache_count`::
  396. (integer)
  397. Count of queries
  398. in the query cache.
  399. `indices.query_cache.evictions`::
  400. (integer)
  401. Number of query cache evictions.
  402. `indices.fielddata.memory_size`::
  403. (<<byte-units,byte value>>)
  404. Total amount of memory used for the field data cache across all shards
  405. assigned to the node.
  406. `indices.fielddata.memory_size_in_bytes`::
  407. (integer)
  408. Total amount of memory, in bytes, used for the field data cache across all
  409. shards assigned to the node.
  410. `indices.fielddata.evictions`::
  411. (integer)
  412. Number of fielddata evictions.
  413. `indices.completion.size`::
  414. (<<byte-units,byte value>>)
  415. Total amount of memory used for completion across all shards assigned to
  416. the node.
  417. `indices.completion.size_in_bytes`::
  418. (integer)
  419. Total amount of memory, in bytes, used for completion across all shards assigned
  420. to the node.
  421. `indices.segments.count`::
  422. (integer)
  423. Number of segments.
  424. `indices.segments.memory`::
  425. (<<byte-units,byte value>>)
  426. Total amount of memory used for segments across all shards assigned to the
  427. node.
  428. `indices.segments.memory_in_bytes`::
  429. (integer)
  430. Total amount of memory, in bytes, used for segments across all shards assigned
  431. to the node.
  432. `indices.segments.terms_memory`::
  433. (<<byte-units,byte value>>)
  434. Total amount of memory used for terms across all shards assigned to the node.
  435. `indices.segments.terms_memory_in_bytes`::
  436. (integer)
  437. Total amount of memory, in bytes, used for terms across all shards assigned to
  438. the node.
  439. `indices.segments.stored_fields_memory`::
  440. (<<byte-units,byte value>>)
  441. Total amount of memory used for stored fields across all shards assigned to
  442. the node.
  443. `indices.segments.stored_fields_memory_in_bytes`::
  444. (integer)
  445. Total amount of memory, in bytes, used for stored fields across all shards
  446. assigned to the node.
  447. `indices.segments.term_vectors_memory`::
  448. (<<byte-units,byte value>>)
  449. Total amount of memory used for term vectors across all shards assigned to
  450. the node.
  451. `indices.segments.term_vectors_memory_in_bytes`::
  452. (integer)
  453. Total amount of memory, in bytes, used for term vectors across all shards
  454. assigned to the node.
  455. `indices.segments.norms_memory`::
  456. (<<byte-units,byte value>>)
  457. Total amount of memory used for normalization factors across all shards assigned
  458. to the node.
  459. `indices.segments.norms_memory_in_bytes`::
  460. (integer)
  461. Total amount of memory, in bytes, used for normalization factors across all
  462. shards assigned to the node.
  463. `indices.segments.points_memory`::
  464. (<<byte-units,byte value>>)
  465. Total amount of memory used for points across all shards assigned to the node.
  466. `indices.segments.points_memory_in_bytes`::
  467. (integer)
  468. Total amount of memory, in bytes, used for points across all shards assigned to
  469. the node.
  470. `indices.segments.doc_values_memory`::
  471. (<<byte-units,byte value>>)
  472. Total amount of memory used for doc values across all shards assigned to
  473. the node.
  474. `indices.segments.doc_values_memory_in_bytes`::
  475. (integer)
  476. Total amount of memory, in bytes, used for doc values across all shards assigned
  477. to the node.
  478. `indices.segments.index_writer_memory`::
  479. (<<byte-units,byte value>>)
  480. Total amount of memory used by all index writers across all shards assigned to
  481. the node.
  482. `indices.segments.index_writer_memory_in_bytes`::
  483. (integer)
  484. Total amount of memory, in bytes, used by all index writers across all shards
  485. assigned to the node.
  486. `indices.segments.version_map_memory`::
  487. (<<byte-units,byte value>>)
  488. Total amount of memory used by all version maps across all shards assigned to
  489. the node.
  490. `indices.segments.version_map_memory_in_bytes`::
  491. (integer)
  492. Total amount of memory, in bytes, used by all version maps across all shards
  493. assigned to the node.
  494. `indices.segments.fixed_bit_set`::
  495. (<<byte-units,byte value>>)
  496. Total amount of memory used by fixed bit sets across all shards assigned to
  497. the node.
  498. +
  499. Fixed bit sets are used for nested object field types and
  500. type filters for <<parent-join,join>> fields.
  501. `indices.segments.fixed_bit_set_memory_in_bytes`::
  502. (integer)
  503. Total amount of memory, in bytes, used by fixed bit sets across all shards
  504. assigned to the node.
  505. +
  506. Fixed bit sets are used for nested object field types and
  507. type filters for <<parent-join,join>> fields.
  508. `indices.segments.max_unsafe_auto_id_timestamp`::
  509. (integer)
  510. Time of the most recently retried indexing request. Recorded in milliseconds
  511. since the https://en.wikipedia.org/wiki/Unix_time[Unix Epoch].
  512. `indices.segments.file_sizes.size`::
  513. (<<byte-units,byte value>>)
  514. Size of the segment file.
  515. `indices.segments.file_sizes.size_in_bytes`::
  516. (integer)
  517. Size, in bytes,
  518. of the segment file.
  519. `indices.segments.file_sizes.description`::
  520. (string)
  521. Description of the segment file.
  522. `indices.translog.operations`::
  523. (integer)
  524. Number of transaction log operations.
  525. `indices.translog.size`::
  526. (<<byte-units,byte value>>)
  527. Size of the transaction log.
  528. `indices.translog.size_in_bytes`::
  529. (integer)
  530. Size, in bytes, of the transaction log.
  531. `indices.translog.uncommitted_operations`::
  532. (integer)
  533. Number of uncommitted transaction log operations.
  534. `indices.translog.uncommitted_size`::
  535. (<<byte-units,byte value>>)
  536. Size of uncommitted transaction log operations.
  537. `indices.translog.uncommitted_size_in_bytes`::
  538. (integer)
  539. Size, in bytes, of uncommitted transaction log operations.
  540. `indices.translog.earliest_last_modified_age`::
  541. (integer)
  542. Earliest last modified age
  543. for the transaction log.
  544. `indices.request_cache.memory_size`::
  545. (<<byte-units,byte value>>)
  546. Memory used by the request cache.
  547. `indices.request_cache.memory_size_in_bytes`::
  548. (integer)
  549. Memory, in bytes, used by the request cache.
  550. `indices.request_cache.evictions`::
  551. (integer)
  552. Number of request cache operations.
  553. `indices.request_cache.hit_count`::
  554. (integer)
  555. Number of request cache hits.
  556. `indices.request_cache.miss_count`::
  557. (integer)
  558. Number of request cache misses.
  559. `indices.recovery.current_as_source`::
  560. (integer)
  561. Number of recoveries
  562. that used an index shard as a source.
  563. `indices.recovery.current_as_target`::
  564. (integer)
  565. Number of recoveries
  566. that used an index shard as a target.
  567. `indices.recovery.throttle_time`::
  568. (<<time-units,time value>>)
  569. Time by which recovery operations were delayed due to throttling.
  570. `indices.recovery.throttle_time_in_millis`::
  571. (integer)
  572. Time in milliseconds
  573. recovery operations were delayed due to throttling.
  574. ====
  575. [[cluster-nodes-stats-api-response-body-os]]
  576. ===== `os` section
  577. [%collapsible]
  578. ====
  579. `os.timestamp`::
  580. Last time the operating system statistics have been refreshed.
  581. `os.cpu.percent`::
  582. Recent CPU usage for the whole system, or -1 if not supported.
  583. `os.cpu.load_average.1m`::
  584. One-minute load average on the system (field is not present if one-minute
  585. load average is not available).
  586. `os.cpu.load_average.5m`::
  587. Five-minute load average on the system (field is not present if five-minute
  588. load average is not available).
  589. `os.cpu.load_average.15m`::
  590. Fifteen-minute load average on the system (field is not present if
  591. fifteen-minute load average is not available).
  592. `os.mem.total_in_bytes`::
  593. Total amount of physical memory in bytes.
  594. `os.mem.free_in_bytes`::
  595. Amount of free physical memory in bytes.
  596. `os.mem.free_percent`::
  597. Percentage of free memory.
  598. `os.mem.used_in_bytes`::
  599. Amount of used physical memory in bytes.
  600. `os.mem.used_percent`::
  601. Percentage of used memory.
  602. `os.swap.total_in_bytes`::
  603. Total amount of swap space in bytes.
  604. `os.swap.free_in_bytes`::
  605. Amount of free swap space in bytes.
  606. `os.swap.used_in_bytes`::
  607. Amount of used swap space in bytes.
  608. `os.cgroup.cpuacct.control_group` (Linux only)::
  609. The `cpuacct` control group to which the {es} process belongs.
  610. `os.cgroup.cpuacct.usage_nanos` (Linux only)::
  611. The total CPU time (in nanoseconds) consumed by all tasks in the same cgroup
  612. as the {es} process.
  613. `os.cgroup.cpu.control_group` (Linux only)::
  614. The `cpu` control group to which the {es} process belongs.
  615. `os.cgroup.cpu.cfs_period_micros` (Linux only)::
  616. The period of time (in microseconds) for how regularly all tasks in the same
  617. cgroup as the {es} process should have their access to CPU resources
  618. reallocated.
  619. `os.cgroup.cpu.cfs_quota_micros` (Linux only)::
  620. The total amount of time (in microseconds) for which all tasks in
  621. the same cgroup as the {es} process can run during one period
  622. `os.cgroup.cpu.cfs_period_micros`.
  623. `os.cgroup.cpu.stat.number_of_elapsed_periods` (Linux only)::
  624. The number of reporting periods (as specified by
  625. `os.cgroup.cpu.cfs_period_micros`) that have elapsed.
  626. `os.cgroup.cpu.stat.number_of_times_throttled` (Linux only)::
  627. The number of times all tasks in the same cgroup as the {es} process have
  628. been throttled.
  629. `os.cgroup.cpu.stat.time_throttled_nanos` (Linux only)::
  630. The total amount of time (in nanoseconds) for which all tasks in the same
  631. cgroup as the {es} process have been throttled.
  632. `os.cgroup.memory.control_group` (Linux only)::
  633. The `memory` control group to which the {es} process belongs.
  634. `os.cgroup.memory.limit_in_bytes` (Linux only)::
  635. The maximum amount of user memory (including file cache) allowed for all
  636. tasks in the same cgroup as the {es} process. This value can be too big to
  637. store in a `long`, so is returned as a string so that the value returned can
  638. exactly match what the underlying operating system interface returns. Any
  639. value that is too large to parse into a `long` almost certainly means no
  640. limit has been set for the cgroup.
  641. `os.cgroup.memory.usage_in_bytes` (Linux only)::
  642. The total current memory usage by processes in the cgroup (in bytes) by all
  643. tasks in the same cgroup as the {es} process. This value is stored as a
  644. string for consistency with `os.cgroup.memory.limit_in_bytes`.
  645. NOTE: For the cgroup stats to be visible, cgroups must be compiled into the
  646. kernel, the `cpu` and `cpuacct` cgroup subsystems must be configured and stats
  647. must be readable from `/sys/fs/cgroup/cpu` and `/sys/fs/cgroup/cpuacct`.
  648. ====
  649. [[cluster-nodes-stats-api-response-body-process]]
  650. ===== `process` section
  651. [%collapsible]
  652. ====
  653. `process.timestamp`::
  654. Last time the process statistics have been refreshed.
  655. `process.open_file_descriptors`::
  656. Number of opened file descriptors associated with the current process, or -1
  657. if not supported.
  658. `process.max_file_descriptors`::
  659. Maximum number of file descriptors allowed on the system, or -1 if not
  660. supported.
  661. `process.cpu.percent`::
  662. CPU usage in percent, or -1 if not known at the time the stats are computed
  663. `process.cpu.total_in_millis`::
  664. CPU time (in milliseconds) used by the process on which the Java virtual
  665. machine is running, or -1 if not supported.
  666. `process.mem.total_virtual_in_bytes`::
  667. Size in bytes of virtual memory that is guaranteed to be available to the
  668. running process.
  669. ====
  670. [[cluster-nodes-stats-api-response-body-jvm]]
  671. ===== `jvm` section
  672. [%collapsible]
  673. ====
  674. `jvm.timestamp`::
  675. (integer)
  676. Last time JVM statistics were refreshed.
  677. `jvm.uptime_in_millis`::
  678. (integer)
  679. JVM uptime in milliseconds.
  680. `jvm.mem.heap_used_in_bytes`::
  681. (integer)
  682. Memory, in bytes, currently in use by the heap.
  683. `jvm.mem.heap_used_percent`::
  684. (integer)
  685. Percentage of memory currently in use by the heap.
  686. `jvm.mem.heap_committed_in_bytes`::
  687. (integer)
  688. Amount of memory, in bytes, available for use by the heap.
  689. `jvm.mem.heap_max_in_bytes`::
  690. (integer)
  691. Maximum amount of memory, in bytes, available for use by the heap.
  692. `jvm.mem.non_heap_used_in_bytes`::
  693. (integer)
  694. Non-heap memory used, in bytes.
  695. `jvm.mem.non_heap_committed_in_bytes`::
  696. (integer)
  697. Amount of non-heap memory available, in bytes.
  698. `jvm.mem.pools.young.used_in_bytes`::
  699. (integer)
  700. Memory, in bytes, used by the young generation heap.
  701. `jvm.mem.pools.young.max_in_bytes`::
  702. (integer)
  703. Maximum amount of memory, in bytes, available for use by the young generation
  704. heap.
  705. `jvm.mem.pools.young.peak_used_in_bytes`::
  706. (integer)
  707. Largest amount of memory, in bytes, historically used by the young generation
  708. heap.
  709. `jvm.mem.pools.young.peak_max_in_bytes`::
  710. (integer)
  711. Largest amount of memory, in bytes, historically used by the young generation
  712. heap.
  713. `jvm.mem.pools.survivor.used_in_bytes`::
  714. (integer)
  715. Memory, in bytes, used by the survivor space.
  716. `jvm.mem.pools.survivor.max_in_bytes`::
  717. (integer)
  718. Maximum amount of memory, in bytes, available for use by the survivor space.
  719. `jvm.mem.pools.survivor.peak_used_in_bytes`::
  720. (integer)
  721. Largest amount of memory, in bytes, historically used by the survivor space.
  722. `jvm.mem.pools.survivor.peak_max_in_bytes`::
  723. (integer)
  724. Largest amount of memory, in bytes, historically used by the survivor space.
  725. `jvm.mem.pools.old.used_in_bytes`::
  726. (integer)
  727. Memory, in bytes, used by the old generation heap.
  728. `jvm.mem.pools.old.max_in_bytes`::
  729. (integer)
  730. Maximum amount of memory, in bytes, available for use by the old generation
  731. heap.
  732. `jvm.mem.pools.old.peak_used_in_bytes`::
  733. (integer)
  734. Largest amount of memory, in bytes, historically used by the old generation
  735. heap.
  736. `jvm.mem.pools.old.peak_max_in_bytes`::
  737. (integer)
  738. Highest memory limit, in bytes, historically available for use by the old
  739. generation heap.
  740. `jvm.threads.count`::
  741. (integer)
  742. Number of active threads in use by JVM.
  743. `jvm.threads.peak_count`::
  744. (integer)
  745. Highest number of threads used by JVM.
  746. `jvm.gc.collectors.young.collection_count`::
  747. (integer)
  748. Number of JVM garbage collectors that collect young generation objects.
  749. `jvm.gc.collectors.young.collection_time_in_millis`::
  750. (integer)
  751. Total time in milliseconds spent by JVM collecting young generation objects.
  752. `jvm.gc.collectors.old.collection_count`::
  753. (integer)
  754. Number of JVM garbage collectors that collect old generation objects.
  755. `jvm.gc.collectors.old.collection_time_in_millis`::
  756. (integer)
  757. Total time in milliseconds spent by JVM collecting old generation objects.
  758. `jvm.buffer_pools.mapped.count`::
  759. (integer)
  760. Number of mapped buffer pools.
  761. `jvm.buffer_pools.mapped.used_in_bytes`::
  762. (integer)
  763. Size, in bytes, of mapped buffer pools.
  764. `jvm.buffer_pools.mapped.total_capacity_in_bytes`::
  765. (integer)
  766. Total capacity, in bytes, of mapped buffer pools.
  767. `jvm.buffer_pools.direct.count`::
  768. (integer)
  769. Number of direct buffer pools.
  770. `jvm.buffer_pools.direct.used_in_bytes`::
  771. (integer)
  772. Size, in bytes, of direct buffer pools.
  773. `jvm.buffer_pools.direct.total_capacity_in_bytes`::
  774. (integer)
  775. Total capacity, in bytes, of direct buffer pools.
  776. `jvm.classes.current_loaded_count`::
  777. (integer)
  778. Number of buffer pool classes currently loaded by JVM.
  779. `jvm.classes.total_loaded_count`::
  780. (integer)
  781. Total number of buffer pool classes loaded since the JVM started.
  782. `jvm.classes.total_unloaded_count`::
  783. (integer)
  784. Total number of buffer pool classes unloaded since the JVM started.
  785. ====
  786. [[cluster-nodes-stats-api-response-body-threadpool]]
  787. ===== `thread_pool` section
  788. [%collapsible]
  789. ====
  790. `thread_pool.<thread_pool_name>.threads`::
  791. (integer)
  792. Number of threads in the thread pool.
  793. `thread_pool.<thread_pool_name>.queue`::
  794. (integer)
  795. Number of tasks in queue for the thread pool.
  796. `thread_pool.<thread_pool_name>.active`::
  797. (integer)
  798. Number of active threads in the thread pool.
  799. `thread_pool.<thread_pool_name>.rejected`::
  800. (integer)
  801. Number of tasks rejected by the thread pool executor.
  802. `thread_pool.<thread_pool_name>.largest`::
  803. (integer)
  804. Highest number of active threads in the thread pool.
  805. `thread_pool.<thread_pool_name>.completed`::
  806. (integer)
  807. Number of tasks completed by the thread pool executor.
  808. ====
  809. [[cluster-nodes-stats-api-response-body-fs]]
  810. ===== `fs` section
  811. [%collapsible]
  812. ====
  813. `fs.timestamp`::
  814. Last time the file stores statistics have been refreshed.
  815. `fs.total.total_in_bytes`::
  816. Total size (in bytes) of all file stores.
  817. `fs.total.free_in_bytes`::
  818. Total number of unallocated bytes in all file stores.
  819. `fs.total.available_in_bytes`::
  820. Total number of bytes available to this Java virtual machine on all file
  821. stores. Depending on OS or process level restrictions, this might appear
  822. less than `fs.total.free_in_bytes`. This is the actual amount of free disk
  823. space the {es} node can utilise.
  824. `fs.data`::
  825. List of all file stores.
  826. `fs.data.path`::
  827. Path to the file store.
  828. `fs.data.mount`::
  829. Mount point of the file store (ex: /dev/sda2).
  830. `fs.data.type`::
  831. Type of the file store (ex: ext4).
  832. `fs.data.total_in_bytes`::
  833. Total size (in bytes) of the file store.
  834. `fs.data.free_in_bytes`::
  835. Total number of unallocated bytes in the file store.
  836. `fs.data.available_in_bytes`::
  837. Total number of bytes available to this Java virtual machine on this file
  838. store.
  839. `fs.io_stats.devices` (Linux only)::
  840. Array of disk metrics for each device that is backing an {es} data path.
  841. These disk metrics are probed periodically and averages between the last
  842. probe and the current probe are computed.
  843. `fs.io_stats.devices.device_name` (Linux only)::
  844. The Linux device name.
  845. `fs.io_stats.devices.operations` (Linux only)::
  846. The total number of read and write operations for the device completed since
  847. starting {es}.
  848. `fs.io_stats.devices.read_operations` (Linux only)::
  849. The total number of read operations for the device completed since starting
  850. {es}.
  851. `fs.io_stats.devices.write_operations` (Linux only)::
  852. The total number of write operations for the device completed since starting
  853. {es}.
  854. `fs.io_stats.devices.read_kilobytes` (Linux only)::
  855. The total number of kilobytes read for the device since starting {es}.
  856. `fs.io_stats.devices.write_kilobytes` (Linux only)::
  857. The total number of kilobytes written for the device since starting {es}.
  858. `fs.io_stats.operations` (Linux only)::
  859. The total number of read and write operations across all devices used by
  860. {es} completed since starting {es}.
  861. `fs.io_stats.read_operations` (Linux only)::
  862. The total number of read operations for across all devices used by {es}
  863. completed since starting {es}.
  864. `fs.io_stats.write_operations` (Linux only)::
  865. The total number of write operations across all devices used by {es}
  866. completed since starting {es}.
  867. `fs.io_stats.read_kilobytes` (Linux only)::
  868. The total number of kilobytes read across all devices used by {es} since
  869. starting {es}.
  870. `fs.io_stats.write_kilobytes` (Linux only)::
  871. The total number of kilobytes written across all devices used by {es} since
  872. starting {es}.
  873. ====
  874. [[cluster-nodes-stats-api-response-body-transport]]
  875. ===== `transport` section
  876. [%collapsible]
  877. ====
  878. `transport.server_open`::
  879. (integer)
  880. Number of open TCP connections used for internal communication between nodes.
  881. `transport.rx_count`::
  882. (integer)
  883. Total number of RX (receive) packets received by the node during internal
  884. cluster communication.
  885. `transport.rx_size_in_bytes`::
  886. (integer)
  887. Size, in bytes, of RX packets received by the node during internal cluster
  888. communication.
  889. `transport.tx_count`::
  890. (integer)
  891. Total number of TX (transmit) packets sent by the node during internal cluster
  892. communication.
  893. `transport.tx_size_in_bytes`::
  894. (integer)
  895. Size, in bytes, of TX packets sent by the node during internal cluster
  896. communication.
  897. ====
  898. [[cluster-nodes-stats-api-response-body-http]]
  899. ===== `http` section
  900. [%collapsible]
  901. ====
  902. `http.current_open`::
  903. (integer)
  904. Current number of open HTTP connections for the node.
  905. `http.total_opened`::
  906. (integer)
  907. Total number of HTTP connections opened for the node.
  908. ====
  909. [[cluster-nodes-stats-api-response-body-breakers]]
  910. ===== `breakers` section
  911. [%collapsible]
  912. ====
  913. `breakers.<circuit_breaker_name>.limit_size_in_bytes`::
  914. (integer)
  915. Memory limit, in bytes, for the circuit breaker.
  916. `breakers.<circuit_breaker_name>.limit_size`::
  917. (<<byte-units,byte value>>)
  918. Memory limit for the circuit breaker.
  919. `breakers.<circuit_breaker_name>.estimated_size_in_bytes`::
  920. (integer)
  921. Estimated memory used, in bytes, for the operation.
  922. `breakers.<circuit_breaker_name>.estimated_size`::
  923. (<<byte-units,byte value>>)
  924. Estimated memory used for the operation.
  925. `breakers.<circuit_breaker_name>.overhead`::
  926. (float)
  927. A constant that all estimates for the circuit breaker are multiplied with to
  928. calculate a final estimate.
  929. `breakers.<circuit_breaker_name>.tripped`::
  930. (integer)
  931. Total number of times the circuit breaker has been triggered and prevented an
  932. out of memory error.
  933. ====
  934. [[cluster-nodes-stats-api-response-body-script]]
  935. ===== `script` section
  936. [%collapsible]
  937. ====
  938. `script.compilations`::
  939. (integer)
  940. Total number of inline script compilations performed by the node.
  941. `script.cache_evictions`::
  942. (integer)
  943. Total number of times the script cache has evicted old data.
  944. `script.compilation_limit_triggered`::
  945. (integer)
  946. Total number of times the <<script-compilation-circuit-breaker,script
  947. compilation>> circuit breaker has limited inline script compilations.
  948. ====
  949. [[cluster-nodes-stats-api-response-body-discovery]]
  950. ===== `discovery` section
  951. [%collapsible]
  952. ====
  953. `discovery.cluster_state_queue.total`::
  954. (integer)
  955. Total number of cluster states in queue.
  956. `discovery.cluster_state_queue.pending`::
  957. (integer)
  958. Number of pending cluster states in queue.
  959. `discovery.cluster_state_queue.committed`::
  960. (integer)
  961. Number of committed cluster states in queue.
  962. `discovery.published_cluster_states.full_states`::
  963. (integer)
  964. Number of published cluster states.
  965. `discovery.published_cluster_states.incompatible_diffs`::
  966. (integer)
  967. Number of incompatible differences between published cluster states.
  968. `discovery.published_cluster_states.compatible_diffs`::
  969. (integer)
  970. Number of compatible differences between published cluster states.
  971. ====
  972. [[cluster-nodes-stats-api-response-body-ingest]]
  973. ===== `ingest` section
  974. [%collapsible]
  975. ====
  976. `ingest.total.count`::
  977. (integer)
  978. Total number of documents ingested during the lifetime of this node.
  979. `ingest.total.time_in_millis`::
  980. (integer)
  981. Total time spent preprocessing ingest documents during the lifetime of this
  982. node.
  983. `ingest.total.current`::
  984. (integer)
  985. Total number of documents currently being ingested.
  986. `ingest.total.failed`::
  987. (integer)
  988. Total number of failed ingest operations during the lifetime of this node.
  989. `ingest.pipelines.<pipeline_id>.count`::
  990. (integer)
  991. Number of documents preprocessed by the ingest pipeline.
  992. `ingest.pipelines.<pipeline_id>.time_in_millis`::
  993. (integer)
  994. Total time spent preprocessing documents in the ingest pipeline.
  995. `ingest.pipelines.<pipeline_id>.failed`::
  996. (integer)
  997. Total number of failed operations for the ingest pipeline.
  998. `ingest.pipelines.<pipeline_id>.<processor>.count`::
  999. (integer)
  1000. Number of documents transformed by the processor.
  1001. `ingest.pipelines.<pipeline_id>.<processor>.time_in_millis`::
  1002. (integer)
  1003. Time spent by the processor transforming documents.
  1004. `ingest.pipelines.<pipeline_id>.<processor>.current`::
  1005. (integer)
  1006. Number of documents currently being transformed by the processor.
  1007. `ingest.pipelines.<pipeline_id>.<processor>.failed`::
  1008. (integer)
  1009. Number of failed operations for the processor.
  1010. ====
  1011. [[cluster-nodes-stats-api-response-body-adaptive-selection]]
  1012. ===== `adaptive_selection` section
  1013. [%collapsible]
  1014. ====
  1015. `adaptive_selection.outgoing_searches`::
  1016. The number of outstanding search requests from the node these stats are for
  1017. to the keyed node.
  1018. `avg_queue_size`::
  1019. The exponentially weighted moving average queue size of search requests on
  1020. the keyed node.
  1021. `avg_service_time_ns`::
  1022. The exponentially weighted moving average service time of search requests on
  1023. the keyed node.
  1024. `avg_response_time_ns`::
  1025. The exponentially weighted moving average response time of search requests
  1026. on the keyed node.
  1027. `rank`::
  1028. The rank of this node; used for shard selection when routing search
  1029. requests.
  1030. ====
  1031. [[cluster-nodes-stats-api-example]]
  1032. ==== {api-examples-title}
  1033. [source,console]
  1034. --------------------------------------------------
  1035. # return just indices
  1036. GET /_nodes/stats/indices
  1037. # return just os and process
  1038. GET /_nodes/stats/os,process
  1039. # return just process for node with IP address 10.0.0.1
  1040. GET /_nodes/10.0.0.1/stats/process
  1041. --------------------------------------------------
  1042. All stats can be explicitly requested via `/_nodes/stats/_all` or
  1043. `/_nodes/stats?metric=_all`.
  1044. You can get information about indices stats on `node`, `indices`, or `shards`
  1045. level.
  1046. [source,console]
  1047. --------------------------------------------------
  1048. # Fielddata summarized by node
  1049. GET /_nodes/stats/indices/fielddata?fields=field1,field2
  1050. # Fielddata summarized by node and index
  1051. GET /_nodes/stats/indices/fielddata?level=indices&fields=field1,field2
  1052. # Fielddata summarized by node, index, and shard
  1053. GET /_nodes/stats/indices/fielddata?level=shards&fields=field1,field2
  1054. # You can use wildcards for field names
  1055. GET /_nodes/stats/indices/fielddata?fields=field*
  1056. --------------------------------------------------
  1057. You can get statistics about search groups for searches executed
  1058. on this node.
  1059. [source,console]
  1060. --------------------------------------------------
  1061. # All groups with all stats
  1062. GET /_nodes/stats?groups=_all
  1063. # Some groups from just the indices stats
  1064. GET /_nodes/stats/indices?groups=foo,bar
  1065. --------------------------------------------------
  1066. [[cluster-nodes-stats-ingest-ex]]
  1067. ===== Retrieve ingest statistics only
  1068. To return only ingest-related node statistics, set the `<metric>` path
  1069. parameter to `ingest` and use the
  1070. <<common-options-response-filtering,`filter_path`>> query parameter.
  1071. [source,console]
  1072. --------------------------------------------------
  1073. GET /_nodes/stats/ingest?filter_path=nodes.*.ingest
  1074. --------------------------------------------------
  1075. You can use the `metric` and `filter_path` query parameters to get the same
  1076. response.
  1077. [source,console]
  1078. --------------------------------------------------
  1079. GET /_nodes/stats?metric=ingest&filter_path=nodes.*.ingest
  1080. --------------------------------------------------
  1081. To further refine the response, change the `filter_path` value.
  1082. For example, the following request only returns ingest pipeline statistics.
  1083. [source,console]
  1084. --------------------------------------------------
  1085. GET /_nodes/stats?metric=ingest&filter_path=nodes.*.ingest.pipelines
  1086. --------------------------------------------------