nodes-stats.asciidoc 48 KB

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