cluster-info.asciidoc 9.3 KB

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