nodes-stats.asciidoc 31 KB

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