nodes-stats.asciidoc 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210
  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::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=node-id]
  83. [[cluster-nodes-stats-api-query-params]]
  84. ==== {api-query-parms-title}
  85. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=completion-fields]
  86. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=fielddata-fields]
  87. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=fields]
  88. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=groups]
  89. include::{es-repo-dir}/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::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
  94. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=include-segment-file-sizes]
  95. [role="child_attributes"]
  96. [[cluster-nodes-stats-api-response-body]]
  97. ==== {api-response-body-title}
  98. `_nodes`::
  99. (object)
  100. Contains statistics about the number of nodes selected by the request.
  101. +
  102. .Properties of `_nodes`
  103. [%collapsible%open]
  104. ====
  105. `total`::
  106. (integer)
  107. Total number of nodes selected by the request.
  108. `successful`::
  109. (integer)
  110. Number of nodes that responded successfully to the request.
  111. `failed`::
  112. (integer)
  113. Number of nodes that rejected the request or failed to respond. If this value
  114. is not `0`, a reason for the rejection or failure is included in the response.
  115. ====
  116. `cluster_name`::
  117. (string)
  118. Name of the cluster. Based on the <<cluster.name>> setting.
  119. `nodes`::
  120. (object)
  121. Contains statistics for the nodes selected by the request.
  122. +
  123. .Properties of `nodes`
  124. [%collapsible%open]
  125. ====
  126. `<node_id>`::
  127. (object)
  128. Contains statistics for the node.
  129. +
  130. .Properties of `<node_id>`
  131. [%collapsible%open]
  132. =====
  133. `timestamp`::
  134. (integer)
  135. Time the node stats were collected for this response. Recorded in milliseconds
  136. since the https://en.wikipedia.org/wiki/Unix_time[Unix Epoch].
  137. `name`::
  138. (string)
  139. Human-readable identifier for the node. Based on the <<node.name>> setting.
  140. `transport_address`::
  141. (string)
  142. Host and port for the <<modules-transport,transport layer>>, used for internal
  143. communication between nodes in a cluster.
  144. `host`::
  145. (string)
  146. Network host for the node, based on the <<network.host>> setting.
  147. `ip`::
  148. (string)
  149. IP address and port for the node.
  150. `roles`::
  151. (array of strings)
  152. Roles assigned to the node. See <<modules-node>>.
  153. `attributes`::
  154. (object)
  155. Contains a list of attributes for the node.
  156. [[cluster-nodes-stats-api-response-body-indices]]
  157. `indices`::
  158. (object)
  159. Contains statistics about indices with shards assigned to the node.
  160. +
  161. .Properties of `indices`
  162. [%collapsible%open]
  163. ======
  164. `docs`::
  165. (object)
  166. Contains statistics about documents across all primary shards assigned to the
  167. node.
  168. +
  169. .Properties of `docs`
  170. [%collapsible%open]
  171. =======
  172. `count`::
  173. (integer)
  174. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=docs-count]
  175. `deleted`::
  176. (integer)
  177. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=docs-deleted]
  178. =======
  179. `store`::
  180. (object)
  181. Contains statistics about the size of shards assigned to the node.
  182. +
  183. .Properties of `store`
  184. [%collapsible%open]
  185. =======
  186. `size`::
  187. (<<byte-units,byte value>>)
  188. Total size of all shards assigned to the node.
  189. `size_in_bytes`::
  190. (integer)
  191. Total size, in bytes, of all shards assigned to the node.
  192. =======
  193. `indexing`::
  194. (object)
  195. Contains statistics about indexing operations for the node.
  196. +
  197. .Properties of `indexing`
  198. [%collapsible%open]
  199. =======
  200. `index_total`::
  201. (integer)
  202. Total number of indexing operations.
  203. `index_time`::
  204. (<<time-units,time value>>)
  205. Total time spent performing indexing operations.
  206. `index_time_in_millis`::
  207. (integer)
  208. Total time in milliseconds
  209. spent performing indexing operations.
  210. `index_current`::
  211. (integer)
  212. Number of indexing operations currently running.
  213. `index_failed`::
  214. (integer)
  215. Number of failed indexing operations.
  216. `delete_total`::
  217. (integer)
  218. Total number of deletion operations.
  219. `delete_time`::
  220. (<<time-units,time value>>)
  221. Time spent performing deletion operations.
  222. `delete_time_in_millis`::
  223. (integer)
  224. Time in milliseconds
  225. spent performing deletion operations.
  226. `delete_current`::
  227. (integer)
  228. Number of deletion operations currently running.
  229. `noop_update_total`::
  230. (integer)
  231. Total number of noop operations.
  232. `is_throttled`::
  233. (boolean)
  234. Number of times
  235. operations were throttled.
  236. `throttle_time`::
  237. (<<time-units,time value>>)
  238. Total time spent throttling operations.
  239. `throttle_time_in_millis`::
  240. (integer)
  241. Total time in milliseconds
  242. spent throttling operations.
  243. =======
  244. `get`::
  245. (object)
  246. Contains statistics about get operations for the node.
  247. +
  248. .Properties of `get`
  249. [%collapsible%open]
  250. =======
  251. `total`::
  252. (integer)
  253. Total number of get operations.
  254. `getTime`::
  255. (<<time-units,time value>>)
  256. Time spent performing get operations.
  257. `time_in_millis`::
  258. (integer)
  259. Time in milliseconds
  260. spent performing get operations.
  261. `exists_total`::
  262. (integer)
  263. Total number of successful get operations.
  264. `exists_time`::
  265. (<<time-units,time value>>)
  266. Time spent performing successful get operations.
  267. `exists_time_in_millis`::
  268. (integer)
  269. Time in milliseconds
  270. spent performing successful get operations.
  271. `missing_total`::
  272. (integer)
  273. Total number of failed get operations.
  274. `missing_time`::
  275. (<<time-units,time value>>)
  276. Time spent performing failed get operations.
  277. `missing_time_in_millis`::
  278. (integer)
  279. Time in milliseconds
  280. spent performing failed get operations.
  281. `current`::
  282. (integer)
  283. Number of get operations currently running.
  284. =======
  285. `search`::
  286. (object)
  287. Contains statistics about search operations for the node.
  288. +
  289. .Properties of `search`
  290. [%collapsible%open]
  291. =======
  292. `open_contexts`::
  293. (integer)
  294. Number of open search contexts.
  295. `query_total`::
  296. (integer)
  297. Total number of query operations.
  298. `query_time`::
  299. (<<time-units,time value>>)
  300. Time spent performing query operations.
  301. `query_time_in_millis`::
  302. (integer)
  303. Time in milliseconds
  304. spent performing query operations.
  305. `query_current`::
  306. (integer)
  307. Number of query operations currently running.
  308. `fetch_total`::
  309. (integer)
  310. Total number of fetch operations.
  311. `fetch_time`::
  312. (<<time-units,time value>>)
  313. Time spent performing fetch operations.
  314. `fetch_time_in_millis`::
  315. (integer)
  316. Time in milliseconds
  317. spent performing fetch operations.
  318. `fetch_current`::
  319. (integer)
  320. Number of fetch operations currently running.
  321. `scroll_total`::
  322. (integer)
  323. Total number of scroll operations.
  324. `scroll_time`::
  325. (<<time-units,time value>>)
  326. Time spent performing scroll operations.
  327. `scroll_time_in_millis`::
  328. (integer)
  329. Time in milliseconds
  330. spent performing scroll operations.
  331. `scroll_current`::
  332. (integer)
  333. Number of scroll operations currently running.
  334. `suggest_total`::
  335. (integer)
  336. Total number of suggest operations.
  337. `suggest_time`::
  338. (<<time-units,time value>>)
  339. Time spent performing suggest operations.
  340. `suggest_time_in_millis`::
  341. (integer)
  342. Time in milliseconds
  343. spent performing suggest operations.
  344. `suggest_current`::
  345. (integer)
  346. Number of suggest operations currently running.
  347. =======
  348. `merges`::
  349. (object)
  350. Contains statistics about merge operations for the node.
  351. +
  352. .Properties of `merges`
  353. [%collapsible%open]
  354. =======
  355. `current`::
  356. (integer)
  357. Number of merge operations currently running.
  358. `current_docs`::
  359. (integer)
  360. Number of document merges currently running.
  361. `current_size`::
  362. (<<byte-units,byte value>>)
  363. Memory used performing current document merges.
  364. `current_size_in_bytes`::
  365. (integer)
  366. Memory, in bytes, used performing current document merges.
  367. `total`::
  368. (integer)
  369. Total number of merge operations.
  370. `total_time`::
  371. (<<time-units,time value>>)
  372. Total time spent performing merge operations.
  373. `total_time_in_millis`::
  374. (integer)
  375. Total time in milliseconds
  376. spent performing merge operations.
  377. `total_docs`::
  378. (integer)
  379. Total number of merged documents.
  380. `total_size`::
  381. (<<byte-units,byte value>>)
  382. Total size of document merges.
  383. `total_size_in_bytes`::
  384. (integer)
  385. Total size of document merges in bytes.
  386. `total_stopped_time`::
  387. (<<time-units,time value>>)
  388. Total time spent stopping merge operations.
  389. `total_stopped_time_in_millis`::
  390. (integer)
  391. Total time in milliseconds
  392. spent stopping merge operations.
  393. `total_throttled_time`::
  394. (<<time-units,time value>>)
  395. Total time spent throttling merge operations.
  396. `total_throttled_time_in_millis`::
  397. (integer)
  398. Total time in milliseconds
  399. spent throttling merge operations.
  400. `total_auto_throttle`::
  401. (<<byte-units,byte value>>)
  402. Size of automatically throttled merge operations.
  403. `total_auto_throttle_in_bytes`::
  404. (integer)
  405. Size, in bytes, of automatically throttled merge operations.
  406. =======
  407. `refresh`::
  408. (object)
  409. Contains statistics about refresh operations for the node.
  410. +
  411. .Properties of `refresh`
  412. [%collapsible%open]
  413. =======
  414. `total`::
  415. (integer)
  416. Total number of refresh operations.
  417. `total_time`::
  418. (<<time-units,time value>>)
  419. Total time spent performing refresh operations.
  420. `total_time_in_millis`::
  421. (integer)
  422. Total time in milliseconds
  423. spent performing refresh operations.
  424. `external_total`::
  425. (integer)
  426. Total number of external refresh operations.
  427. `external_total_time`::
  428. (<<time-units,time value>>)
  429. Total time spent performing external operations.
  430. `external_total_time_in_millis`::
  431. (integer)
  432. Total time in milliseconds
  433. spent performing external operations.
  434. `listeners`::
  435. (integer)
  436. Number of refresh listeners.
  437. =======
  438. `flush`::
  439. (object)
  440. Contains statistics about flush operations for the node.
  441. +
  442. .Properties of `flush`
  443. [%collapsible%open]
  444. =======
  445. `total`::
  446. (integer)
  447. Number of flush operations.
  448. `periodic`::
  449. (integer)
  450. Number of flush periodic operations.
  451. `total_time`::
  452. (<<time-units,time value>>)
  453. Total time spent performing flush operations.
  454. `total_time_in_millis`::
  455. (integer)
  456. Total time in milliseconds
  457. spent performing flush operations.
  458. =======
  459. `warmer`::
  460. (object)
  461. Contains statistics about index warming operations for the node.
  462. +
  463. .Properties of `warmer`
  464. [%collapsible%open]
  465. =======
  466. `current`::
  467. (integer)
  468. Number of active index warmers.
  469. `total`::
  470. (integer)
  471. Total number of index warmers.
  472. `total_time`::
  473. (<<time-units,time value>>)
  474. Total time spent performing index warming operations.
  475. `total_time_in_millis`::
  476. (integer)
  477. Total time in milliseconds
  478. spent performing index warming operations.
  479. =======
  480. `query_cache`::
  481. (object)
  482. Contains statistics about the query cache across all shards assigned to the
  483. node.
  484. +
  485. .Properties of `query_cache`
  486. [%collapsible%open]
  487. =======
  488. `memory_size`::
  489. (<<byte-units,byte value>>)
  490. Total amount of memory used for the query cache across all shards assigned to
  491. the node.
  492. `memory_size_in_bytes`::
  493. (integer)
  494. Total amount of memory, in bytes, used for the query cache across all shards
  495. assigned to the node.
  496. `total_count`::
  497. (integer)
  498. Total count of hits, misses, and cached queries
  499. in the query cache.
  500. `hit_count`::
  501. (integer)
  502. Number of query cache hits.
  503. `miss_count`::
  504. (integer)
  505. Number of query cache misses.
  506. `cache_size`::
  507. (integer)
  508. Size, in bytes, of the query cache.
  509. `cache_count`::
  510. (integer)
  511. Count of queries
  512. in the query cache.
  513. `evictions`::
  514. (integer)
  515. Number of query cache evictions.
  516. =======
  517. `fielddata`::
  518. (object)
  519. Contains statistics about the field data cache across all shards
  520. assigned to the node.
  521. +
  522. .Properties of `fielddata`
  523. [%collapsible%open]
  524. =======
  525. `memory_size`::
  526. (<<byte-units,byte value>>)
  527. Total amount of memory used for the field data cache across all shards
  528. assigned to the node.
  529. `memory_size_in_bytes`::
  530. (integer)
  531. Total amount of memory, in bytes, used for the field data cache across all
  532. shards assigned to the node.
  533. `evictions`::
  534. (integer)
  535. Number of fielddata evictions.
  536. =======
  537. `completion`::
  538. (object)
  539. Contains statistics about completions across all shards assigned to the node.
  540. +
  541. .Properties of `completion`
  542. [%collapsible%open]
  543. =======
  544. `size`::
  545. (<<byte-units,byte value>>)
  546. Total amount of memory used for completion across all shards assigned to
  547. the node.
  548. `size_in_bytes`::
  549. (integer)
  550. Total amount of memory, in bytes, used for completion across all shards assigned
  551. to the node.
  552. =======
  553. `segments`::
  554. (object)
  555. Contains statistics about segments across all shards assigned to the node.
  556. +
  557. .Properties of `segments`
  558. [%collapsible%open]
  559. =======
  560. `count`::
  561. (integer)
  562. Number of segments.
  563. `memory`::
  564. (<<byte-units,byte value>>)
  565. Total amount of memory used for segments across all shards assigned to the
  566. node.
  567. `memory_in_bytes`::
  568. (integer)
  569. Total amount of memory, in bytes, used for segments across all shards assigned
  570. to the node.
  571. `terms_memory`::
  572. (<<byte-units,byte value>>)
  573. Total amount of memory used for terms across all shards assigned to the node.
  574. `terms_memory_in_bytes`::
  575. (integer)
  576. Total amount of memory, in bytes, used for terms across all shards assigned to
  577. the node.
  578. `stored_fields_memory`::
  579. (<<byte-units,byte value>>)
  580. Total amount of memory used for stored fields across all shards assigned to
  581. the node.
  582. `stored_fields_memory_in_bytes`::
  583. (integer)
  584. Total amount of memory, in bytes, used for stored fields across all shards
  585. assigned to the node.
  586. `term_vectors_memory`::
  587. (<<byte-units,byte value>>)
  588. Total amount of memory used for term vectors across all shards assigned to
  589. the node.
  590. `term_vectors_memory_in_bytes`::
  591. (integer)
  592. Total amount of memory, in bytes, used for term vectors across all shards
  593. assigned to the node.
  594. `norms_memory`::
  595. (<<byte-units,byte value>>)
  596. Total amount of memory used for normalization factors across all shards assigned
  597. to the node.
  598. `norms_memory_in_bytes`::
  599. (integer)
  600. Total amount of memory, in bytes, used for normalization factors across all
  601. shards assigned to the node.
  602. `points_memory`::
  603. (<<byte-units,byte value>>)
  604. Total amount of memory used for points across all shards assigned to the node.
  605. `points_memory_in_bytes`::
  606. (integer)
  607. Total amount of memory, in bytes, used for points across all shards assigned to
  608. the node.
  609. `doc_values_memory`::
  610. (<<byte-units,byte value>>)
  611. Total amount of memory used for doc values across all shards assigned to
  612. the node.
  613. `doc_values_memory_in_bytes`::
  614. (integer)
  615. Total amount of memory, in bytes, used for doc values across all shards assigned
  616. to the node.
  617. `index_writer_memory`::
  618. (<<byte-units,byte value>>)
  619. Total amount of memory used by all index writers across all shards assigned to
  620. the node.
  621. `index_writer_memory_in_bytes`::
  622. (integer)
  623. Total amount of memory, in bytes, used by all index writers across all shards
  624. assigned to the node.
  625. `version_map_memory`::
  626. (<<byte-units,byte value>>)
  627. Total amount of memory used by all version maps across all shards assigned to
  628. the node.
  629. `version_map_memory_in_bytes`::
  630. (integer)
  631. Total amount of memory, in bytes, used by all version maps across all shards
  632. assigned to the node.
  633. `fixed_bit_set`::
  634. (<<byte-units,byte value>>)
  635. Total amount of memory used by fixed bit sets across all shards assigned to
  636. the node.
  637. +
  638. Fixed bit sets are used for nested object field types and
  639. type filters for <<parent-join,join>> fields.
  640. `fixed_bit_set_memory_in_bytes`::
  641. (integer)
  642. Total amount of memory, in bytes, used by fixed bit sets across all shards
  643. assigned to the node.
  644. +
  645. Fixed bit sets are used for nested object field types and
  646. type filters for <<parent-join,join>> fields.
  647. `max_unsafe_auto_id_timestamp`::
  648. (integer)
  649. Time of the most recently retried indexing request. Recorded in milliseconds
  650. since the https://en.wikipedia.org/wiki/Unix_time[Unix Epoch].
  651. `file_sizes`::
  652. (object)
  653. Contains statistics about the size of the segment file.
  654. +
  655. .Properties of `file_sizes`
  656. [%collapsible%open]
  657. ========
  658. `size`::
  659. (<<byte-units,byte value>>)
  660. Size of the segment file.
  661. `size_in_bytes`::
  662. (integer)
  663. Size, in bytes,
  664. of the segment file.
  665. `description`::
  666. (string)
  667. Description of the segment file.
  668. ========
  669. =======
  670. `translog`::
  671. (object)
  672. Contains statistics about transaction log operations for the node.
  673. +
  674. .Properties of `translog`
  675. [%collapsible%open]
  676. =======
  677. `operations`::
  678. (integer)
  679. Number of transaction log operations.
  680. `size`::
  681. (<<byte-units,byte value>>)
  682. Size of the transaction log.
  683. `size_in_bytes`::
  684. (integer)
  685. Size, in bytes, of the transaction log.
  686. `uncommitted_operations`::
  687. (integer)
  688. Number of uncommitted transaction log operations.
  689. `uncommitted_size`::
  690. (<<byte-units,byte value>>)
  691. Size of uncommitted transaction log operations.
  692. `uncommitted_size_in_bytes`::
  693. (integer)
  694. Size, in bytes, of uncommitted transaction log operations.
  695. `earliest_last_modified_age`::
  696. (integer)
  697. Earliest last modified age
  698. for the transaction log.
  699. =======
  700. `request_cache`::
  701. (object)
  702. Contains statistics about the request cache across all shards assigned to the
  703. node.
  704. +
  705. .Properties of `request_cache`
  706. [%collapsible%open]
  707. =======
  708. `memory_size`::
  709. (<<byte-units,byte value>>)
  710. Memory used by the request cache.
  711. `memory_size_in_bytes`::
  712. (integer)
  713. Memory, in bytes, used by the request cache.
  714. `evictions`::
  715. (integer)
  716. Number of request cache operations.
  717. `hit_count`::
  718. (integer)
  719. Number of request cache hits.
  720. `miss_count`::
  721. (integer)
  722. Number of request cache misses.
  723. =======
  724. `recovery`::
  725. (object)
  726. Contains statistics about recovery operations for the node.
  727. +
  728. .Properties of `recovery`
  729. [%collapsible%open]
  730. =======
  731. `current_as_source`::
  732. (integer)
  733. Number of recoveries
  734. that used an index shard as a source.
  735. `current_as_target`::
  736. (integer)
  737. Number of recoveries
  738. that used an index shard as a target.
  739. `throttle_time`::
  740. (<<time-units,time value>>)
  741. Time by which recovery operations were delayed due to throttling.
  742. `throttle_time_in_millis`::
  743. (integer)
  744. Time in milliseconds
  745. recovery operations were delayed due to throttling.
  746. =======
  747. ======
  748. [[cluster-nodes-stats-api-response-body-os]]
  749. `os`::
  750. (object)
  751. Contains statistics about the operating system for the node.
  752. +
  753. .Properties of `os`
  754. [%collapsible%open]
  755. ======
  756. `timestamp`::
  757. (integer)
  758. Last time the operating system statistics were refreshed. Recorded in
  759. milliseconds since the https://en.wikipedia.org/wiki/Unix_time[Unix Epoch].
  760. `cpu`::
  761. (object)
  762. Contains statistics about CPU usage for the node.
  763. +
  764. .Properties of `cpu`
  765. [%collapsible%open]
  766. =======
  767. `percent`::
  768. (integer)
  769. Recent CPU usage for the whole system, or `-1` if not supported.
  770. `load_average`::
  771. (object)
  772. Contains statistics about load averages on the system.
  773. +
  774. .Properties of `load_average`
  775. [%collapsible%open]
  776. ========
  777. `1m`::
  778. (float)
  779. One-minute load average on the system (field is not present if one-minute load
  780. average is not available).
  781. `5m`::
  782. (float)
  783. Five-minute load average on the system (field is not present if five-minute load
  784. average is not available).
  785. `15m`::
  786. (float)
  787. Fifteen-minute load average on the system (field is not present if
  788. fifteen-minute load average is not available).
  789. ========
  790. =======
  791. `mem`::
  792. (object)
  793. Contains statistics about memory usage for the node.
  794. +
  795. .Properties of `mem`
  796. [%collapsible%open]
  797. =======
  798. `total`::
  799. (<<byte-units,byte value>>)
  800. Total amount of physical memory.
  801. `total_in_bytes`::
  802. (integer)
  803. Total amount of physical memory in bytes.
  804. `free`::
  805. (<<byte-units,byte value>>)
  806. Amount of free physical memory.
  807. `free_in_bytes`::
  808. (integer)
  809. Amount of free physical memory in bytes.
  810. `used`::
  811. (<<byte-units,byte value>>)
  812. Amount of used physical memory.
  813. `used_in_bytes`::
  814. (integer)
  815. Amount of used physical memory in bytes.
  816. `free_percent`::
  817. (integer)
  818. Percentage of free memory.
  819. `used_percent`::
  820. (integer)
  821. Percentage of used memory.
  822. =======
  823. `swap`::
  824. (object)
  825. Contains statistics about swap space for the node.
  826. +
  827. .Properties of `swap`
  828. [%collapsible%open]
  829. =======
  830. `total`::
  831. (<<byte-units,byte value>>)
  832. Total amount of swap space.
  833. `total_in_bytes`::
  834. (integer)
  835. Total amount of swap space in bytes.
  836. `free`::
  837. (<<byte-units,byte value>>)
  838. Amount of free swap space.
  839. `free_in_bytes`::
  840. (integer)
  841. Amount of free swap space in bytes.
  842. `used`::
  843. (<<byte-units,byte value>>)
  844. Amount of used swap space.
  845. `used_in_bytes`::
  846. (integer)
  847. Amount of used swap space in bytes.
  848. =======
  849. `cgroup` (Linux only)::
  850. (object)
  851. Contains cgroup statistics for the node.
  852. +
  853. NOTE: For the cgroup stats to be visible, cgroups must be compiled into the
  854. kernel, the `cpu` and `cpuacct` cgroup subsystems must be configured and stats
  855. must be readable from `/sys/fs/cgroup/cpu` and `/sys/fs/cgroup/cpuacct`.
  856. +
  857. .Properties of `cgroup`
  858. [%collapsible%open]
  859. =======
  860. `cpuacct` (Linux only)::
  861. (object)
  862. Contains statistics about `cpuacct` control group for the node.
  863. +
  864. .Properties of `cpuacct`
  865. [%collapsible%open]
  866. ========
  867. `control_group` (Linux only)::
  868. (string)
  869. The `cpuacct` control group to which the {es} process belongs.
  870. `usage_nanos` (Linux only)::
  871. (integer)
  872. The total CPU time (in nanoseconds) consumed by all tasks in the same cgroup
  873. as the {es} process.
  874. ========
  875. `cpu` (Linux only)::
  876. (object)
  877. Contains statistics about `cpu` control group for the node.
  878. +
  879. .Properties of `cpu`
  880. [%collapsible%open]
  881. ========
  882. `control_group` (Linux only)::
  883. (string)
  884. The `cpu` control group to which the {es} process belongs.
  885. `cfs_period_micros` (Linux only)::
  886. (integer)
  887. The period of time (in microseconds) for how regularly all tasks in the same
  888. cgroup as the {es} process should have their access to CPU resources
  889. reallocated.
  890. `cfs_quota_micros` (Linux only)::
  891. (integer)
  892. The total amount of time (in microseconds) for which all tasks in
  893. the same cgroup as the {es} process can run during one period
  894. `cfs_period_micros`.
  895. `stat` (Linux only)::
  896. (object)
  897. Contains CPU statistics for the node.
  898. +
  899. .Properties of `stat`
  900. [%collapsible%open]
  901. =========
  902. `number_of_elapsed_periods` (Linux only)::
  903. (integer)
  904. The number of reporting periods (as specified by
  905. `cfs_period_micros`) that have elapsed.
  906. `number_of_times_throttled` (Linux only)::
  907. (integer)
  908. The number of times all tasks in the same cgroup as the {es} process have
  909. been throttled.
  910. `time_throttled_nanos` (Linux only)::
  911. (integer)
  912. The total amount of time (in nanoseconds) for which all tasks in the same
  913. cgroup as the {es} process have been throttled.
  914. =========
  915. ========
  916. `memory` (Linux only)::
  917. (object)
  918. Contains statistics about the `memory` control group for the node.
  919. +
  920. .Properties of `memory`
  921. [%collapsible%open]
  922. ========
  923. `control_group` (Linux only)::
  924. (string)
  925. The `memory` control group to which the {es} process belongs.
  926. `limit_in_bytes` (Linux only)::
  927. (string)
  928. The maximum amount of user memory (including file cache) allowed for all
  929. tasks in the same cgroup as the {es} process. This value can be too big to
  930. store in a `long`, so is returned as a string so that the value returned can
  931. exactly match what the underlying operating system interface returns. Any
  932. value that is too large to parse into a `long` almost certainly means no
  933. limit has been set for the cgroup.
  934. `usage_in_bytes` (Linux only)::
  935. (string)
  936. The total current memory usage by processes in the cgroup (in bytes) by all
  937. tasks in the same cgroup as the {es} process. This value is stored as a
  938. string for consistency with `limit_in_bytes`.
  939. ========
  940. =======
  941. ======
  942. [[cluster-nodes-stats-api-response-body-process]]
  943. `process`::
  944. (object)
  945. Contains process statistics for the node.
  946. +
  947. .Properties of `process`
  948. [%collapsible%open]
  949. ======
  950. `timestamp`::
  951. (integer)
  952. Last time the statistics were refreshed. Recorded in milliseconds
  953. since the https://en.wikipedia.org/wiki/Unix_time[Unix Epoch].
  954. `open_file_descriptors`::
  955. (integer)
  956. Number of opened file descriptors associated with the current or
  957. `-1` if not supported.
  958. `max_file_descriptors`::
  959. (integer)
  960. Maximum number of file descriptors allowed on the system, or `-1` if not
  961. supported.
  962. `cpu`::
  963. (object)
  964. Contains CPU statistics for the node.
  965. +
  966. .Properties of `cpu`
  967. [%collapsible%open]
  968. =======
  969. `percent`::
  970. (integer)
  971. CPU usage in percent, or `-1` if not known at the time the stats are
  972. computed.
  973. `total`::
  974. (<<time-units,time value>>)
  975. CPU time used by the process on which the Java virtual machine is running.
  976. `total_in_millis`::
  977. (integer)
  978. CPU time (in milliseconds) used by the process on which the Java virtual
  979. machine is running, or `-1` if not supported.
  980. =======
  981. `mem`::
  982. (object)
  983. Contains virtual memory statistics for the node.
  984. +
  985. .Properties of `mem`
  986. [%collapsible%open]
  987. =======
  988. `total_virtual`::
  989. (<<byte-units,byte value>>)
  990. Size of virtual memory that is guaranteed to be available to the
  991. running process.
  992. `total_virtual_in_bytes`::
  993. (integer)
  994. Size in bytes of virtual memory that is guaranteed to be available to the
  995. running process.
  996. =======
  997. ======
  998. [[cluster-nodes-stats-api-response-body-jvm]]
  999. `jvm`::
  1000. (object)
  1001. Contains Java Virtual Machine (JVM) statistics for the node.
  1002. +
  1003. .Properties of `jvm`
  1004. [%collapsible%open]
  1005. ======
  1006. `timestamp`::
  1007. (integer)
  1008. Last time JVM statistics were refreshed.
  1009. `uptime`::
  1010. (<<time-units,time value>>)
  1011. JVM uptime.
  1012. `uptime_in_millis`::
  1013. (integer)
  1014. JVM uptime in milliseconds.
  1015. `mem`::
  1016. (object)
  1017. Contains JVM memory usage statistics for the node.
  1018. +
  1019. .Properties of `mem`
  1020. [%collapsible%open]
  1021. =======
  1022. `heap_used`::
  1023. (<<byte-units,byte value>>)
  1024. Memory currently in use by the heap.
  1025. `heap_used_in_bytes`::
  1026. (integer)
  1027. Memory, in bytes, currently in use by the heap.
  1028. `heap_used_percent`::
  1029. (integer)
  1030. Percentage of memory currently in use by the heap.
  1031. `heap_committed`::
  1032. (<<byte-units,byte value>>)
  1033. Amount of memory available for use by the heap.
  1034. `heap_committed_in_bytes`::
  1035. (integer)
  1036. Amount of memory, in bytes, available for use by the heap.
  1037. `heap_max`::
  1038. (<<byte-units,byte value>>)
  1039. Maximum amount of memory available for use by the heap.
  1040. `heap_max_in_bytes`::
  1041. (integer)
  1042. Maximum amount of memory, in bytes, available for use by the heap.
  1043. `non_heap_used`::
  1044. (<<byte-units,byte value>>)
  1045. Non-heap memory used.
  1046. `non_heap_used_in_bytes`::
  1047. (integer)
  1048. Non-heap memory used, in bytes.
  1049. `non_heap_committed`::
  1050. (<<byte-units,byte value>>)
  1051. Amount of non-heap memory available.
  1052. `non_heap_committed_in_bytes`::
  1053. (integer)
  1054. Amount of non-heap memory available, in bytes.
  1055. `pools`::
  1056. (object)
  1057. Contains statistics about heap memory usage for the node.
  1058. +
  1059. .Properties of `pools`
  1060. [%collapsible%open]
  1061. ========
  1062. `young`::
  1063. (object)
  1064. Contains statistics about memory usage by the young generation heap for the
  1065. node.
  1066. +
  1067. .Properties of `young`
  1068. [%collapsible%open]
  1069. =========
  1070. `used`::
  1071. (<<byte-units,byte value>>)
  1072. Memory used by the young generation heap.
  1073. `used_in_bytes`::
  1074. (integer)
  1075. Memory, in bytes, used by the young generation heap.
  1076. `max`::
  1077. (<<byte-units,byte value>>)
  1078. Maximum amount of memory available for use by the young generation heap.
  1079. `max_in_bytes`::
  1080. (integer)
  1081. Maximum amount of memory, in bytes, available for use by the young generation
  1082. heap.
  1083. `peak_used`::
  1084. (<<byte-units,byte value>>)
  1085. Largest amount of memory historically used by the young generation heap.
  1086. `peak_used_in_bytes`::
  1087. (integer)
  1088. Largest amount of memory, in bytes, historically used by the young generation
  1089. heap.
  1090. `peak_max`::
  1091. (<<byte-units,byte value>>)
  1092. Largest amount of memory historically used by the young generation heap.
  1093. `peak_max_in_bytes`::
  1094. (integer)
  1095. Largest amount of memory, in bytes, historically used by the young generation
  1096. heap.
  1097. =========
  1098. `survivor`::
  1099. (object)
  1100. Contains statistics about memory usage by the survivor space for the node.
  1101. +
  1102. .Properties of `survivor`
  1103. [%collapsible%open]
  1104. =========
  1105. `used`::
  1106. (<<byte-units,byte value>>)
  1107. Memory used by the survivor space.
  1108. `used_in_bytes`::
  1109. (integer)
  1110. Memory, in bytes, used by the survivor space.
  1111. `max`::
  1112. (<<byte-units,byte value>>)
  1113. Maximum amount of memory available for use by the survivor space.
  1114. `max_in_bytes`::
  1115. (integer)
  1116. Maximum amount of memory, in bytes, available for use by the survivor space.
  1117. `peak_used`::
  1118. (<<byte-units,byte value>>)
  1119. Largest amount of memory historically used by the survivor space.
  1120. `peak_used_in_bytes`::
  1121. (integer)
  1122. Largest amount of memory, in bytes, historically used by the survivor space.
  1123. `peak_max`::
  1124. (<<byte-units,byte value>>)
  1125. Largest amount of memory historically used by the survivor space.
  1126. `peak_max_in_bytes`::
  1127. (integer)
  1128. Largest amount of memory, in bytes, historically used by the survivor space.
  1129. =========
  1130. `old`::
  1131. (object)
  1132. Contains statistics about memory usage by the old generation heap for the node.
  1133. +
  1134. .Properties of `old`
  1135. [%collapsible%open]
  1136. =========
  1137. `used`::
  1138. (<<byte-units,byte value>>)
  1139. Memory used by the old generation heap.
  1140. `used_in_bytes`::
  1141. (integer)
  1142. Memory, in bytes, used by the old generation heap.
  1143. `max`::
  1144. (<<byte-units,byte value>>)
  1145. Maximum amount of memory available for use by the old generation heap.
  1146. `max_in_bytes`::
  1147. (integer)
  1148. Maximum amount of memory, in bytes, available for use by the old generation
  1149. heap.
  1150. `peak_used`::
  1151. (<<byte-units,byte value>>)
  1152. Largest amount of memory historically used by the old generation heap.
  1153. `peak_used_in_bytes`::
  1154. (integer)
  1155. Largest amount of memory, in bytes, historically used by the old generation
  1156. heap.
  1157. `peak_max`::
  1158. (<<byte-units,byte value>>)
  1159. Highest memory limit historically available for use by the old generation heap.
  1160. `peak_max_in_bytes`::
  1161. (integer)
  1162. Highest memory limit, in bytes, historically available for use by the old
  1163. generation heap.
  1164. =========
  1165. ========
  1166. =======
  1167. `threads`::
  1168. (object)
  1169. Contains statistics about JVM thread usage for the node.
  1170. +
  1171. .Properties of `threads`
  1172. [%collapsible%open]
  1173. =======
  1174. `count`::
  1175. (integer)
  1176. Number of active threads in use by JVM.
  1177. `peak_count`::
  1178. (integer)
  1179. Highest number of threads used by JVM.
  1180. =======
  1181. `gc`::
  1182. (object)
  1183. Contains statistics about JVM garbage collectors for the node.
  1184. +
  1185. .Properties of `gc`
  1186. [%collapsible%open]
  1187. =======
  1188. `collectors`::
  1189. (object)
  1190. Contains statistics about JVM garbage collectors for the node.
  1191. +
  1192. .Properties of `collectors`
  1193. [%collapsible%open]
  1194. ========
  1195. `young`::
  1196. (object)
  1197. Contains statistics about JVM garbage collectors that collect young generation
  1198. objects for the node.
  1199. +
  1200. .Properties of `young`
  1201. [%collapsible%open]
  1202. =========
  1203. `collection_count`::
  1204. (integer)
  1205. Number of JVM garbage collectors that collect young generation objects.
  1206. `collection_time`::
  1207. (<<time-units,time value>>)
  1208. Total time spent by JVM collecting young generation objects.
  1209. `collection_time_in_millis`::
  1210. (integer)
  1211. Total time in milliseconds spent by JVM collecting young generation objects.
  1212. =========
  1213. `old`::
  1214. (object)
  1215. Contains statistics about JVM garbage collectors that collect old generation
  1216. objects for the node.
  1217. +
  1218. .Properties of `old`
  1219. [%collapsible%open]
  1220. =========
  1221. `collection_count`::
  1222. (integer)
  1223. Number of JVM garbage collectors that collect old generation objects.
  1224. `collection_time`::
  1225. (<<time-units,time value>>)
  1226. Total time spent by JVM collecting old generation objects.
  1227. `collection_time_in_millis`::
  1228. (integer)
  1229. Total time in milliseconds spent by JVM collecting old generation objects.
  1230. =========
  1231. ========
  1232. =======
  1233. `buffer_pools`::
  1234. (object)
  1235. Contains statistics about JVM buffer pools for the node.
  1236. +
  1237. .Properties of `buffer_pools`
  1238. [%collapsible%open]
  1239. =======
  1240. `mapped`::
  1241. (object)
  1242. Contains statistics about mapped JVM buffer pools for the node.
  1243. +
  1244. .Properties of `mapped`
  1245. [%collapsible%open]
  1246. ========
  1247. `count`::
  1248. (integer)
  1249. Number of mapped buffer pools.
  1250. `used`::
  1251. (<<byte-units,byte value>>)
  1252. Size of mapped buffer pools.
  1253. `used_in_bytes`::
  1254. (integer)
  1255. Size, in bytes, of mapped buffer pools.
  1256. `total_capacity`::
  1257. (<<byte-units,byte value>>)
  1258. Total capacity of mapped buffer pools.
  1259. `total_capacity_in_bytes`::
  1260. (integer)
  1261. Total capacity, in bytes, of mapped buffer pools.
  1262. ========
  1263. `direct`::
  1264. (object)
  1265. Contains statistics about direct JVM buffer pools for the node.
  1266. +
  1267. .Properties of `direct`
  1268. [%collapsible%open]
  1269. ========
  1270. `count`::
  1271. (integer)
  1272. Number of direct buffer pools.
  1273. `used`::
  1274. (<<byte-units,byte value>>)
  1275. Size of direct buffer pools.
  1276. `used_in_bytes`::
  1277. (integer)
  1278. Size, in bytes, of direct buffer pools.
  1279. `total_capacity`::
  1280. (<<byte-units,byte value>>)
  1281. Total capacity of direct buffer pools.
  1282. `total_capacity_in_bytes`::
  1283. (integer)
  1284. Total capacity, in bytes, of direct buffer pools.
  1285. ========
  1286. =======
  1287. `classes`::
  1288. (object)
  1289. Contains statistics about classes loaded by JVM for the node.
  1290. +
  1291. .Properties of `classes`
  1292. [%collapsible%open]
  1293. =======
  1294. `current_loaded_count`::
  1295. (integer)
  1296. Number of classes currently loaded by JVM.
  1297. `total_loaded_count`::
  1298. (integer)
  1299. Total number of classes loaded since the JVM started.
  1300. `total_unloaded_count`::
  1301. (integer)
  1302. Total number of classes unloaded since the JVM started.
  1303. =======
  1304. ======
  1305. [[cluster-nodes-stats-api-response-body-threadpool]]
  1306. `thread_pool`::
  1307. (object)
  1308. Contains thread pool statistics for the node
  1309. +
  1310. .Properties of `thread_pool`
  1311. [%collapsible%open]
  1312. ======
  1313. `<thread_pool_name>`::
  1314. (object)
  1315. Contains statistics about the thread pool for the node.
  1316. +
  1317. .Properties of `<thread_pool_name>`
  1318. [%collapsible%open]
  1319. =======
  1320. `threads`::
  1321. (integer)
  1322. Number of threads in the thread pool.
  1323. `queue`::
  1324. (integer)
  1325. Number of tasks in queue for the thread pool.
  1326. `active`::
  1327. (integer)
  1328. Number of active threads in the thread pool.
  1329. `rejected`::
  1330. (integer)
  1331. Number of tasks rejected by the thread pool executor.
  1332. `largest`::
  1333. (integer)
  1334. Highest number of active threads in the thread pool.
  1335. `completed`::
  1336. (integer)
  1337. Number of tasks completed by the thread pool executor.
  1338. =======
  1339. ======
  1340. [[cluster-nodes-stats-api-response-body-fs]]
  1341. `fs`::
  1342. (object)
  1343. Contains file store statistics for the node.
  1344. +
  1345. .Properties of `fs`
  1346. [%collapsible%open]
  1347. ======
  1348. `timestamp`::
  1349. (integer)
  1350. Last time the file stores statistics were refreshed. Recorded in
  1351. milliseconds since the https://en.wikipedia.org/wiki/Unix_time[Unix Epoch].
  1352. `total`::
  1353. (object)
  1354. Contains statistics for all file stores of the node.
  1355. +
  1356. .Properties of `total`
  1357. [%collapsible%open]
  1358. =======
  1359. `total`::
  1360. (<<byte-units,byte value>>)
  1361. Total size of all file stores.
  1362. `total_in_bytes`::
  1363. (integer)
  1364. Total size (in bytes) of all file stores.
  1365. `free`::
  1366. (<<byte-units,byte value>>)
  1367. Total unallocated disk space in all file stores.
  1368. `free_in_bytes`::
  1369. (integer)
  1370. Total number of unallocated bytes in all file stores.
  1371. `available`::
  1372. (<<byte-units,byte value>>)
  1373. Total disk space available to this Java virtual machine on all file
  1374. stores. Depending on OS or process level restrictions, this might appear
  1375. less than `free`. This is the actual amount of free disk
  1376. space the {es} node can utilise.
  1377. `available_in_bytes`::
  1378. (integer)
  1379. Total number of bytes available to this Java virtual machine on all file
  1380. stores. Depending on OS or process level restrictions, this might appear
  1381. less than `free_in_bytes`. This is the actual amount of free disk
  1382. space the {es} node can utilise.
  1383. =======
  1384. `least_usage_estimate`::
  1385. (object)
  1386. Contains statistics for the file store with the least estimated usage. See
  1387. <<cluster-nodes-stats-fs-data,`fs.data`>> for a list of child parameters.
  1388. `most_usage_estimate`::
  1389. (object)
  1390. Contains statistics for the file store with the most estimated usage. See
  1391. <<cluster-nodes-stats-fs-data,`fs.data`>> for a list of child parameters.
  1392. [[cluster-nodes-stats-fs-data]]
  1393. `data`::
  1394. (array of objects)
  1395. List of all file stores.
  1396. +
  1397. .Properties of `data`
  1398. [%collapsible%open]
  1399. =======
  1400. `path`::
  1401. (string)
  1402. Path to the file store.
  1403. `mount`::
  1404. (string)
  1405. Mount point of the file store (ex: /dev/sda2).
  1406. +
  1407. NOTE: This parameter is not provided for the `least_usage_estimate` or
  1408. `most_usage_estimate` file stores.
  1409. `type`::
  1410. (string)
  1411. Type of the file store (ex: ext4).
  1412. `total`::
  1413. (<<byte-units,byte value>>)
  1414. Total size of the file store.
  1415. `total_in_bytes`::
  1416. (integer)
  1417. Total size (in bytes) of the file store.
  1418. `free`::
  1419. (<<byte-units,byte value>>)
  1420. Total amount of unallocated disk space in the file store.
  1421. `free_in_bytes`::
  1422. (integer)
  1423. Total number of unallocated bytes in the file store.
  1424. `available`::
  1425. (<<byte-units,byte value>>)
  1426. Total amount of disk space available to this Java virtual machine on this file
  1427. store.
  1428. `available_in_bytes`::
  1429. (integer)
  1430. Total number of bytes available to this Java virtual machine on this file
  1431. store.
  1432. =======
  1433. `io_stats` (Linux only)::
  1434. (objects)
  1435. Contains I/O statistics for the node.
  1436. +
  1437. .Properties of `io_stats`
  1438. [%collapsible%open]
  1439. =======
  1440. `devices` (Linux only)::
  1441. (array)
  1442. Array of disk metrics for each device that is backing an {es} data path.
  1443. These disk metrics are probed periodically and averages between the last
  1444. probe and the current probe are computed.
  1445. +
  1446. .Properties of `devices`
  1447. [%collapsible%open]
  1448. ========
  1449. `device_name` (Linux only)::
  1450. (string)
  1451. The Linux device name.
  1452. `operations` (Linux only)::
  1453. (integer)
  1454. The total number of read and write operations for the device completed since
  1455. starting {es}.
  1456. `read_operations` (Linux only)::
  1457. (integer)
  1458. The total number of read operations for the device completed since starting
  1459. {es}.
  1460. `write_operations` (Linux only)::
  1461. (integer)
  1462. The total number of write operations for the device completed since starting
  1463. {es}.
  1464. `read_kilobytes` (Linux only)::
  1465. (integer)
  1466. The total number of kilobytes read for the device since starting {es}.
  1467. `write_kilobytes` (Linux only)::
  1468. (integer)
  1469. The total number of kilobytes written for the device since starting {es}.
  1470. ========
  1471. `operations` (Linux only)::
  1472. (integer)
  1473. The total number of read and write operations across all devices used by
  1474. {es} completed since starting {es}.
  1475. `read_operations` (Linux only)::
  1476. (integer)
  1477. The total number of read operations for across all devices used by {es}
  1478. completed since starting {es}.
  1479. `write_operations` (Linux only)::
  1480. (integer)
  1481. The total number of write operations across all devices used by {es}
  1482. completed since starting {es}.
  1483. `read_kilobytes` (Linux only)::
  1484. (integer)
  1485. The total number of kilobytes read across all devices used by {es} since
  1486. starting {es}.
  1487. `write_kilobytes` (Linux only)::
  1488. (integer)
  1489. The total number of kilobytes written across all devices used by {es} since
  1490. starting {es}.
  1491. =======
  1492. ======
  1493. [[cluster-nodes-stats-api-response-body-transport]]
  1494. `transport`::
  1495. (object)
  1496. Contains transport statistics for the node.
  1497. +
  1498. .Properties of `transport`
  1499. [%collapsible%open]
  1500. ======
  1501. `server_open`::
  1502. (integer)
  1503. Number of open TCP connections used for internal communication between nodes.
  1504. `rx_count`::
  1505. (integer)
  1506. Total number of RX (receive) packets received by the node during internal
  1507. cluster communication.
  1508. `rx_size`::
  1509. (<<byte-units,byte value>>)
  1510. Size of RX packets received by the node during internal cluster communication.
  1511. `rx_size_in_bytes`::
  1512. (integer)
  1513. Size, in bytes, of RX packets received by the node during internal cluster
  1514. communication.
  1515. `tx_count`::
  1516. (integer)
  1517. Total number of TX (transmit) packets sent by the node during internal cluster
  1518. communication.
  1519. `tx_size`::
  1520. (<<byte-units,byte value>>)
  1521. Size of TX packets sent by the node during internal cluster communication.
  1522. `tx_size_in_bytes`::
  1523. (integer)
  1524. Size, in bytes, of TX packets sent by the node during internal cluster
  1525. communication.
  1526. ======
  1527. [[cluster-nodes-stats-api-response-body-http]]
  1528. `http`::
  1529. (object)
  1530. Contains http statistics for the node.
  1531. +
  1532. .Properties of `http`
  1533. [%collapsible%open]
  1534. ======
  1535. `current_open`::
  1536. (integer)
  1537. Current number of open HTTP connections for the node.
  1538. `total_opened`::
  1539. (integer)
  1540. Total number of HTTP connections opened for the node.
  1541. ======
  1542. [[cluster-nodes-stats-api-response-body-breakers]]
  1543. `beakers`::
  1544. (object)
  1545. Contains circuit breaker statistics for the node.
  1546. +
  1547. .Properties of `breakers`
  1548. [%collapsible%open]
  1549. ======
  1550. `<circuit_breaker_name>`::
  1551. (object)
  1552. Contains statistics for the circuit breaker.
  1553. +
  1554. .Properties of `<circuit_breaker_name>`
  1555. [%collapsible%open]
  1556. =======
  1557. `limit_size_in_bytes`::
  1558. (integer)
  1559. Memory limit, in bytes, for the circuit breaker.
  1560. `limit_size`::
  1561. (<<byte-units,byte value>>)
  1562. Memory limit for the circuit breaker.
  1563. `estimated_size_in_bytes`::
  1564. (integer)
  1565. Estimated memory used, in bytes, for the operation.
  1566. `estimated_size`::
  1567. (<<byte-units,byte value>>)
  1568. Estimated memory used for the operation.
  1569. `overhead`::
  1570. (float)
  1571. A constant that all estimates for the circuit breaker are multiplied with to
  1572. calculate a final estimate.
  1573. `tripped`::
  1574. (integer)
  1575. Total number of times the circuit breaker has been triggered and prevented an
  1576. out of memory error.
  1577. =======
  1578. ======
  1579. [[cluster-nodes-stats-api-response-body-script]]
  1580. `script`::
  1581. (object)
  1582. Contains script statistics for the node.
  1583. +
  1584. .Properties of `script`
  1585. [%collapsible%open]
  1586. ======
  1587. `compilations`::
  1588. (integer)
  1589. Total number of inline script compilations performed by the node.
  1590. `cache_evictions`::
  1591. (integer)
  1592. Total number of times the script cache has evicted old data.
  1593. `compilation_limit_triggered`::
  1594. (integer)
  1595. Total number of times the <<script-compilation-circuit-breaker,script
  1596. compilation>> circuit breaker has limited inline script compilations.
  1597. ======
  1598. [[cluster-nodes-stats-api-response-body-discovery]]
  1599. `discovery`::
  1600. (object)
  1601. Contains node discovery statistics for the node.
  1602. +
  1603. .Properties of `discovery`
  1604. [%collapsible%open]
  1605. ======
  1606. `cluster_state_queue`::
  1607. (object)
  1608. Contains statistics for the cluster state queue of the node.
  1609. +
  1610. .Properties of `cluster_state_queue`
  1611. [%collapsible%open]
  1612. =======
  1613. `total`::
  1614. (integer)
  1615. Total number of cluster states in queue.
  1616. `pending`::
  1617. (integer)
  1618. Number of pending cluster states in queue.
  1619. `committed`::
  1620. (integer)
  1621. Number of committed cluster states in queue.
  1622. =======
  1623. `published_cluster_states`::
  1624. (object)
  1625. Contains statistics for the published cluster states of the node.
  1626. +
  1627. .Properties of `published_cluster_states`
  1628. [%collapsible%open]
  1629. =======
  1630. `full_states`::
  1631. (integer)
  1632. Number of published cluster states.
  1633. `incompatible_diffs`::
  1634. (integer)
  1635. Number of incompatible differences between published cluster states.
  1636. `compatible_diffs`::
  1637. (integer)
  1638. Number of compatible differences between published cluster states.
  1639. =======
  1640. ======
  1641. [[cluster-nodes-stats-api-response-body-ingest]]
  1642. `ingest`::
  1643. (object)
  1644. Contains ingest statistics for the node.
  1645. +
  1646. .Properties of `ingest`
  1647. [%collapsible%open]
  1648. ======
  1649. `total`::
  1650. (object)
  1651. Contains statistics about ingest operations for the node.
  1652. +
  1653. .Properties of `total`
  1654. [%collapsible%open]
  1655. =======
  1656. `count`::
  1657. (integer)
  1658. Total number of documents ingested during the lifetime of this node.
  1659. `time`::
  1660. (<<time-units,time value>>)
  1661. Total time spent preprocessing ingest documents during the lifetime of this
  1662. node.
  1663. `time_in_millis`::
  1664. (integer)
  1665. Total time, in milliseconds, spent preprocessing ingest documents during the
  1666. lifetime of this node.
  1667. `current`::
  1668. (integer)
  1669. Total number of documents currently being ingested.
  1670. `failed`::
  1671. (integer)
  1672. Total number of failed ingest operations during the lifetime of this node.
  1673. =======
  1674. `pipelines`::
  1675. (object)
  1676. Contains statistics about ingest pipelines for the node.
  1677. +
  1678. .Properties of `pipelines`
  1679. [%collapsible%open]
  1680. =======
  1681. `<pipeline_id>`::
  1682. (object)
  1683. Contains statistics about the ingest pipeline.
  1684. +
  1685. .Properties of `<pipeline_id>`
  1686. [%collapsible%open]
  1687. ========
  1688. `count`::
  1689. (integer)
  1690. Number of documents preprocessed by the ingest pipeline.
  1691. `time`::
  1692. (<<time-units,time value>>)
  1693. Total time spent preprocessing documents in the ingest pipeline.
  1694. `time_in_millis`::
  1695. (integer)
  1696. Total time, in milliseconds, spent preprocessing documents in the ingest
  1697. pipeline.
  1698. `failed`::
  1699. (integer)
  1700. Total number of failed operations for the ingest pipeline.
  1701. `processors`::
  1702. (array of objects)
  1703. Contains statistics for the ingest processors for the ingest pipeline.
  1704. +
  1705. .Properties of `processors`
  1706. [%collapsible%open]
  1707. =========
  1708. `<processor>`::
  1709. (object)
  1710. Contains statistics for the ingest processor.
  1711. +
  1712. .Properties of `<processor>`
  1713. [%collapsible%open]
  1714. ==========
  1715. `count`::
  1716. (integer)
  1717. Number of documents transformed by the processor.
  1718. `time`::
  1719. (<<time-units,time value>>)
  1720. Time spent by the processor transforming documents.
  1721. `time_in_millis`::
  1722. (integer)
  1723. Time, in milliseconds, spent by the processor transforming documents.
  1724. `current`::
  1725. (integer)
  1726. Number of documents currently being transformed by the processor.
  1727. `failed`::
  1728. (integer)
  1729. Number of failed operations for the processor.
  1730. ==========
  1731. =========
  1732. ========
  1733. =======
  1734. ======
  1735. [[cluster-nodes-stats-api-response-body-adaptive-selection]]
  1736. `adaptive_selection`::
  1737. (object)
  1738. Contains adaptive selection statistics for the node.
  1739. +
  1740. .Properties of `adaptive_selection`
  1741. [%collapsible%open]
  1742. ======
  1743. `outgoing_searches`::
  1744. (integer)
  1745. The number of outstanding search requests from the node these stats are for
  1746. to the keyed node.
  1747. `avg_queue_size`::
  1748. (integer)
  1749. The exponentially weighted moving average queue size of search requests on
  1750. the keyed node.
  1751. `avg_service_time`::
  1752. (<<time-units,time value>>)
  1753. The exponentially weighted moving average service time of search requests on
  1754. the keyed node.
  1755. `avg_service_time_ns`::
  1756. (integer)
  1757. The exponentially weighted moving average service time, in nanoseconds, of
  1758. search requests on the keyed node.
  1759. `avg_response_time`::
  1760. (<<time-units,time value>>)
  1761. The exponentially weighted moving average response time of search requests
  1762. on the keyed node.
  1763. `avg_response_time_ns`::
  1764. (integer)
  1765. The exponentially weighted moving average response time, in nanoseconds, of
  1766. search requests on the keyed node.
  1767. `rank`::
  1768. (string)
  1769. The rank of this node; used for shard selection when routing search
  1770. requests.
  1771. ======
  1772. =====
  1773. ====
  1774. [[cluster-nodes-stats-api-example]]
  1775. ==== {api-examples-title}
  1776. [source,console]
  1777. --------------------------------------------------
  1778. # return just indices
  1779. GET /_nodes/stats/indices
  1780. # return just os and process
  1781. GET /_nodes/stats/os,process
  1782. # return just process for node with IP address 10.0.0.1
  1783. GET /_nodes/10.0.0.1/stats/process
  1784. --------------------------------------------------
  1785. All stats can be explicitly requested via `/_nodes/stats/_all` or
  1786. `/_nodes/stats?metric=_all`.
  1787. You can get information about indices stats on `node`, `indices`, or `shards`
  1788. level.
  1789. [source,console]
  1790. --------------------------------------------------
  1791. # Fielddata summarized by node
  1792. GET /_nodes/stats/indices/fielddata?fields=field1,field2
  1793. # Fielddata summarized by node and index
  1794. GET /_nodes/stats/indices/fielddata?level=indices&fields=field1,field2
  1795. # Fielddata summarized by node, index, and shard
  1796. GET /_nodes/stats/indices/fielddata?level=shards&fields=field1,field2
  1797. # You can use wildcards for field names
  1798. GET /_nodes/stats/indices/fielddata?fields=field*
  1799. --------------------------------------------------
  1800. You can get statistics about search groups for searches executed
  1801. on this node.
  1802. [source,console]
  1803. --------------------------------------------------
  1804. # All groups with all stats
  1805. GET /_nodes/stats?groups=_all
  1806. # Some groups from just the indices stats
  1807. GET /_nodes/stats/indices?groups=foo,bar
  1808. --------------------------------------------------
  1809. [[cluster-nodes-stats-ingest-ex]]
  1810. ===== Retrieve ingest statistics only
  1811. To return only ingest-related node statistics, set the `<metric>` path
  1812. parameter to `ingest` and use the
  1813. <<common-options-response-filtering,`filter_path`>> query parameter.
  1814. [source,console]
  1815. --------------------------------------------------
  1816. GET /_nodes/stats/ingest?filter_path=nodes.*.ingest
  1817. --------------------------------------------------
  1818. You can use the `metric` and `filter_path` query parameters to get the same
  1819. response.
  1820. [source,console]
  1821. --------------------------------------------------
  1822. GET /_nodes/stats?metric=ingest&filter_path=nodes.*.ingest
  1823. --------------------------------------------------
  1824. To further refine the response, change the `filter_path` value.
  1825. For example, the following request only returns ingest pipeline statistics.
  1826. [source,console]
  1827. --------------------------------------------------
  1828. GET /_nodes/stats?metric=ingest&filter_path=nodes.*.ingest.pipelines
  1829. --------------------------------------------------