nodes-stats.asciidoc 48 KB

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