nodes-stats.asciidoc 67 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882
  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-prereqs]]
  16. ==== {api-prereq-title}
  17. * If the {es} {security-features} are enabled, you must have the `monitor` or
  18. `manage` <<privileges-list-cluster,cluster privilege>> to use this API.
  19. [[cluster-nodes-stats-api-desc]]
  20. ==== {api-description-title}
  21. You can use the cluster nodes stats API to retrieve statistics for nodes in a cluster.
  22. All the nodes selective options are explained <<cluster-nodes,here>>.
  23. By default, all stats are returned. You can limit the returned information by
  24. using metrics.
  25. [[cluster-nodes-stats-api-path-params]]
  26. ==== {api-path-parms-title}
  27. `<metric>`::
  28. (Optional, string) Limits the information returned to the specific metrics.
  29. A comma-separated list of the following options:
  30. +
  31. --
  32. `adaptive_selection`::
  33. Statistics about <<search-adaptive-replica,adaptive replica selection>>.
  34. `breaker`::
  35. Statistics about the field data circuit breaker.
  36. `discovery`::
  37. Statistics about the discovery.
  38. `fs`::
  39. File system information, data path, free disk space, read/write
  40. stats.
  41. `http`::
  42. HTTP connection information.
  43. `indexing_pressure`::
  44. Statistics about the node's indexing load and related rejections.
  45. `indices`::
  46. Indices stats about size, document count, indexing and deletion times,
  47. search times, field cache size, merges and flushes.
  48. `ingest`::
  49. Statistics about ingest preprocessing.
  50. `jvm`::
  51. JVM stats, memory pool information, garbage collection, buffer
  52. pools, number of loaded/unloaded classes.
  53. `os`::
  54. Operating system stats, load average, mem, swap.
  55. `process`::
  56. Process statistics, memory consumption, cpu usage, open
  57. file descriptors.
  58. `repositories`::
  59. Statistics about snapshot repositories.
  60. `thread_pool`::
  61. Statistics about each thread pool, including current size, queue and
  62. rejected tasks.
  63. `transport`::
  64. Transport statistics about sent and received bytes in cluster
  65. communication.
  66. --
  67. `<index_metric>`::
  68. (Optional, string) Limit the information returned for `indices` metric to
  69. the specific index metrics. It can be used only if `indices` (or `all`)
  70. metric is specified. Supported metrics are:
  71. +
  72. --
  73. * `bulk`
  74. * `completion`
  75. * `docs`
  76. * `fielddata`
  77. * `flush`
  78. * `get`
  79. * `indexing`
  80. * `mappings`
  81. * `merge`
  82. * `query_cache`
  83. * `recovery`
  84. * `refresh`
  85. * `request_cache`
  86. * `search`
  87. * `segments`
  88. * `shard_stats`
  89. * `store`
  90. * `translog`
  91. * `warmer`
  92. * `dense_vector`
  93. --
  94. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=node-id]
  95. [[cluster-nodes-stats-api-query-params]]
  96. ==== {api-query-parms-title}
  97. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=completion-fields]
  98. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=fielddata-fields]
  99. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=fields]
  100. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=groups]
  101. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=level]
  102. `types`::
  103. (Optional, string) A comma-separated list of document types for the
  104. `indexing` index metric.
  105. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
  106. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=include-segment-file-sizes]
  107. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=include-unloaded-segments]
  108. [role="child_attributes"]
  109. [[cluster-nodes-stats-api-response-body]]
  110. ==== {api-response-body-title}
  111. `_nodes`::
  112. (object)
  113. Contains statistics about the number of nodes selected by the request.
  114. +
  115. .Properties of `_nodes`
  116. [%collapsible%open]
  117. ====
  118. `total`::
  119. (integer)
  120. Total number of nodes selected by the request.
  121. `successful`::
  122. (integer)
  123. Number of nodes that responded successfully to the request.
  124. `failed`::
  125. (integer)
  126. Number of nodes that rejected the request or failed to respond. If this value
  127. is not `0`, a reason for the rejection or failure is included in the response.
  128. ====
  129. `cluster_name`::
  130. (string)
  131. Name of the cluster. Based on the <<cluster-name>> setting.
  132. `nodes`::
  133. (object)
  134. Contains statistics for the nodes selected by the request.
  135. +
  136. .Properties of `nodes`
  137. [%collapsible%open]
  138. ====
  139. `<node_id>`::
  140. (object)
  141. Contains statistics for the node.
  142. +
  143. .Properties of `<node_id>`
  144. [%collapsible%open]
  145. =====
  146. `timestamp`::
  147. (integer)
  148. Time the node stats were collected for this response. Recorded in milliseconds
  149. since the {wikipedia}/Unix_time[Unix Epoch].
  150. `name`::
  151. (string)
  152. Human-readable identifier for the node. Based on the <<node-name>> setting.
  153. `transport_address`::
  154. (string)
  155. Host and port for the <<transport-settings,transport layer>>, used for internal
  156. communication between nodes in a cluster.
  157. `host`::
  158. (string)
  159. Network host for the node, based on the <<network.host>> setting.
  160. `ip`::
  161. (string)
  162. IP address and port for the node.
  163. `roles`::
  164. (array of strings)
  165. Roles assigned to the node. See <<modules-node>>.
  166. `attributes`::
  167. (object)
  168. Contains a list of attributes for the node.
  169. [[cluster-nodes-stats-api-response-body-indices]]
  170. `indices`::
  171. (object)
  172. Contains statistics about indices with shards assigned to the node.
  173. +
  174. .Properties of `indices`
  175. [%collapsible%open]
  176. ======
  177. `docs`::
  178. (object)
  179. Contains statistics about documents across all primary shards assigned to the
  180. node.
  181. +
  182. .Properties of `docs`
  183. [%collapsible%open]
  184. =======
  185. `count`::
  186. (integer)
  187. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=docs-count]
  188. `deleted`::
  189. (integer)
  190. include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=docs-deleted]
  191. =======
  192. `store`::
  193. (object)
  194. Contains statistics about the size of shards assigned to the node.
  195. +
  196. .Properties of `store`
  197. [%collapsible%open]
  198. =======
  199. `size`::
  200. (<<byte-units,byte value>>)
  201. Total size of all shards assigned to the node.
  202. `size_in_bytes`::
  203. (integer)
  204. Total size, in bytes, of all shards assigned to the node.
  205. `total_data_set_size`::
  206. (<<byte-units,byte value>>)
  207. Total data set size of all shards assigned to the node.
  208. This includes the size of shards not stored fully on the node, such as the
  209. cache for <<partially-mounted,partially mounted indices>>.
  210. `total_data_set_size_in_bytes`::
  211. (integer)
  212. Total data set size, in bytes, of all shards assigned to the node.
  213. This includes the size of shards not stored fully on the node, such as the
  214. cache for <<partially-mounted,partially mounted indices>>.
  215. `reserved`::
  216. (<<byte-units,byte value>>)
  217. A prediction of how much larger the shard stores on this node will eventually
  218. grow due to ongoing peer recoveries, restoring snapshots, and similar
  219. activities. A value of `-1b` indicates that this is not available.
  220. `reserved_in_bytes`::
  221. (integer)
  222. A prediction, in bytes, of how much larger the shard stores on this node will
  223. eventually grow due to ongoing peer recoveries, restoring snapshots, and
  224. similar activities. A value of `-1` indicates that this is not available.
  225. =======
  226. `indexing`::
  227. (object)
  228. Contains statistics about indexing operations for the node.
  229. +
  230. .Properties of `indexing`
  231. [%collapsible%open]
  232. =======
  233. `index_total`::
  234. (integer)
  235. Total number of indexing operations.
  236. `index_time`::
  237. (<<time-units,time value>>)
  238. Total time spent performing indexing operations.
  239. `index_time_in_millis`::
  240. (integer)
  241. Total time in milliseconds
  242. spent performing indexing operations.
  243. `index_current`::
  244. (integer)
  245. Number of indexing operations currently running.
  246. `index_failed`::
  247. (integer)
  248. Number of failed indexing operations.
  249. `delete_total`::
  250. (integer)
  251. Total number of deletion operations.
  252. `delete_time`::
  253. (<<time-units,time value>>)
  254. Time spent performing deletion operations.
  255. `delete_time_in_millis`::
  256. (integer)
  257. Time in milliseconds
  258. spent performing deletion operations.
  259. `delete_current`::
  260. (integer)
  261. Number of deletion operations currently running.
  262. `noop_update_total`::
  263. (integer)
  264. Total number of noop operations.
  265. `is_throttled`::
  266. (Boolean)
  267. Number of times
  268. operations were throttled.
  269. `throttle_time`::
  270. (<<time-units,time value>>)
  271. Total time spent throttling operations.
  272. `throttle_time_in_millis`::
  273. (integer)
  274. Total time in milliseconds
  275. spent throttling operations.
  276. `write_load`::
  277. (double)
  278. Average number of write threads used while indexing documents.
  279. =======
  280. `get`::
  281. (object)
  282. Contains statistics about get operations for the node.
  283. +
  284. .Properties of `get`
  285. [%collapsible%open]
  286. =======
  287. `total`::
  288. (integer)
  289. Total number of get operations.
  290. `getTime`::
  291. (<<time-units,time value>>)
  292. Time spent performing get operations.
  293. `time_in_millis`::
  294. (integer)
  295. Time in milliseconds
  296. spent performing get operations.
  297. `exists_total`::
  298. (integer)
  299. Total number of successful get operations.
  300. `exists_time`::
  301. (<<time-units,time value>>)
  302. Time spent performing successful get operations.
  303. `exists_time_in_millis`::
  304. (integer)
  305. Time in milliseconds
  306. spent performing successful get operations.
  307. `missing_total`::
  308. (integer)
  309. Total number of failed get operations.
  310. `missing_time`::
  311. (<<time-units,time value>>)
  312. Time spent performing failed get operations.
  313. `missing_time_in_millis`::
  314. (integer)
  315. Time in milliseconds
  316. spent performing failed get operations.
  317. `current`::
  318. (integer)
  319. Number of get operations currently running.
  320. =======
  321. `search`::
  322. (object)
  323. Contains statistics about search operations for the node.
  324. +
  325. .Properties of `search`
  326. [%collapsible%open]
  327. =======
  328. `open_contexts`::
  329. (integer)
  330. Number of open search contexts.
  331. `query_total`::
  332. (integer)
  333. Total number of query operations.
  334. `query_time`::
  335. (<<time-units,time value>>)
  336. Time spent performing query operations.
  337. `query_time_in_millis`::
  338. (integer)
  339. Time in milliseconds
  340. spent performing query operations.
  341. `query_current`::
  342. (integer)
  343. Number of query operations currently running.
  344. `fetch_total`::
  345. (integer)
  346. Total number of fetch operations.
  347. `fetch_time`::
  348. (<<time-units,time value>>)
  349. Time spent performing fetch operations.
  350. `fetch_time_in_millis`::
  351. (integer)
  352. Time in milliseconds
  353. spent performing fetch operations.
  354. `fetch_current`::
  355. (integer)
  356. Number of fetch operations currently running.
  357. `scroll_total`::
  358. (integer)
  359. Total number of scroll operations.
  360. `scroll_time`::
  361. (<<time-units,time value>>)
  362. Time spent performing scroll operations.
  363. `scroll_time_in_millis`::
  364. (integer)
  365. Time in milliseconds
  366. spent performing scroll operations.
  367. `scroll_current`::
  368. (integer)
  369. Number of scroll operations currently running.
  370. `suggest_total`::
  371. (integer)
  372. Total number of suggest operations.
  373. `suggest_time`::
  374. (<<time-units,time value>>)
  375. Time spent performing suggest operations.
  376. `suggest_time_in_millis`::
  377. (integer)
  378. Time in milliseconds
  379. spent performing suggest operations.
  380. `suggest_current`::
  381. (integer)
  382. Number of suggest operations currently running.
  383. =======
  384. `merges`::
  385. (object)
  386. Contains statistics about merge operations for the node.
  387. +
  388. .Properties of `merges`
  389. [%collapsible%open]
  390. =======
  391. `current`::
  392. (integer)
  393. Number of merge operations currently running.
  394. `current_docs`::
  395. (integer)
  396. Number of document merges currently running.
  397. `current_size`::
  398. (<<byte-units,byte value>>)
  399. Memory used performing current document merges.
  400. `current_size_in_bytes`::
  401. (integer)
  402. Memory, in bytes, used performing current document merges.
  403. `total`::
  404. (integer)
  405. Total number of merge operations.
  406. `total_time`::
  407. (<<time-units,time value>>)
  408. Total time spent performing merge operations.
  409. `total_time_in_millis`::
  410. (integer)
  411. Total time in milliseconds
  412. spent performing merge operations.
  413. `total_docs`::
  414. (integer)
  415. Total number of merged documents.
  416. `total_size`::
  417. (<<byte-units,byte value>>)
  418. Total size of document merges.
  419. `total_size_in_bytes`::
  420. (integer)
  421. Total size of document merges in bytes.
  422. `total_stopped_time`::
  423. (<<time-units,time value>>)
  424. Total time spent stopping merge operations.
  425. `total_stopped_time_in_millis`::
  426. (integer)
  427. Total time in milliseconds
  428. spent stopping merge operations.
  429. `total_throttled_time`::
  430. (<<time-units,time value>>)
  431. Total time spent throttling merge operations.
  432. `total_throttled_time_in_millis`::
  433. (integer)
  434. Total time in milliseconds
  435. spent throttling merge operations.
  436. `total_auto_throttle`::
  437. (<<byte-units,byte value>>)
  438. Size of automatically throttled merge operations.
  439. `total_auto_throttle_in_bytes`::
  440. (integer)
  441. Size, in bytes, of automatically throttled merge operations.
  442. =======
  443. `refresh`::
  444. (object)
  445. Contains statistics about refresh operations for the node.
  446. +
  447. .Properties of `refresh`
  448. [%collapsible%open]
  449. =======
  450. `total`::
  451. (integer)
  452. Total number of refresh operations.
  453. `total_time`::
  454. (<<time-units,time value>>)
  455. Total time spent performing refresh operations.
  456. `total_time_in_millis`::
  457. (integer)
  458. Total time in milliseconds
  459. spent performing refresh operations.
  460. `external_total`::
  461. (integer)
  462. Total number of external refresh operations.
  463. `external_total_time`::
  464. (<<time-units,time value>>)
  465. Total time spent performing external operations.
  466. `external_total_time_in_millis`::
  467. (integer)
  468. Total time in milliseconds
  469. spent performing external operations.
  470. `listeners`::
  471. (integer)
  472. Number of refresh listeners.
  473. =======
  474. `flush`::
  475. (object)
  476. Contains statistics about flush operations for the node.
  477. +
  478. .Properties of `flush`
  479. [%collapsible%open]
  480. =======
  481. `total`::
  482. (integer)
  483. Number of flush operations.
  484. `periodic`::
  485. (integer)
  486. Number of flush periodic operations.
  487. `total_time`::
  488. (<<time-units,time value>>)
  489. Total time spent performing flush operations.
  490. `total_time_in_millis`::
  491. (integer)
  492. Total time in milliseconds
  493. spent performing flush operations.
  494. =======
  495. `warmer`::
  496. (object)
  497. Contains statistics about index warming operations for the node.
  498. +
  499. .Properties of `warmer`
  500. [%collapsible%open]
  501. =======
  502. `current`::
  503. (integer)
  504. Number of active index warmers.
  505. `total`::
  506. (integer)
  507. Total number of index warmers.
  508. `total_time`::
  509. (<<time-units,time value>>)
  510. Total time spent performing index warming operations.
  511. `total_time_in_millis`::
  512. (integer)
  513. Total time in milliseconds
  514. spent performing index warming operations.
  515. =======
  516. `query_cache`::
  517. (object)
  518. Contains statistics about the query cache across all shards assigned to the
  519. node.
  520. +
  521. .Properties of `query_cache`
  522. [%collapsible%open]
  523. =======
  524. `memory_size`::
  525. (<<byte-units,byte value>>)
  526. Total amount of memory used for the query cache across all shards assigned to
  527. the node.
  528. `memory_size_in_bytes`::
  529. (integer)
  530. Total amount of memory, in bytes, used for the query cache across all shards
  531. assigned to the node.
  532. `total_count`::
  533. (integer)
  534. Total count of hits, misses, and cached queries
  535. in the query cache.
  536. `hit_count`::
  537. (integer)
  538. Number of query cache hits.
  539. `miss_count`::
  540. (integer)
  541. Number of query cache misses.
  542. `cache_size`::
  543. (integer)
  544. Current number of cached queries.
  545. `cache_count`::
  546. (integer)
  547. Total number of all queries that have been cached.
  548. `evictions`::
  549. (integer)
  550. Number of query cache evictions.
  551. =======
  552. `fielddata`::
  553. (object)
  554. Contains statistics about the field data cache across all shards
  555. assigned to the node.
  556. +
  557. .Properties of `fielddata`
  558. [%collapsible%open]
  559. =======
  560. `memory_size`::
  561. (<<byte-units,byte value>>)
  562. Total amount of memory used for the field data cache across all shards
  563. assigned to the node.
  564. `memory_size_in_bytes`::
  565. (integer)
  566. Total amount of memory, in bytes, used for the field data cache across all
  567. shards assigned to the node.
  568. `evictions`::
  569. (integer)
  570. Number of fielddata evictions.
  571. =======
  572. `completion`::
  573. (object)
  574. Contains statistics about completions across all shards assigned to the node.
  575. +
  576. .Properties of `completion`
  577. [%collapsible%open]
  578. =======
  579. `size`::
  580. (<<byte-units,byte value>>)
  581. Total amount of memory used for completion across all shards assigned to
  582. the node.
  583. `size_in_bytes`::
  584. (integer)
  585. Total amount of memory, in bytes, used for completion across all shards assigned
  586. to the node.
  587. =======
  588. `segments`::
  589. (object)
  590. Contains statistics about segments across all shards assigned to the node.
  591. +
  592. .Properties of `segments`
  593. [%collapsible%open]
  594. =======
  595. `count`::
  596. (integer)
  597. Number of segments.
  598. `memory`::
  599. (<<byte-units,byte value>>)
  600. Total amount of memory used for segments across all shards assigned to the
  601. node.
  602. `memory_in_bytes`::
  603. (integer)
  604. Total amount of memory, in bytes, used for segments across all shards assigned
  605. to the node.
  606. `terms_memory`::
  607. (<<byte-units,byte value>>)
  608. Total amount of memory used for terms across all shards assigned to the node.
  609. `terms_memory_in_bytes`::
  610. (integer)
  611. Total amount of memory, in bytes, used for terms across all shards assigned to
  612. the node.
  613. `stored_fields_memory`::
  614. (<<byte-units,byte value>>)
  615. Total amount of memory used for stored fields across all shards assigned to
  616. the node.
  617. `stored_fields_memory_in_bytes`::
  618. (integer)
  619. Total amount of memory, in bytes, used for stored fields across all shards
  620. assigned to the node.
  621. `term_vectors_memory`::
  622. (<<byte-units,byte value>>)
  623. Total amount of memory used for term vectors across all shards assigned to
  624. the node.
  625. `term_vectors_memory_in_bytes`::
  626. (integer)
  627. Total amount of memory, in bytes, used for term vectors across all shards
  628. assigned to the node.
  629. `norms_memory`::
  630. (<<byte-units,byte value>>)
  631. Total amount of memory used for normalization factors across all shards assigned
  632. to the node.
  633. `norms_memory_in_bytes`::
  634. (integer)
  635. Total amount of memory, in bytes, used for normalization factors across all
  636. shards assigned to the node.
  637. `points_memory`::
  638. (<<byte-units,byte value>>)
  639. Total amount of memory used for points across all shards assigned to the node.
  640. `points_memory_in_bytes`::
  641. (integer)
  642. Total amount of memory, in bytes, used for points across all shards assigned to
  643. the node.
  644. `doc_values_memory`::
  645. (<<byte-units,byte value>>)
  646. Total amount of memory used for doc values across all shards assigned to
  647. the node.
  648. `doc_values_memory_in_bytes`::
  649. (integer)
  650. Total amount of memory, in bytes, used for doc values across all shards assigned
  651. to the node.
  652. `index_writer_memory`::
  653. (<<byte-units,byte value>>)
  654. Total amount of memory used by all index writers across all shards assigned to
  655. the node.
  656. `index_writer_memory_in_bytes`::
  657. (integer)
  658. Total amount of memory, in bytes, used by all index writers across all shards
  659. assigned to the node.
  660. `version_map_memory`::
  661. (<<byte-units,byte value>>)
  662. Total amount of memory used by all version maps across all shards assigned to
  663. the node.
  664. `version_map_memory_in_bytes`::
  665. (integer)
  666. Total amount of memory, in bytes, used by all version maps across all shards
  667. assigned to the node.
  668. `fixed_bit_set`::
  669. (<<byte-units,byte value>>)
  670. Total amount of memory used by fixed bit sets across all shards assigned to
  671. the node.
  672. +
  673. Fixed bit sets are used for nested object field types and
  674. type filters for <<parent-join,join>> fields.
  675. `fixed_bit_set_memory_in_bytes`::
  676. (integer)
  677. Total amount of memory, in bytes, used by fixed bit sets across all shards
  678. assigned to the node.
  679. +
  680. Fixed bit sets are used for nested object field types and
  681. type filters for <<parent-join,join>> fields.
  682. `max_unsafe_auto_id_timestamp`::
  683. (integer)
  684. Time of the most recently retried indexing request. Recorded in milliseconds
  685. since the {wikipedia}/Unix_time[Unix Epoch].
  686. `file_sizes`::
  687. (object)
  688. Contains statistics about the size of the segment file.
  689. +
  690. .Properties of `file_sizes`
  691. [%collapsible%open]
  692. ========
  693. `size`::
  694. (<<byte-units,byte value>>)
  695. Size of the segment file.
  696. `size_in_bytes`::
  697. (integer)
  698. Size, in bytes,
  699. of the segment file.
  700. `description`::
  701. (string)
  702. Description of the segment file.
  703. ========
  704. =======
  705. `translog`::
  706. (object)
  707. Contains statistics about transaction log operations for the node.
  708. +
  709. .Properties of `translog`
  710. [%collapsible%open]
  711. =======
  712. `operations`::
  713. (integer)
  714. Number of transaction log operations.
  715. `size`::
  716. (<<byte-units,byte value>>)
  717. Size of the transaction log.
  718. `size_in_bytes`::
  719. (integer)
  720. Size, in bytes, of the transaction log.
  721. `uncommitted_operations`::
  722. (integer)
  723. Number of uncommitted transaction log operations.
  724. `uncommitted_size`::
  725. (<<byte-units,byte value>>)
  726. Size of uncommitted transaction log operations.
  727. `uncommitted_size_in_bytes`::
  728. (integer)
  729. Size, in bytes, of uncommitted transaction log operations.
  730. `earliest_last_modified_age`::
  731. (integer)
  732. Earliest last modified age
  733. for the transaction log.
  734. =======
  735. `request_cache`::
  736. (object)
  737. Contains statistics about the request cache across all shards assigned to the
  738. node.
  739. +
  740. .Properties of `request_cache`
  741. [%collapsible%open]
  742. =======
  743. `memory_size`::
  744. (<<byte-units,byte value>>)
  745. Memory used by the request cache.
  746. `memory_size_in_bytes`::
  747. (integer)
  748. Memory, in bytes, used by the request cache.
  749. `evictions`::
  750. (integer)
  751. Number of request cache operations.
  752. `hit_count`::
  753. (integer)
  754. Number of request cache hits.
  755. `miss_count`::
  756. (integer)
  757. Number of request cache misses.
  758. =======
  759. `recovery`::
  760. (object)
  761. Contains statistics about recovery operations for the node.
  762. +
  763. .Properties of `recovery`
  764. [%collapsible%open]
  765. =======
  766. `current_as_source`::
  767. (integer)
  768. Number of recoveries
  769. that used an index shard as a source.
  770. `current_as_target`::
  771. (integer)
  772. Number of recoveries
  773. that used an index shard as a target.
  774. `throttle_time`::
  775. (<<time-units,time value>>)
  776. Time by which recovery operations were delayed due to throttling.
  777. `throttle_time_in_millis`::
  778. (integer)
  779. Time in milliseconds
  780. recovery operations were delayed due to throttling.
  781. =======
  782. `shard_stats`::
  783. (object)
  784. Contains statistics about all shards assigned to the node.
  785. +
  786. .Properties of `shard_stats`
  787. [%collapsible%open]
  788. =======
  789. `total_count`::
  790. (integer)
  791. The total number of shards assigned to the node.
  792. =======
  793. `mappings`::
  794. (object)
  795. Contains statistics about the mappings for the node.
  796. This is not shown for the `shards` level, since mappings may be
  797. shared across the shards of an index on a node.
  798. +
  799. .Properties of `mappings`
  800. [%collapsible%open]
  801. =======
  802. `total_count`::
  803. (integer)
  804. Number of mappings, including <<runtime,runtime>> and <<object,object>> fields.
  805. `total_estimated_overhead`::
  806. (<<byte-units,byte value>>)
  807. Estimated heap overhead of mappings on this node, which allows for 1kiB of heap for every mapped field.
  808. `total_estimated_overhead_in_bytes`::
  809. (integer)
  810. Estimated heap overhead, in bytes, of mappings on this node, which allows for 1kiB of heap for every mapped field.
  811. =======
  812. `dense_vector`::
  813. (object)
  814. Contains statistics about dense_vector across all shards assigned to the node.
  815. +
  816. .Properties of `dense_vector`
  817. [%collapsible%open]
  818. =======
  819. `value_count`::
  820. (integer)
  821. Total number of dense vector indexed across all shards assigned
  822. to the node.
  823. =======
  824. ======
  825. [[cluster-nodes-stats-api-response-body-os]]
  826. `os`::
  827. (object)
  828. Contains statistics about the operating system for the node.
  829. +
  830. .Properties of `os`
  831. [%collapsible%open]
  832. ======
  833. `timestamp`::
  834. (integer)
  835. Last time the operating system statistics were refreshed. Recorded in
  836. milliseconds since the {wikipedia}/Unix_time[Unix Epoch].
  837. `cpu`::
  838. (object)
  839. Contains statistics about CPU usage for the node.
  840. +
  841. .Properties of `cpu`
  842. [%collapsible%open]
  843. =======
  844. `percent`::
  845. (integer)
  846. Recent CPU usage for the whole system, or `-1` if not supported.
  847. `load_average`::
  848. (object)
  849. Contains statistics about load averages on the system.
  850. +
  851. .Properties of `load_average`
  852. [%collapsible%open]
  853. ========
  854. `1m`::
  855. (float)
  856. One-minute load average on the system (field is not present if one-minute load
  857. average is not available).
  858. `5m`::
  859. (float)
  860. Five-minute load average on the system (field is not present if five-minute load
  861. average is not available).
  862. `15m`::
  863. (float)
  864. Fifteen-minute load average on the system (field is not present if
  865. fifteen-minute load average is not available).
  866. ========
  867. =======
  868. `mem`::
  869. (object)
  870. Contains statistics about memory usage for the node.
  871. +
  872. .Properties of `mem`
  873. [%collapsible%open]
  874. =======
  875. `total`::
  876. (<<byte-units,byte value>>)
  877. Total amount of physical memory.
  878. `total_in_bytes`::
  879. (integer)
  880. Total amount of physical memory in bytes.
  881. `adjusted_total`::
  882. (<<byte-units,byte value>>)
  883. If the amount of physical memory has been overridden using the `es.total_memory_bytes`
  884. system property then this reports the overridden value. Otherwise it reports the same
  885. value as `total`.
  886. `adjusted_total_in_bytes`::
  887. (integer)
  888. If the amount of physical memory has been overridden using the `es.total_memory_bytes`
  889. system property then this reports the overridden value in bytes. Otherwise it reports
  890. the same value as `total_in_bytes`.
  891. `free`::
  892. (<<byte-units,byte value>>)
  893. Amount of free physical memory.
  894. `free_in_bytes`::
  895. (integer)
  896. Amount of free physical memory in bytes.
  897. `used`::
  898. (<<byte-units,byte value>>)
  899. Amount of used physical memory.
  900. `used_in_bytes`::
  901. (integer)
  902. Amount of used physical memory in bytes.
  903. `free_percent`::
  904. (integer)
  905. Percentage of free memory.
  906. `used_percent`::
  907. (integer)
  908. Percentage of used memory.
  909. =======
  910. `swap`::
  911. (object)
  912. Contains statistics about swap space for the node.
  913. +
  914. .Properties of `swap`
  915. [%collapsible%open]
  916. =======
  917. `total`::
  918. (<<byte-units,byte value>>)
  919. Total amount of swap space.
  920. `total_in_bytes`::
  921. (integer)
  922. Total amount of swap space in bytes.
  923. `free`::
  924. (<<byte-units,byte value>>)
  925. Amount of free swap space.
  926. `free_in_bytes`::
  927. (integer)
  928. Amount of free swap space in bytes.
  929. `used`::
  930. (<<byte-units,byte value>>)
  931. Amount of used swap space.
  932. `used_in_bytes`::
  933. (integer)
  934. Amount of used swap space in bytes.
  935. =======
  936. `cgroup` (Linux only)::
  937. (object)
  938. Contains cgroup statistics for the node.
  939. +
  940. NOTE: For the cgroup stats to be visible, cgroups must be compiled into the
  941. kernel, the `cpu` and `cpuacct` cgroup subsystems must be configured and stats
  942. must be readable from `/sys/fs/cgroup/cpu` and `/sys/fs/cgroup/cpuacct`.
  943. +
  944. .Properties of `cgroup`
  945. [%collapsible%open]
  946. =======
  947. `cpuacct` (Linux only)::
  948. (object)
  949. Contains statistics about `cpuacct` control group for the node.
  950. +
  951. .Properties of `cpuacct`
  952. [%collapsible%open]
  953. ========
  954. `control_group` (Linux only)::
  955. (string)
  956. The `cpuacct` control group to which the {es} process belongs.
  957. `usage_nanos` (Linux only)::
  958. (integer)
  959. The total CPU time (in nanoseconds) consumed by all tasks in the same cgroup
  960. as the {es} process.
  961. ========
  962. `cpu` (Linux only)::
  963. (object)
  964. Contains statistics about `cpu` control group for the node.
  965. +
  966. .Properties of `cpu`
  967. [%collapsible%open]
  968. ========
  969. `control_group` (Linux only)::
  970. (string)
  971. The `cpu` control group to which the {es} process belongs.
  972. `cfs_period_micros` (Linux only)::
  973. (integer)
  974. The period of time (in microseconds) for how regularly all tasks in the same
  975. cgroup as the {es} process should have their access to CPU resources
  976. reallocated.
  977. `cfs_quota_micros` (Linux only)::
  978. (integer)
  979. The total amount of time (in microseconds) for which all tasks in
  980. the same cgroup as the {es} process can run during one period
  981. `cfs_period_micros`.
  982. `stat` (Linux only)::
  983. (object)
  984. Contains CPU statistics for the node.
  985. +
  986. .Properties of `stat`
  987. [%collapsible%open]
  988. =========
  989. `number_of_elapsed_periods` (Linux only)::
  990. (integer)
  991. The number of reporting periods (as specified by
  992. `cfs_period_micros`) that have elapsed.
  993. `number_of_times_throttled` (Linux only)::
  994. (integer)
  995. The number of times all tasks in the same cgroup as the {es} process have
  996. been throttled.
  997. `time_throttled_nanos` (Linux only)::
  998. (integer)
  999. The total amount of time (in nanoseconds) for which all tasks in the same
  1000. cgroup as the {es} process have been throttled.
  1001. =========
  1002. ========
  1003. `memory` (Linux only)::
  1004. (object)
  1005. Contains statistics about the `memory` control group for the node.
  1006. +
  1007. .Properties of `memory`
  1008. [%collapsible%open]
  1009. ========
  1010. `control_group` (Linux only)::
  1011. (string)
  1012. The `memory` control group to which the {es} process belongs.
  1013. `limit_in_bytes` (Linux only)::
  1014. (string)
  1015. The maximum amount of user memory (including file cache) allowed for all
  1016. tasks in the same cgroup as the {es} process. This value can be too big to
  1017. store in a `long`, so is returned as a string so that the value returned can
  1018. exactly match what the underlying operating system interface returns. Any
  1019. value that is too large to parse into a `long` almost certainly means no
  1020. limit has been set for the cgroup.
  1021. `usage_in_bytes` (Linux only)::
  1022. (string)
  1023. The total current memory usage by processes in the cgroup (in bytes) by all
  1024. tasks in the same cgroup as the {es} process. This value is stored as a
  1025. string for consistency with `limit_in_bytes`.
  1026. ========
  1027. =======
  1028. ======
  1029. [[cluster-nodes-stats-api-response-body-process]]
  1030. `process`::
  1031. (object)
  1032. Contains process statistics for the node.
  1033. +
  1034. .Properties of `process`
  1035. [%collapsible%open]
  1036. ======
  1037. `timestamp`::
  1038. (integer)
  1039. Last time the statistics were refreshed. Recorded in milliseconds
  1040. since the {wikipedia}/Unix_time[Unix Epoch].
  1041. `open_file_descriptors`::
  1042. (integer)
  1043. Number of opened file descriptors associated with the current or
  1044. `-1` if not supported.
  1045. `max_file_descriptors`::
  1046. (integer)
  1047. Maximum number of file descriptors allowed on the system, or `-1` if not
  1048. supported.
  1049. `cpu`::
  1050. (object)
  1051. Contains CPU statistics for the node.
  1052. +
  1053. .Properties of `cpu`
  1054. [%collapsible%open]
  1055. =======
  1056. `percent`::
  1057. (integer)
  1058. CPU usage in percent, or `-1` if not known at the time the stats are
  1059. computed.
  1060. `total`::
  1061. (<<time-units,time value>>)
  1062. CPU time used by the process on which the Java virtual machine is running.
  1063. `total_in_millis`::
  1064. (integer)
  1065. CPU time (in milliseconds) used by the process on which the Java virtual
  1066. machine is running, or `-1` if not supported.
  1067. =======
  1068. `mem`::
  1069. (object)
  1070. Contains virtual memory statistics for the node.
  1071. +
  1072. .Properties of `mem`
  1073. [%collapsible%open]
  1074. =======
  1075. `total_virtual`::
  1076. (<<byte-units,byte value>>)
  1077. Size of virtual memory that is guaranteed to be available to the
  1078. running process.
  1079. `total_virtual_in_bytes`::
  1080. (integer)
  1081. Size in bytes of virtual memory that is guaranteed to be available to the
  1082. running process.
  1083. =======
  1084. ======
  1085. [[cluster-nodes-stats-api-response-body-jvm]]
  1086. `jvm`::
  1087. (object)
  1088. Contains Java Virtual Machine (JVM) statistics for the node.
  1089. +
  1090. .Properties of `jvm`
  1091. [%collapsible%open]
  1092. ======
  1093. `timestamp`::
  1094. (integer)
  1095. Last time JVM statistics were refreshed.
  1096. `uptime`::
  1097. (<<time-units,time value>>)
  1098. Human-readable JVM uptime. Only returned if the
  1099. <<_human_readable_output,`human`>> query parameter is `true`.
  1100. `uptime_in_millis`::
  1101. (integer)
  1102. JVM uptime in milliseconds.
  1103. `mem`::
  1104. (object)
  1105. Contains JVM memory usage statistics for the node.
  1106. +
  1107. .Properties of `mem`
  1108. [%collapsible%open]
  1109. =======
  1110. `heap_used`::
  1111. (<<byte-units,byte value>>)
  1112. Memory currently in use by the heap.
  1113. `heap_used_in_bytes`::
  1114. (integer)
  1115. Memory, in bytes, currently in use by the heap.
  1116. `heap_used_percent`::
  1117. (integer)
  1118. Percentage of memory currently in use by the heap.
  1119. `heap_committed`::
  1120. (<<byte-units,byte value>>)
  1121. Amount of memory available for use by the heap.
  1122. `heap_committed_in_bytes`::
  1123. (integer)
  1124. Amount of memory, in bytes, available for use by the heap.
  1125. `heap_max`::
  1126. (<<byte-units,byte value>>)
  1127. Maximum amount of memory available for use by the heap.
  1128. `heap_max_in_bytes`::
  1129. (integer)
  1130. Maximum amount of memory, in bytes, available for use by the heap.
  1131. `non_heap_used`::
  1132. (<<byte-units,byte value>>)
  1133. Non-heap memory used.
  1134. `non_heap_used_in_bytes`::
  1135. (integer)
  1136. Non-heap memory used, in bytes.
  1137. `non_heap_committed`::
  1138. (<<byte-units,byte value>>)
  1139. Amount of non-heap memory available.
  1140. `non_heap_committed_in_bytes`::
  1141. (integer)
  1142. Amount of non-heap memory available, in bytes.
  1143. `pools`::
  1144. (object)
  1145. Contains statistics about heap memory usage for the node.
  1146. +
  1147. .Properties of `pools`
  1148. [%collapsible%open]
  1149. ========
  1150. `young`::
  1151. (object)
  1152. Contains statistics about memory usage by the young generation heap for the
  1153. node.
  1154. +
  1155. .Properties of `young`
  1156. [%collapsible%open]
  1157. =========
  1158. `used`::
  1159. (<<byte-units,byte value>>)
  1160. Memory used by the young generation heap.
  1161. `used_in_bytes`::
  1162. (integer)
  1163. Memory, in bytes, used by the young generation heap.
  1164. `max`::
  1165. (<<byte-units,byte value>>)
  1166. Maximum amount of memory available for use by the young generation heap.
  1167. `max_in_bytes`::
  1168. (integer)
  1169. Maximum amount of memory, in bytes, available for use by the young generation
  1170. heap.
  1171. `peak_used`::
  1172. (<<byte-units,byte value>>)
  1173. Largest amount of memory historically used by the young generation heap.
  1174. `peak_used_in_bytes`::
  1175. (integer)
  1176. Largest amount of memory, in bytes, historically used by the young generation
  1177. heap.
  1178. `peak_max`::
  1179. (<<byte-units,byte value>>)
  1180. Largest amount of memory historically used by the young generation heap.
  1181. `peak_max_in_bytes`::
  1182. (integer)
  1183. Largest amount of memory, in bytes, historically used by the young generation
  1184. heap.
  1185. =========
  1186. `survivor`::
  1187. (object)
  1188. Contains statistics about memory usage by the survivor space for the node.
  1189. +
  1190. .Properties of `survivor`
  1191. [%collapsible%open]
  1192. =========
  1193. `used`::
  1194. (<<byte-units,byte value>>)
  1195. Memory used by the survivor space.
  1196. `used_in_bytes`::
  1197. (integer)
  1198. Memory, in bytes, used by the survivor space.
  1199. `max`::
  1200. (<<byte-units,byte value>>)
  1201. Maximum amount of memory available for use by the survivor space.
  1202. `max_in_bytes`::
  1203. (integer)
  1204. Maximum amount of memory, in bytes, available for use by the survivor space.
  1205. `peak_used`::
  1206. (<<byte-units,byte value>>)
  1207. Largest amount of memory historically used by the survivor space.
  1208. `peak_used_in_bytes`::
  1209. (integer)
  1210. Largest amount of memory, in bytes, historically used by the survivor space.
  1211. `peak_max`::
  1212. (<<byte-units,byte value>>)
  1213. Largest amount of memory historically used by the survivor space.
  1214. `peak_max_in_bytes`::
  1215. (integer)
  1216. Largest amount of memory, in bytes, historically used by the survivor space.
  1217. =========
  1218. `old`::
  1219. (object)
  1220. Contains statistics about memory usage by the old generation heap for the node.
  1221. +
  1222. .Properties of `old`
  1223. [%collapsible%open]
  1224. =========
  1225. `used`::
  1226. (<<byte-units,byte value>>)
  1227. Memory used by the old generation heap.
  1228. `used_in_bytes`::
  1229. (integer)
  1230. Memory, in bytes, used by the old generation heap.
  1231. `max`::
  1232. (<<byte-units,byte value>>)
  1233. Maximum amount of memory available for use by the old generation heap.
  1234. `max_in_bytes`::
  1235. (integer)
  1236. Maximum amount of memory, in bytes, available for use by the old generation
  1237. heap.
  1238. `peak_used`::
  1239. (<<byte-units,byte value>>)
  1240. Largest amount of memory historically used by the old generation heap.
  1241. `peak_used_in_bytes`::
  1242. (integer)
  1243. Largest amount of memory, in bytes, historically used by the old generation
  1244. heap.
  1245. `peak_max`::
  1246. (<<byte-units,byte value>>)
  1247. Highest memory limit historically available for use by the old generation heap.
  1248. `peak_max_in_bytes`::
  1249. (integer)
  1250. Highest memory limit, in bytes, historically available for use by the old
  1251. generation heap.
  1252. =========
  1253. ========
  1254. =======
  1255. `threads`::
  1256. (object)
  1257. Contains statistics about JVM thread usage for the node.
  1258. +
  1259. .Properties of `threads`
  1260. [%collapsible%open]
  1261. =======
  1262. `count`::
  1263. (integer)
  1264. Number of active threads in use by JVM.
  1265. `peak_count`::
  1266. (integer)
  1267. Highest number of threads used by JVM.
  1268. =======
  1269. `gc`::
  1270. (object)
  1271. Contains statistics about JVM garbage collectors for the node.
  1272. +
  1273. .Properties of `gc`
  1274. [%collapsible%open]
  1275. =======
  1276. `collectors`::
  1277. (object)
  1278. Contains statistics about JVM garbage collectors for the node.
  1279. +
  1280. .Properties of `collectors`
  1281. [%collapsible%open]
  1282. ========
  1283. `young`::
  1284. (object)
  1285. Contains statistics about JVM garbage collectors that collect young generation
  1286. objects for the node.
  1287. +
  1288. .Properties of `young`
  1289. [%collapsible%open]
  1290. =========
  1291. `collection_count`::
  1292. (integer)
  1293. Number of JVM garbage collectors that collect young generation objects.
  1294. `collection_time`::
  1295. (<<time-units,time value>>)
  1296. Total time spent by JVM collecting young generation objects.
  1297. `collection_time_in_millis`::
  1298. (integer)
  1299. Total time in milliseconds spent by JVM collecting young generation objects.
  1300. =========
  1301. `old`::
  1302. (object)
  1303. Contains statistics about JVM garbage collectors that collect old generation
  1304. objects for the node.
  1305. +
  1306. .Properties of `old`
  1307. [%collapsible%open]
  1308. =========
  1309. `collection_count`::
  1310. (integer)
  1311. Number of JVM garbage collectors that collect old generation objects.
  1312. `collection_time`::
  1313. (<<time-units,time value>>)
  1314. Total time spent by JVM collecting old generation objects.
  1315. `collection_time_in_millis`::
  1316. (integer)
  1317. Total time in milliseconds spent by JVM collecting old generation objects.
  1318. =========
  1319. ========
  1320. =======
  1321. `buffer_pools`::
  1322. (object)
  1323. Contains statistics about JVM buffer pools for the node.
  1324. +
  1325. .Properties of `buffer_pools`
  1326. [%collapsible%open]
  1327. =======
  1328. `mapped`::
  1329. (object)
  1330. Contains statistics about mapped JVM buffer pools for the node.
  1331. +
  1332. .Properties of `mapped`
  1333. [%collapsible%open]
  1334. ========
  1335. `count`::
  1336. (integer)
  1337. Number of mapped buffer pools.
  1338. `used`::
  1339. (<<byte-units,byte value>>)
  1340. Size of mapped buffer pools.
  1341. `used_in_bytes`::
  1342. (integer)
  1343. Size, in bytes, of mapped buffer pools.
  1344. `total_capacity`::
  1345. (<<byte-units,byte value>>)
  1346. Total capacity of mapped buffer pools.
  1347. `total_capacity_in_bytes`::
  1348. (integer)
  1349. Total capacity, in bytes, of mapped buffer pools.
  1350. ========
  1351. `direct`::
  1352. (object)
  1353. Contains statistics about direct JVM buffer pools for the node.
  1354. +
  1355. .Properties of `direct`
  1356. [%collapsible%open]
  1357. ========
  1358. `count`::
  1359. (integer)
  1360. Number of direct buffer pools.
  1361. `used`::
  1362. (<<byte-units,byte value>>)
  1363. Size of direct buffer pools.
  1364. `used_in_bytes`::
  1365. (integer)
  1366. Size, in bytes, of direct buffer pools.
  1367. `total_capacity`::
  1368. (<<byte-units,byte value>>)
  1369. Total capacity of direct buffer pools.
  1370. `total_capacity_in_bytes`::
  1371. (integer)
  1372. Total capacity, in bytes, of direct buffer pools.
  1373. ========
  1374. =======
  1375. `classes`::
  1376. (object)
  1377. Contains statistics about classes loaded by JVM for the node.
  1378. +
  1379. .Properties of `classes`
  1380. [%collapsible%open]
  1381. =======
  1382. `current_loaded_count`::
  1383. (integer)
  1384. Number of classes currently loaded by JVM.
  1385. `total_loaded_count`::
  1386. (integer)
  1387. Total number of classes loaded since the JVM started.
  1388. `total_unloaded_count`::
  1389. (integer)
  1390. Total number of classes unloaded since the JVM started.
  1391. =======
  1392. ======
  1393. [[cluster-nodes-stats-api-response-body-repositories]]
  1394. `repositories`::
  1395. (object)
  1396. Statistics about snapshot repositories.
  1397. +
  1398. .Properties of `repositories`
  1399. [%collapsible%open]
  1400. ======
  1401. `<repository_name>`::
  1402. (object)
  1403. Contains repository throttling statistics for the node.
  1404. +
  1405. .Properties of `<repository_name>`
  1406. [%collapsible%open]
  1407. =======
  1408. `total_read_throttled_time_nanos`::
  1409. (integer)
  1410. Total number of nanos which node had to wait during recovery.
  1411. `total_write_throttled_time_nanos`::
  1412. (integer)
  1413. Total number of nanos which node had to wait during snapshotting.
  1414. =======
  1415. ======
  1416. [[cluster-nodes-stats-api-response-body-threadpool]]
  1417. `thread_pool`::
  1418. (object)
  1419. Contains thread pool statistics for the node
  1420. +
  1421. .Properties of `thread_pool`
  1422. [%collapsible%open]
  1423. ======
  1424. `<thread_pool_name>`::
  1425. (object)
  1426. Contains statistics about the thread pool for the node.
  1427. +
  1428. .Properties of `<thread_pool_name>`
  1429. [%collapsible%open]
  1430. =======
  1431. `threads`::
  1432. (integer)
  1433. Number of threads in the thread pool.
  1434. `queue`::
  1435. (integer)
  1436. Number of tasks in queue for the thread pool.
  1437. `active`::
  1438. (integer)
  1439. Number of active threads in the thread pool.
  1440. `rejected`::
  1441. (integer)
  1442. Number of tasks rejected by the thread pool executor.
  1443. `largest`::
  1444. (integer)
  1445. Highest number of active threads in the thread pool.
  1446. `completed`::
  1447. (integer)
  1448. Number of tasks completed by the thread pool executor.
  1449. =======
  1450. ======
  1451. [[cluster-nodes-stats-api-response-body-fs]]
  1452. `fs`::
  1453. (object)
  1454. Contains file store statistics for the node.
  1455. +
  1456. .Properties of `fs`
  1457. [%collapsible%open]
  1458. ======
  1459. `timestamp`::
  1460. (integer)
  1461. Last time the file stores statistics were refreshed. Recorded in
  1462. milliseconds since the {wikipedia}/Unix_time[Unix Epoch].
  1463. `total`::
  1464. (object)
  1465. Contains statistics for all file stores of the node.
  1466. +
  1467. .Properties of `total`
  1468. [%collapsible%open]
  1469. =======
  1470. `total`::
  1471. (<<byte-units,byte value>>)
  1472. Total size of all file stores.
  1473. `total_in_bytes`::
  1474. (integer)
  1475. Total size (in bytes) of all file stores.
  1476. `free`::
  1477. (<<byte-units,byte value>>)
  1478. Total unallocated disk space in all file stores.
  1479. `free_in_bytes`::
  1480. (integer)
  1481. Total number of unallocated bytes in all file stores.
  1482. `available`::
  1483. (<<byte-units,byte value>>)
  1484. Total disk space available to this Java virtual machine on all file
  1485. stores. Depending on OS or process level restrictions (e.g. XFS quotas), this might appear
  1486. less than `free`. This is the actual amount of free disk
  1487. space the {es} node can utilise.
  1488. `available_in_bytes`::
  1489. (integer)
  1490. Total number of bytes available to this Java virtual machine on all file
  1491. stores. Depending on OS or process level restrictions (e.g. XFS quotas), this might appear
  1492. less than `free_in_bytes`. This is the actual amount of free disk
  1493. space the {es} node can utilise.
  1494. =======
  1495. [[cluster-nodes-stats-fs-data]]
  1496. `data`::
  1497. (array of objects)
  1498. List of all file stores.
  1499. +
  1500. .Properties of `data`
  1501. [%collapsible%open]
  1502. =======
  1503. `path`::
  1504. (string)
  1505. Path to the file store.
  1506. `mount`::
  1507. (string)
  1508. Mount point of the file store (ex: /dev/sda2).
  1509. `type`::
  1510. (string)
  1511. Type of the file store (ex: ext4).
  1512. `total`::
  1513. (<<byte-units,byte value>>)
  1514. Total size of the file store.
  1515. `total_in_bytes`::
  1516. (integer)
  1517. Total size (in bytes) of the file store.
  1518. `free`::
  1519. (<<byte-units,byte value>>)
  1520. Total amount of unallocated disk space in the file store.
  1521. `free_in_bytes`::
  1522. (integer)
  1523. Total number of unallocated bytes in the file store.
  1524. `available`::
  1525. (<<byte-units,byte value>>)
  1526. Total amount of disk space available to this Java virtual machine on this file
  1527. store.
  1528. `available_in_bytes`::
  1529. (integer)
  1530. Total number of bytes available to this Java virtual machine on this file
  1531. store.
  1532. =======
  1533. `io_stats` (Linux only)::
  1534. (objects)
  1535. Contains I/O statistics for the node.
  1536. +
  1537. .Properties of `io_stats`
  1538. [%collapsible%open]
  1539. =======
  1540. `devices` (Linux only)::
  1541. (array)
  1542. Array of disk metrics for each device that is backing an {es} data path.
  1543. These disk metrics are probed periodically and averages between the last
  1544. probe and the current probe are computed.
  1545. +
  1546. .Properties of `devices`
  1547. [%collapsible%open]
  1548. ========
  1549. `device_name` (Linux only)::
  1550. (string)
  1551. The Linux device name.
  1552. `operations` (Linux only)::
  1553. (integer)
  1554. The total number of read and write operations for the device completed since
  1555. starting {es}.
  1556. `read_operations` (Linux only)::
  1557. (integer)
  1558. The total number of read operations for the device completed since starting
  1559. {es}.
  1560. `write_operations` (Linux only)::
  1561. (integer)
  1562. The total number of write operations for the device completed since starting
  1563. {es}.
  1564. `read_kilobytes` (Linux only)::
  1565. (integer)
  1566. The total number of kilobytes read for the device since starting {es}.
  1567. `write_kilobytes` (Linux only)::
  1568. (integer)
  1569. The total number of kilobytes written for the device since starting {es}.
  1570. `io_time_in_millis` (Linux only)::
  1571. (integer)
  1572. The total time in milliseconds spent performing I/O operations for the device
  1573. since starting {es}.
  1574. ========
  1575. `total` (Linux only)::
  1576. (object)
  1577. The sum of the disk metrics for all devices that back an {es} data path.
  1578. +
  1579. .Properties of `total`
  1580. [%collapsible%open]
  1581. ========
  1582. `operations` (Linux only)::
  1583. (integer)
  1584. The total number of read and write operations across all devices used by
  1585. {es} completed since starting {es}.
  1586. `read_operations` (Linux only)::
  1587. (integer)
  1588. The total number of read operations for across all devices used by {es}
  1589. completed since starting {es}.
  1590. `write_operations` (Linux only)::
  1591. (integer)
  1592. The total number of write operations across all devices used by {es}
  1593. completed since starting {es}.
  1594. `read_kilobytes` (Linux only)::
  1595. (integer)
  1596. The total number of kilobytes read across all devices used by {es} since
  1597. starting {es}.
  1598. `write_kilobytes` (Linux only)::
  1599. (integer)
  1600. The total number of kilobytes written across all devices used by {es} since
  1601. starting {es}.
  1602. `io_time_in_millis` (Linux only)::
  1603. (integer)
  1604. The total time in milliseconds spent performing I/O operations across all
  1605. devices used by {es} since starting {es}.
  1606. ========
  1607. =======
  1608. ======
  1609. [[cluster-nodes-stats-api-response-body-transport]]
  1610. `transport`::
  1611. (object)
  1612. Contains transport statistics for the node.
  1613. +
  1614. .Properties of `transport`
  1615. [%collapsible%open]
  1616. ======
  1617. `server_open`::
  1618. (integer)
  1619. Current number of inbound TCP connections used for internal communication between nodes.
  1620. `total_outbound_connections`::
  1621. (integer)
  1622. The cumulative number of outbound transport connections that this node has
  1623. opened since it started. Each transport connection may comprise multiple TCP
  1624. connections but is only counted once in this statistic. Transport connections
  1625. are typically <<long-lived-connections,long-lived>> so this statistic should
  1626. remain constant in a stable cluster.
  1627. `rx_count`::
  1628. (integer)
  1629. Total number of RX (receive) packets received by the node during internal
  1630. cluster communication.
  1631. `rx_size`::
  1632. (<<byte-units,byte value>>)
  1633. Size of RX packets received by the node during internal cluster communication.
  1634. `rx_size_in_bytes`::
  1635. (integer)
  1636. Size, in bytes, of RX packets received by the node during internal cluster
  1637. communication.
  1638. `tx_count`::
  1639. (integer)
  1640. Total number of TX (transmit) packets sent by the node during internal cluster
  1641. communication.
  1642. `tx_size`::
  1643. (<<byte-units,byte value>>)
  1644. Size of TX packets sent by the node during internal cluster communication.
  1645. `tx_size_in_bytes`::
  1646. (integer)
  1647. Size, in bytes, of TX packets sent by the node during internal cluster
  1648. communication.
  1649. `inbound_handling_time_histogram`::
  1650. (array)
  1651. The distribution of the time spent handling each inbound message on a transport
  1652. thread, represented as a histogram.
  1653. +
  1654. .Properties of `inbound_handling_time_histogram`
  1655. [%collapsible]
  1656. =======
  1657. `ge`::
  1658. (string)
  1659. The inclusive lower bound of the bucket as a human-readable string. May be
  1660. omitted on the first bucket if this bucket has no lower bound.
  1661. `ge_millis`::
  1662. (integer)
  1663. The inclusive lower bound of the bucket in milliseconds. May be omitted on the
  1664. first bucket if this bucket has no lower bound.
  1665. `lt`::
  1666. (string)
  1667. The exclusive upper bound of the bucket as a human-readable string. May be
  1668. omitted on the last bucket if this bucket has no upper bound.
  1669. `lt_millis`::
  1670. (integer)
  1671. The exclusive upper bound of the bucket in milliseconds. May be omitted on the
  1672. last bucket if this bucket has no upper bound.
  1673. `count`::
  1674. (integer)
  1675. The number of times a transport thread took a period of time within the bounds
  1676. of this bucket to handle an inbound message.
  1677. =======
  1678. `outbound_handling_time_histogram`::
  1679. (array)
  1680. The distribution of the time spent sending each outbound transport message on a
  1681. transport thread, represented as a histogram.
  1682. +
  1683. .Properties of `outbound_handling_time_histogram`
  1684. [%collapsible]
  1685. =======
  1686. `ge`::
  1687. (string)
  1688. The inclusive lower bound of the bucket as a human-readable string. May be
  1689. omitted on the first bucket if this bucket has no lower bound.
  1690. `ge_millis`::
  1691. (integer)
  1692. The inclusive lower bound of the bucket in milliseconds. May be omitted on the
  1693. first bucket if this bucket has no lower bound.
  1694. `lt`::
  1695. (string)
  1696. The exclusive upper bound of the bucket as a human-readable string. May be
  1697. omitted on the last bucket if this bucket has no upper bound.
  1698. `lt_millis`::
  1699. (integer)
  1700. The exclusive upper bound of the bucket in milliseconds. May be omitted on the
  1701. last bucket if this bucket has no upper bound.
  1702. `count`::
  1703. (integer)
  1704. The number of times a transport thread took a period of time within the bounds
  1705. of this bucket to send a transport message.
  1706. =======
  1707. `actions`::
  1708. (object)
  1709. An action-by-action breakdown of the transport traffic handled by this node,
  1710. showing the total amount of traffic and a histogram of message sizes for
  1711. incoming requests and outgoing responses.
  1712. +
  1713. .Properties of `actions.*.requests` and `actions.*.responses`
  1714. [%collapsible]
  1715. =======
  1716. `count`::
  1717. (integer)
  1718. The total number of requests received, or responses sent, for the current
  1719. action.
  1720. `total_size`::
  1721. (<<byte-units,byte value>>)
  1722. The total size (as a human-readable string) of all requests received, or
  1723. responses sent, for the current action.
  1724. `total_size_in_bytes`::
  1725. (integer)
  1726. The total size in bytes of all requests received, or responses sent, for the
  1727. current action.
  1728. `histogram`::
  1729. (array)
  1730. A breakdown of the distribution of sizes of requests received, or responses
  1731. sent, for the current action.
  1732. +
  1733. .Properties of `histogram`
  1734. [%collapsible]
  1735. ========
  1736. `ge`::
  1737. (<<byte-units,byte value>>)
  1738. The inclusive lower bound of the bucket as a human-readable string. May be
  1739. omitted on the first bucket if this bucket has no lower bound.
  1740. `ge_bytes`::
  1741. (integer)
  1742. The inclusive lower bound of the bucket in bytes. May be omitted on the first
  1743. bucket if this bucket has no lower bound.
  1744. `lt`::
  1745. (<<byte-units,byte value>>)
  1746. The exclusive upper bound of the bucket as a human-readable string. May be
  1747. omitted on the last bucket if this bucket has no upper bound.
  1748. `lt_bytes`::
  1749. (integer)
  1750. The exclusive upper bound of the bucket in bytes. May be omitted on the last
  1751. bucket if this bucket has no upper bound.
  1752. `count`::
  1753. (integer)
  1754. The number of times a request was received, or a response sent, with a size
  1755. within the bounds of this bucket.
  1756. ========
  1757. =======
  1758. ======
  1759. [[cluster-nodes-stats-api-response-body-http]]
  1760. `http`::
  1761. (object)
  1762. Contains http statistics for the node.
  1763. +
  1764. .Properties of `http`
  1765. [%collapsible%open]
  1766. ======
  1767. `current_open`::
  1768. (integer)
  1769. Current number of open HTTP connections for the node.
  1770. `total_opened`::
  1771. (integer)
  1772. Total number of HTTP connections opened for the node.
  1773. `clients`::
  1774. (array of objects)
  1775. Information on current and recently-closed HTTP client connections.
  1776. Clients that have been closed longer than the <<http-settings,http.client_stats.closed_channels.max_age>>
  1777. setting will not be represented here.
  1778. +
  1779. .Properties of `clients`
  1780. [%collapsible%open]
  1781. =======
  1782. `id`::
  1783. (integer)
  1784. Unique ID for the HTTP client.
  1785. `agent`::
  1786. (string)
  1787. Reported agent for the HTTP client. If unavailable, this property is not
  1788. included in the response.
  1789. `local_address`::
  1790. (string)
  1791. Local address for the HTTP connection.
  1792. `remote_address`::
  1793. (string)
  1794. Remote address for the HTTP connection.
  1795. `last_uri`::
  1796. (string)
  1797. The URI of the client's most recent request.
  1798. `x_forwarded_for`::
  1799. (string)
  1800. Value from the client's `x-forwarded-for` HTTP header. If unavailable, this
  1801. property is not included in the response.
  1802. `x_opaque_id`::
  1803. (string)
  1804. Value from the client's `x-opaque-id` HTTP header. If unavailable, this property
  1805. is not included in the response.
  1806. `opened_time_millis`::
  1807. (integer)
  1808. Time at which the client opened the connection.
  1809. `closed_time_millis`::
  1810. (integer)
  1811. Time at which the client closed the connection if the connection is closed.
  1812. `last_request_time_millis`::
  1813. (integer)
  1814. Time of the most recent request from this client.
  1815. `request_count`::
  1816. (integer)
  1817. Number of requests from this client.
  1818. `request_size_bytes`::
  1819. (integer)
  1820. Cumulative size in bytes of all requests from this client.
  1821. =======
  1822. ======
  1823. [[cluster-nodes-stats-api-response-body-breakers]]
  1824. `breakers`::
  1825. (object)
  1826. Contains circuit breaker statistics for the node.
  1827. +
  1828. .Properties of `breakers`
  1829. [%collapsible%open]
  1830. ======
  1831. `<circuit_breaker_name>`::
  1832. (object)
  1833. Contains statistics for the circuit breaker.
  1834. +
  1835. .Properties of `<circuit_breaker_name>`
  1836. [%collapsible%open]
  1837. =======
  1838. `limit_size_in_bytes`::
  1839. (integer)
  1840. Memory limit, in bytes, for the circuit breaker.
  1841. `limit_size`::
  1842. (<<byte-units,byte value>>)
  1843. Memory limit for the circuit breaker.
  1844. `estimated_size_in_bytes`::
  1845. (integer)
  1846. Estimated memory used, in bytes, for the operation.
  1847. `estimated_size`::
  1848. (<<byte-units,byte value>>)
  1849. Estimated memory used for the operation.
  1850. `overhead`::
  1851. (float)
  1852. A constant that all estimates for the circuit breaker are multiplied with to
  1853. calculate a final estimate.
  1854. `tripped`::
  1855. (integer)
  1856. Total number of times the circuit breaker has been triggered and prevented an
  1857. out of memory error.
  1858. =======
  1859. ======
  1860. [[cluster-nodes-stats-api-response-body-script]]
  1861. `script`::
  1862. (object)
  1863. Contains script statistics for the node.
  1864. +
  1865. .Properties of `script`
  1866. [%collapsible%open]
  1867. ======
  1868. `compilations`::
  1869. (integer)
  1870. Total number of inline script compilations performed by the node.
  1871. `compilations_history`::
  1872. (object)
  1873. Contains this recent history of script compilations
  1874. .Properties of `compilations_history`
  1875. [%collapsible%open]
  1876. =======
  1877. `5m`::
  1878. (long)
  1879. The number of script compilations in the last five minutes.
  1880. `15m`::
  1881. (long)
  1882. The number of script compilations in the last fifteen minutes.
  1883. `24h`::
  1884. (long)
  1885. The number of script compilations in the last twenty-four hours.
  1886. =======
  1887. `cache_evictions`::
  1888. (integer)
  1889. Total number of times the script cache has evicted old data.
  1890. `cache_evictions_history`::
  1891. (object)
  1892. Contains this recent history of script cache evictions
  1893. .Properties of `cache_evictions`
  1894. [%collapsible%open]
  1895. =======
  1896. `5m`::
  1897. (long)
  1898. The number of script cache evictions in the last five minutes.
  1899. `15m`::
  1900. (long)
  1901. The number of script cache evictions in the last fifteen minutes.
  1902. `24h`::
  1903. (long)
  1904. The number of script cache evictions in the last twenty-four hours.
  1905. =======
  1906. `compilation_limit_triggered`::
  1907. (integer)
  1908. Total number of times the <<script-compilation-circuit-breaker,script
  1909. compilation>> circuit breaker has limited inline script compilations.
  1910. ======
  1911. [[cluster-nodes-stats-api-response-body-discovery]]
  1912. `discovery`::
  1913. (object)
  1914. Contains node discovery statistics for the node.
  1915. +
  1916. .Properties of `discovery`
  1917. [%collapsible%open]
  1918. ======
  1919. `cluster_state_queue`::
  1920. (object)
  1921. Contains statistics for the cluster state queue of the node.
  1922. +
  1923. .Properties of `cluster_state_queue`
  1924. [%collapsible%open]
  1925. =======
  1926. `total`::
  1927. (integer)
  1928. Total number of cluster states in queue.
  1929. `pending`::
  1930. (integer)
  1931. Number of pending cluster states in queue.
  1932. `committed`::
  1933. (integer)
  1934. Number of committed cluster states in queue.
  1935. =======
  1936. `published_cluster_states`::
  1937. (object)
  1938. Contains statistics for the published cluster states of the node.
  1939. +
  1940. .Properties of `published_cluster_states`
  1941. [%collapsible%open]
  1942. =======
  1943. `full_states`::
  1944. (integer)
  1945. Number of published cluster states.
  1946. `incompatible_diffs`::
  1947. (integer)
  1948. Number of incompatible differences between published cluster states.
  1949. `compatible_diffs`::
  1950. (integer)
  1951. Number of compatible differences between published cluster states.
  1952. =======
  1953. `cluster_state_update`::
  1954. (object)
  1955. Contains low-level statistics about how long various activities took during
  1956. cluster state updates while the node was the elected master. Omitted if the
  1957. node is not master-eligible. Every field whose name ends in `_time` within this
  1958. object is also represented as a raw number of milliseconds in a field whose
  1959. name ends in `_time_millis`. The human-readable fields with a `_time` suffix
  1960. are only returned if requested with the `?human=true` query parameter.
  1961. +
  1962. .Properties of `cluster_state_update`
  1963. [%collapsible]
  1964. =======
  1965. `unchanged`::
  1966. (object)
  1967. Contains statistics about cluster state update attempts that did not change the
  1968. cluster state.
  1969. +
  1970. .Properties of `unchanged`
  1971. [%collapsible]
  1972. ========
  1973. `count`::
  1974. (long)
  1975. The number of cluster state update attempts that did not change the cluster
  1976. state since the node started.
  1977. `computation_time`::
  1978. (<<time-units,time value>>)
  1979. The cumulative amount of time spent computing no-op cluster state updates since
  1980. the node started.
  1981. `notification_time`::
  1982. (<<time-units,time value>>)
  1983. The cumulative amount of time spent notifying listeners of a no-op cluster
  1984. state update since the node started.
  1985. ========
  1986. `success`::
  1987. (object)
  1988. Contains statistics about cluster state update attempts that successfully
  1989. changed the cluster state.
  1990. +
  1991. .Properties of `success`
  1992. [%collapsible]
  1993. ========
  1994. `count`::
  1995. (long)
  1996. The number of cluster state update attempts that successfully changed the
  1997. cluster state since the node started.
  1998. `computation_time`::
  1999. (<<time-units,time value>>)
  2000. The cumulative amount of time spent computing cluster state updates that were
  2001. ultimately successful since the node started.
  2002. `publication_time`::
  2003. (<<time-units,time value>>)
  2004. The cumulative amount of time spent publishing cluster state updates which
  2005. ultimately succeeded, which includes everything from the start of the
  2006. publication (i.e. just after the computation of the new cluster state) until
  2007. the publication has finished and the master node is ready to start processing
  2008. the next state update. This includes the time measured by
  2009. `context_construction_time`, `commit_time`, `completion_time` and
  2010. `master_apply_time`.
  2011. `context_construction_time`::
  2012. (<<time-units,time value>>)
  2013. The cumulative amount of time spent constructing a _publication context_ since
  2014. the node started for publications that ultimately succeeded. This statistic
  2015. includes the time spent computing the difference between the current and new
  2016. cluster state preparing a serialized representation of this difference.
  2017. `commit_time`::
  2018. (<<time-units,time value>>)
  2019. The cumulative amount of time spent waiting for a successful cluster state
  2020. update to _commit_, which measures the time from the start of each publication
  2021. until a majority of the master-eligible nodes have written the state to disk
  2022. and confirmed the write to the elected master.
  2023. `completion_time`::
  2024. (<<time-units,time value>>)
  2025. The cumulative amount of time spent waiting for a successful cluster state
  2026. update to _complete_, which measures the time from the start of each
  2027. publication until all the other nodes have notified the elected master that
  2028. they have applied the cluster state.
  2029. `master_apply_time`::
  2030. (<<time-units,time value>>)
  2031. The cumulative amount of time spent successfully applying cluster state updates
  2032. on the elected master since the node started.
  2033. `notification_time`::
  2034. (<<time-units,time value>>)
  2035. The cumulative amount of time spent notifying listeners of a successful cluster
  2036. state update since the node started.
  2037. ========
  2038. `failure`::
  2039. (object)
  2040. Contains statistics about cluster state update attempts that did not
  2041. successfully change the cluster state, typically because a new master node was
  2042. elected before completion.
  2043. +
  2044. .Properties of `failure`
  2045. [%collapsible]
  2046. ========
  2047. `count`::
  2048. (long)
  2049. The number of cluster state update attempts that failed to change the cluster
  2050. state since the node started.
  2051. `computation_time`::
  2052. (<<time-units,time value>>)
  2053. The cumulative amount of time spent computing cluster state updates that were
  2054. ultimately unsuccessful since the node started.
  2055. `publication_time`::
  2056. (<<time-units,time value>>)
  2057. The cumulative amount of time spent publishing cluster state updates which
  2058. ultimately failed, which includes everything from the start of the
  2059. publication (i.e. just after the computation of the new cluster state) until
  2060. the publication has finished and the master node is ready to start processing
  2061. the next state update. This includes the time measured by
  2062. `context_construction_time`, `commit_time`, `completion_time` and
  2063. `master_apply_time`.
  2064. `context_construction_time`::
  2065. (<<time-units,time value>>)
  2066. The cumulative amount of time spent constructing a _publication context_ since
  2067. the node started for publications that ultimately failed. This statistic
  2068. includes the time spent computing the difference between the current and new
  2069. cluster state preparing a serialized representation of this difference.
  2070. `commit_time`::
  2071. (<<time-units,time value>>)
  2072. The cumulative amount of time spent waiting for an unsuccessful cluster state
  2073. update to _commit_, which measures the time from the start of each publication
  2074. until a majority of the master-eligible nodes have written the state to disk
  2075. and confirmed the write to the elected master.
  2076. `completion_time`::
  2077. (<<time-units,time value>>)
  2078. The cumulative amount of time spent waiting for an unsuccessful cluster state
  2079. update to _complete_, which measures the time from the start of each
  2080. publication until all the other nodes have notified the elected master that
  2081. they have applied the cluster state.
  2082. `master_apply_time`::
  2083. (<<time-units,time value>>)
  2084. The cumulative amount of time spent unsuccessfully applying cluster state
  2085. updates on the elected master since the node started.
  2086. `notification_time`::
  2087. (<<time-units,time value>>)
  2088. The cumulative amount of time spent notifying listeners of a failed cluster
  2089. state update since the node started.
  2090. ========
  2091. =======
  2092. ======
  2093. [[cluster-nodes-stats-api-response-body-ingest]]
  2094. `ingest`::
  2095. (object)
  2096. Contains ingest statistics for the node.
  2097. +
  2098. .Properties of `ingest`
  2099. [%collapsible%open]
  2100. ======
  2101. `total`::
  2102. (object)
  2103. Contains statistics about ingest operations for the node.
  2104. +
  2105. .Properties of `total`
  2106. [%collapsible%open]
  2107. =======
  2108. `count`::
  2109. (integer)
  2110. Total number of documents ingested during the lifetime of this node.
  2111. `time`::
  2112. (<<time-units,time value>>)
  2113. Total time spent preprocessing ingest documents during the lifetime of this
  2114. node.
  2115. `time_in_millis`::
  2116. (integer)
  2117. Total time, in milliseconds, spent preprocessing ingest documents during the
  2118. lifetime of this node.
  2119. `current`::
  2120. (integer)
  2121. Total number of documents currently being ingested.
  2122. `failed`::
  2123. (integer)
  2124. Total number of failed ingest operations during the lifetime of this node.
  2125. =======
  2126. `pipelines`::
  2127. (object)
  2128. Contains statistics about ingest pipelines for the node.
  2129. +
  2130. .Properties of `pipelines`
  2131. [%collapsible%open]
  2132. =======
  2133. `<pipeline_id>`::
  2134. (object)
  2135. Contains statistics about the ingest pipeline.
  2136. +
  2137. .Properties of `<pipeline_id>`
  2138. [%collapsible%open]
  2139. ========
  2140. `count`::
  2141. (integer)
  2142. Number of documents preprocessed by the ingest pipeline.
  2143. `time`::
  2144. (<<time-units,time value>>)
  2145. Total time spent preprocessing documents in the ingest pipeline.
  2146. `time_in_millis`::
  2147. (integer)
  2148. Total time, in milliseconds, spent preprocessing documents in the ingest
  2149. pipeline.
  2150. `failed`::
  2151. (integer)
  2152. Total number of failed operations for the ingest pipeline.
  2153. `processors`::
  2154. (array of objects)
  2155. Contains statistics for the ingest processors for the ingest pipeline.
  2156. +
  2157. .Properties of `processors`
  2158. [%collapsible%open]
  2159. =========
  2160. `<processor>`::
  2161. (object)
  2162. Contains statistics for the ingest processor.
  2163. +
  2164. .Properties of `<processor>`
  2165. [%collapsible%open]
  2166. ==========
  2167. `count`::
  2168. (integer)
  2169. Number of documents transformed by the processor.
  2170. `time`::
  2171. (<<time-units,time value>>)
  2172. Time spent by the processor transforming documents.
  2173. `time_in_millis`::
  2174. (integer)
  2175. Time, in milliseconds, spent by the processor transforming documents.
  2176. `current`::
  2177. (integer)
  2178. Number of documents currently being transformed by the processor.
  2179. `failed`::
  2180. (integer)
  2181. Number of failed operations for the processor.
  2182. ==========
  2183. =========
  2184. ========
  2185. =======
  2186. ======
  2187. [[cluster-nodes-stats-api-response-body-indexing-pressure]]
  2188. `indexing_pressure`::
  2189. (object)
  2190. Contains <<index-modules-indexing-pressure,indexing pressure>> statistics for the node.
  2191. +
  2192. .Properties of `indexing_pressure`
  2193. [%collapsible%open]
  2194. ======
  2195. `memory`::
  2196. (object)
  2197. Contains statistics for memory consumption from indexing load.
  2198. +
  2199. .Properties of `<memory>`
  2200. [%collapsible%open]
  2201. =======
  2202. `current`::
  2203. (object)
  2204. Contains statistics for current indexing load.
  2205. +
  2206. .Properties of `<current>`
  2207. [%collapsible%open]
  2208. ========
  2209. `combined_coordinating_and_primary`::
  2210. (<<byte-units,byte value>>)
  2211. Memory consumed by indexing requests in the coordinating or primary stage. This
  2212. value is not the sum of coordinating and primary as a node can reuse the
  2213. coordinating memory if the primary stage is executed locally.
  2214. `combined_coordinating_and_primary_in_bytes`::
  2215. (integer)
  2216. Memory consumed, in bytes, by indexing requests in the coordinating or primary
  2217. stage. This value is not the sum of coordinating and primary as a node can
  2218. reuse the coordinating memory if the primary stage is executed locally.
  2219. `coordinating`::
  2220. (<<byte-units,byte value>>)
  2221. Memory consumed by indexing requests in the coordinating stage.
  2222. `coordinating_in_bytes`::
  2223. (integer)
  2224. Memory consumed, in bytes, by indexing requests in the coordinating stage.
  2225. `primary`::
  2226. (<<byte-units,byte value>>)
  2227. Memory consumed by indexing requests in the primary stage.
  2228. `primary_in_bytes`::
  2229. (integer)
  2230. Memory consumed, in bytes, by indexing requests in the primary stage.
  2231. `replica`::
  2232. (<<byte-units,byte value>>)
  2233. Memory consumed by indexing requests in the replica stage.
  2234. `replica_in_bytes`::
  2235. (integer)
  2236. Memory consumed, in bytes, by indexing requests in the replica stage.
  2237. `all`::
  2238. (<<byte-units,byte value>>)
  2239. Memory consumed by indexing requests in the coordinating, primary, or replica stage.
  2240. `all_in_bytes`::
  2241. (integer)
  2242. Memory consumed, in bytes, by indexing requests in the coordinating, primary,
  2243. or replica stage.
  2244. ========
  2245. `total`::
  2246. (object)
  2247. Contains statistics for the cumulative indexing load since the node started.
  2248. +
  2249. .Properties of `<total>`
  2250. [%collapsible%open]
  2251. ========
  2252. `combined_coordinating_and_primary`::
  2253. (<<byte-units,byte value>>)
  2254. Memory consumed by indexing requests in the coordinating or primary stage. This
  2255. value is not the sum of coordinating and primary as a node can reuse the
  2256. coordinating memory if the primary stage is executed locally.
  2257. `combined_coordinating_and_primary_in_bytes`::
  2258. (integer)
  2259. Memory consumed, in bytes, by indexing requests in the coordinating or primary
  2260. stage. This value is not the sum of coordinating and primary as a node can
  2261. reuse the coordinating memory if the primary stage is executed locally.
  2262. `coordinating`::
  2263. (<<byte-units,byte value>>)
  2264. Memory consumed by indexing requests in the coordinating stage.
  2265. `coordinating_in_bytes`::
  2266. (integer)
  2267. Memory consumed, in bytes, by indexing requests in the coordinating stage.
  2268. `primary`::
  2269. (<<byte-units,byte value>>)
  2270. Memory consumed by indexing requests in the primary stage.
  2271. `primary_in_bytes`::
  2272. (integer)
  2273. Memory consumed, in bytes, by indexing requests in the primary stage.
  2274. `replica`::
  2275. (<<byte-units,byte value>>)
  2276. Memory consumed by indexing requests in the replica stage.
  2277. `replica_in_bytes`::
  2278. (integer)
  2279. Memory consumed, in bytes, by indexing requests in the replica stage.
  2280. `all`::
  2281. (<<byte-units,byte value>>)
  2282. Memory consumed by indexing requests in the coordinating, primary, or replica stage.
  2283. `all_in_bytes`::
  2284. (integer)
  2285. Memory consumed, in bytes, by indexing requests in the coordinating, primary,
  2286. or replica stage.
  2287. `coordinating_rejections`::
  2288. (integer)
  2289. Number of indexing requests rejected in the coordinating stage.
  2290. `primary_rejections`::
  2291. (integer)
  2292. Number of indexing requests rejected in the primary stage.
  2293. `replica_rejections`::
  2294. (integer)
  2295. Number of indexing requests rejected in the replica stage.
  2296. ========
  2297. `limit`::
  2298. (<<byte-units,byte value>>)
  2299. Configured memory limit for the indexing requests. Replica requests have an
  2300. automatic limit that is 1.5x this value.
  2301. `limit_in_bytes`::
  2302. (integer)
  2303. Configured memory limit, in bytes, for the indexing requests. Replica requests
  2304. have an automatic limit that is 1.5x this value.
  2305. =======
  2306. ======
  2307. [[cluster-nodes-stats-api-response-body-adaptive-selection]]
  2308. `adaptive_selection`::
  2309. (object)
  2310. Contains adaptive selection statistics for the node.
  2311. +
  2312. .Properties of `adaptive_selection`
  2313. [%collapsible%open]
  2314. ======
  2315. `outgoing_searches`::
  2316. (integer)
  2317. The number of outstanding search requests from the node these stats are for
  2318. to the keyed node.
  2319. `avg_queue_size`::
  2320. (integer)
  2321. The exponentially weighted moving average queue size of search requests on
  2322. the keyed node.
  2323. `avg_service_time`::
  2324. (<<time-units,time value>>)
  2325. The exponentially weighted moving average service time of search requests on
  2326. the keyed node.
  2327. `avg_service_time_ns`::
  2328. (integer)
  2329. The exponentially weighted moving average service time, in nanoseconds, of
  2330. search requests on the keyed node.
  2331. `avg_response_time`::
  2332. (<<time-units,time value>>)
  2333. The exponentially weighted moving average response time of search requests
  2334. on the keyed node.
  2335. `avg_response_time_ns`::
  2336. (integer)
  2337. The exponentially weighted moving average response time, in nanoseconds, of
  2338. search requests on the keyed node.
  2339. `rank`::
  2340. (string)
  2341. The rank of this node; used for shard selection when routing search
  2342. requests.
  2343. ======
  2344. =====
  2345. ====
  2346. [[cluster-nodes-stats-api-example]]
  2347. ==== {api-examples-title}
  2348. [source,console,id=nodes-stats-limit]
  2349. ----
  2350. # return just indices
  2351. GET /_nodes/stats/indices
  2352. # return just os and process
  2353. GET /_nodes/stats/os,process
  2354. # return just process for node with IP address 10.0.0.1
  2355. GET /_nodes/10.0.0.1/stats/process
  2356. ----
  2357. All stats can be explicitly requested via `/_nodes/stats/_all` or
  2358. `/_nodes/stats?metric=_all`.
  2359. You can get information about indices stats on `node`, `indices`, or `shards`
  2360. level.
  2361. [source,console,id=nodes-stats-indices]
  2362. ----
  2363. # Fielddata summarized by node
  2364. GET /_nodes/stats/indices/fielddata?fields=field1,field2
  2365. # Fielddata summarized by node and index
  2366. GET /_nodes/stats/indices/fielddata?level=indices&fields=field1,field2
  2367. # Fielddata summarized by node, index, and shard
  2368. GET /_nodes/stats/indices/fielddata?level=shards&fields=field1,field2
  2369. # You can use wildcards for field names
  2370. GET /_nodes/stats/indices/fielddata?fields=field*
  2371. ----
  2372. You can get statistics about search groups for searches executed
  2373. on this node.
  2374. [source,console,id=nodes-stats-groups]
  2375. ----
  2376. # All groups with all stats
  2377. GET /_nodes/stats?groups=_all
  2378. # Some groups from just the indices stats
  2379. GET /_nodes/stats/indices?groups=foo,bar
  2380. ----
  2381. [[cluster-nodes-stats-ingest-ex]]
  2382. ===== Retrieve ingest statistics only
  2383. To return only ingest-related node statistics, set the `<metric>` path
  2384. parameter to `ingest` and use the
  2385. <<common-options-response-filtering,`filter_path`>> query parameter.
  2386. [source,console,id=nodes-stats-filter-path]
  2387. ----
  2388. GET /_nodes/stats/ingest?filter_path=nodes.*.ingest
  2389. ----
  2390. You can use the `metric` and `filter_path` query parameters to get the same
  2391. response.
  2392. [source,console,id=nodes-stats-metric-filter-path]
  2393. ----
  2394. GET /_nodes/stats?metric=ingest&filter_path=nodes.*.ingest
  2395. ----
  2396. To further refine the response, change the `filter_path` value.
  2397. For example, the following request only returns ingest pipeline statistics.
  2398. [source,console,id=nodes-stats-metric-filter-path-refined]
  2399. ----
  2400. GET /_nodes/stats?metric=ingest&filter_path=nodes.*.ingest.pipelines
  2401. ----