cluster-info.asciidoc 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  1. [[cluster-info]]
  2. === Cluster Info API
  3. experimental::[]
  4. ++++
  5. <titleabbrev>Cluster Info</titleabbrev>
  6. ++++
  7. .New API reference
  8. [sidebar]
  9. --
  10. For the most up-to-date API details, refer to {api-es}/group/endpoint-cluster[Cluster APIs].
  11. --
  12. Returns cluster information.
  13. [[cluster-info-api-request]]
  14. ==== {api-request-title}
  15. `GET /_info/<target>` +
  16. [[cluster-info-api-prereqs]]
  17. ==== {api-prereq-title}
  18. * If the {es} {security-features} are enabled, you must have the `monitor` or
  19. `manage` <<privileges-list-cluster,cluster privilege>> to use this API.
  20. [[cluster-info-api-desc]]
  21. ==== {api-description-title}
  22. You can use the Cluster Info API to retrieve information of a cluster.
  23. [[cluster-info-api-path-params]]
  24. ==== {api-path-parms-title}
  25. `<target>`::
  26. (String) Limits the information returned to the specific `target`.
  27. A comma-separated list of the following options:
  28. +
  29. --
  30. `_all`::
  31. All the information available. Can not be mixed with other targets.
  32. `http`::
  33. HTTP connection information.
  34. `ingest`::
  35. Ingest information.
  36. `thread_pool`::
  37. Statistics about each thread pool, including current size, queue size and rejected tasks.
  38. `script`::
  39. Contains script statistics of the cluster.
  40. --
  41. [role="child_attributes"]
  42. [[cluster-info-api-response-body]]
  43. ==== {api-response-body-title}
  44. `cluster_name`::
  45. (string)
  46. Name of the cluster. Based on the <<cluster-name>> setting.
  47. [[cluster-info-api-response-body-http]]
  48. `http`::
  49. (object)
  50. Contains http information for the cluster.
  51. +
  52. .Properties of `http`
  53. [%collapsible%open]
  54. ======
  55. `current_open`::
  56. (integer)
  57. Current number of open HTTP connections for the cluster.
  58. `total_opened`::
  59. (integer)
  60. Total number of HTTP connections opened for the cluster.
  61. `clients`::
  62. (array of objects)
  63. Information on current and recently-closed HTTP client connections.
  64. Clients that have been closed longer than the <<http-settings,http.client_stats.closed_channels.max_age>>
  65. setting will not be represented here.
  66. +
  67. .Properties of `clients`
  68. [%collapsible%open]
  69. =======
  70. `id`::
  71. (integer)
  72. Unique ID for the HTTP client.
  73. `agent`::
  74. (string)
  75. Reported agent for the HTTP client. If unavailable, this property is not
  76. included in the response.
  77. `local_address`::
  78. (string)
  79. Local address for the HTTP connection.
  80. `remote_address`::
  81. (string)
  82. Remote address for the HTTP connection.
  83. `last_uri`::
  84. (string)
  85. The URI of the client's most recent request.
  86. `x_forwarded_for`::
  87. (string)
  88. Value from the client's `x-forwarded-for` HTTP header. If unavailable, this
  89. property is not included in the response.
  90. `x_opaque_id`::
  91. (string)
  92. Value from the client's `x-opaque-id` HTTP header. If unavailable, this property
  93. is not included in the response.
  94. `opened_time_millis`::
  95. (integer)
  96. Time at which the client opened the connection.
  97. `closed_time_millis`::
  98. (integer)
  99. Time at which the client closed the connection if the connection is closed.
  100. `last_request_time_millis`::
  101. (integer)
  102. Time of the most recent request from this client.
  103. `request_count`::
  104. (integer)
  105. Number of requests from this client.
  106. `request_size_bytes`::
  107. (integer)
  108. Cumulative size in bytes of all requests from this client.
  109. =======
  110. ======
  111. [[cluster-info-api-response-body-ingest]]
  112. `ingest`::
  113. (object)
  114. Contains ingest information for the cluster.
  115. +
  116. .Properties of `ingest`
  117. [%collapsible%open]
  118. ======
  119. `total`::
  120. (object)
  121. Contains information about ingest operations for the cluster.
  122. +
  123. .Properties of `total`
  124. [%collapsible%open]
  125. =======
  126. `count`::
  127. (integer)
  128. Total number of documents ingested across the cluster.
  129. `time`::
  130. (<<time-units,time value>>)
  131. Total time spent preprocessing ingest documents across the cluster.
  132. `time_in_millis`::
  133. (integer)
  134. Total time, in milliseconds, spent preprocessing ingest documents across the cluster.
  135. `current`::
  136. (integer)
  137. Total number of documents currently being ingested.
  138. `failed`::
  139. (integer)
  140. Total number of failed ingest operations across the cluster.
  141. =======
  142. `pipelines`::
  143. (object)
  144. Contains information about ingest pipelines for the cluster.
  145. +
  146. .Properties of `pipelines`
  147. [%collapsible%open]
  148. =======
  149. `<pipeline_id>`::
  150. (object)
  151. Contains information about the ingest pipeline.
  152. +
  153. .Properties of `<pipeline_id>`
  154. [%collapsible%open]
  155. ========
  156. `count`::
  157. (integer)
  158. Number of documents preprocessed by the ingest pipeline.
  159. `time`::
  160. (<<time-units,time value>>)
  161. Total time spent preprocessing documents in the ingest pipeline.
  162. `time_in_millis`::
  163. (integer)
  164. Total time, in milliseconds, spent preprocessing documents in the ingest
  165. pipeline.
  166. `failed`::
  167. (integer)
  168. Total number of failed operations for the ingest pipeline.
  169. `ingested_as_first_pipeline`::
  170. (<<byte-units,byte value>>)
  171. Total ingested size of all documents which were first processed by this pipeline.
  172. A document is not added to the stat value for this pipeline if it is a final pipeline after a default pipeline, a pipeline
  173. run after a reroute processor, or is within a pipeline processor.
  174. Instead, the document size is added to the stat value of the pipeline which initially ingested the document.
  175. `ingested_as_first_pipeline_in_bytes`::
  176. (integer)
  177. Total ingested size, in bytes, of all documents which were first processed by this pipeline.
  178. A document is not added to the stat value for this pipeline if it is a final pipeline after a default pipeline, a pipeline
  179. run after a reroute processor, or is within a pipeline processor.
  180. Instead, the document size is added to the stat value of the pipeline which initially ingested the document.
  181. `produced_as_first_pipeline`::
  182. (<<byte-units,byte value>>)
  183. Total produced size of all documents which were first processed by this pipeline.
  184. A document is not added to the stat value for this pipeline if it is a final pipeline after a default pipeline, a pipeline
  185. run after a reroute processor, or is within a pipeline processor.
  186. Instead, the document size is added to the stat value of the pipeline which initially ingested the document.
  187. `produced_as_first_pipeline_in_bytes`::
  188. (integer)
  189. Total produced size, in bytes, of all documents which were first processed by this pipeline.
  190. A document is not added to the stat value for this pipeline if it is a final pipeline after a default pipeline, a pipeline
  191. run after a reroute processor, or is within a pipeline processor.
  192. Instead, the document size is added to the stat value of the pipeline which initially ingested the document.
  193. `processors`::
  194. (array of objects)
  195. Contains information for the ingest processors for the ingest pipeline.
  196. +
  197. .Properties of `processors`
  198. [%collapsible%open]
  199. =========
  200. `<processor>`::
  201. (object)
  202. Contains information for the ingest processor.
  203. +
  204. .Properties of `<processor>`
  205. [%collapsible%open]
  206. ==========
  207. `count`::
  208. (integer)
  209. Number of documents transformed by the processor.
  210. `time`::
  211. (<<time-units,time value>>)
  212. Time spent by the processor transforming documents.
  213. `time_in_millis`::
  214. (integer)
  215. Time, in milliseconds, spent by the processor transforming documents.
  216. `current`::
  217. (integer)
  218. Number of documents currently being transformed by the processor.
  219. `failed`::
  220. (integer)
  221. Number of failed operations for the processor.
  222. ==========
  223. =========
  224. ========
  225. =======
  226. ======
  227. [[cluster-info-api-response-body-threadpool]]
  228. `thread_pool`::
  229. (object)
  230. Contains information about the thread pools of the cluster.
  231. +
  232. .Properties of `thread_pool`
  233. [%collapsible%open]
  234. ======
  235. `<thread_pool_name>`::
  236. (object)
  237. Contains information about the thread pool of the cluster with name `<thread_pool_name>`.
  238. +
  239. .Properties of `<thread_pool_name>`
  240. [%collapsible%open]
  241. =======
  242. `threads`::
  243. (integer)
  244. Number of threads in the thread pool.
  245. `queue`::
  246. (integer)
  247. Number of tasks in queue for the thread pool.
  248. `active`::
  249. (integer)
  250. Number of active threads in the thread pool.
  251. `rejected`::
  252. (integer)
  253. Number of tasks rejected by the thread pool executor.
  254. `largest`::
  255. (integer)
  256. Highest number of active threads in the thread pool.
  257. `completed`::
  258. (integer)
  259. Number of tasks completed by the thread pool executor.
  260. =======
  261. ======
  262. [[cluster-info-api-response-body-script]]
  263. `script`::
  264. (object)
  265. Contains script statistics of the cluster.
  266. +
  267. .Properties of `script`
  268. [%collapsible%open]
  269. ======
  270. `compilations`::
  271. (integer)
  272. Total number of inline script compilations performed by the cluster.
  273. `compilations_history`::
  274. (object)
  275. Contains the recent history of script compilations.
  276. .Properties of `compilations_history`
  277. [%collapsible%open]
  278. =======
  279. `5m`::
  280. (long)
  281. The number of script compilations in the last five minutes.
  282. `15m`::
  283. (long)
  284. The number of script compilations in the last fifteen minutes.
  285. `24h`::
  286. (long)
  287. The number of script compilations in the last twenty-four hours.
  288. =======
  289. `cache_evictions`::
  290. (integer)
  291. Total number of times the script cache has evicted old data.
  292. `cache_evictions_history`::
  293. (object)
  294. Contains the recent history of script cache evictions.
  295. .Properties of `cache_evictions`
  296. [%collapsible%open]
  297. =======
  298. `5m`::
  299. (long)
  300. The number of script cache evictions in the last five minutes.
  301. `15m`::
  302. (long)
  303. The number of script cache evictions in the last fifteen minutes.
  304. `24h`::
  305. (long)
  306. The number of script cache evictions in the last twenty-four hours.
  307. =======
  308. `compilation_limit_triggered`::
  309. (integer)
  310. Total number of times the <<script-compilation-circuit-breaker,script
  311. compilation>> circuit breaker has limited inline script compilations.
  312. ======
  313. [[cluster-info-api-example]]
  314. ==== {api-examples-title}
  315. [source,console]
  316. ----
  317. # returns all stats info of the cluster
  318. GET /_info/_all
  319. # returns the http info of the cluster
  320. GET /_info/http
  321. # returns the http info of the cluster
  322. GET /_info/ingest
  323. # returns the thread_pool info of the cluster
  324. GET /_info/thread_pool
  325. # returns the script info of the cluster
  326. GET /_info/script
  327. # returns the http and ingest info of the cluster
  328. GET /_info/http,ingest
  329. ----