cluster-info.asciidoc 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  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_in_bytes`::
  165. (Optional, integer)
  166. Total number of bytes of all documents ingested by the pipeline.
  167. This field is only present on pipelines which are the first to process a document.
  168. Thus, it is not present on pipelines which only serve as a final pipeline after a default pipeline, a pipeline run after
  169. a reroute processor, or pipelines in pipeline processors.
  170. `produced_as_first_pipeline_in_bytes`::
  171. (Optional, integer)
  172. Total number of bytes of all documents produced by the pipeline.
  173. This field is only present on pipelines which are the first to process a document.
  174. Thus, it is not present on pipelines which only serve as a final pipeline after a default pipeline, a pipeline run after
  175. a reroute processor, or pipelines in pipeline processors.
  176. In situations where there are subsequent pipelines, the value represents the size of the document after all pipelines
  177. have run.
  178. `processors`::
  179. (array of objects)
  180. Contains information for the ingest processors for the ingest pipeline.
  181. +
  182. .Properties of `processors`
  183. [%collapsible%open]
  184. =========
  185. `<processor>`::
  186. (object)
  187. Contains information for the ingest processor.
  188. +
  189. .Properties of `<processor>`
  190. [%collapsible%open]
  191. ==========
  192. `count`::
  193. (integer)
  194. Number of documents transformed by the processor.
  195. `time`::
  196. (<<time-units,time value>>)
  197. Time spent by the processor transforming documents.
  198. `time_in_millis`::
  199. (integer)
  200. Time, in milliseconds, spent by the processor transforming documents.
  201. `current`::
  202. (integer)
  203. Number of documents currently being transformed by the processor.
  204. `failed`::
  205. (integer)
  206. Number of failed operations for the processor.
  207. ==========
  208. =========
  209. ========
  210. =======
  211. ======
  212. [[cluster-info-api-response-body-threadpool]]
  213. `thread_pool`::
  214. (object)
  215. Contains information about the thread pools of the cluster.
  216. +
  217. .Properties of `thread_pool`
  218. [%collapsible%open]
  219. ======
  220. `<thread_pool_name>`::
  221. (object)
  222. Contains information about the thread pool of the cluster with name `<thread_pool_name>`.
  223. +
  224. .Properties of `<thread_pool_name>`
  225. [%collapsible%open]
  226. =======
  227. `threads`::
  228. (integer)
  229. Number of threads in the thread pool.
  230. `queue`::
  231. (integer)
  232. Number of tasks in queue for the thread pool.
  233. `active`::
  234. (integer)
  235. Number of active threads in the thread pool.
  236. `rejected`::
  237. (integer)
  238. Number of tasks rejected by the thread pool executor.
  239. `largest`::
  240. (integer)
  241. Highest number of active threads in the thread pool.
  242. `completed`::
  243. (integer)
  244. Number of tasks completed by the thread pool executor.
  245. =======
  246. ======
  247. [[cluster-info-api-response-body-script]]
  248. `script`::
  249. (object)
  250. Contains script statistics of the cluster.
  251. +
  252. .Properties of `script`
  253. [%collapsible%open]
  254. ======
  255. `compilations`::
  256. (integer)
  257. Total number of inline script compilations performed by the cluster.
  258. `compilations_history`::
  259. (object)
  260. Contains the recent history of script compilations.
  261. .Properties of `compilations_history`
  262. [%collapsible%open]
  263. =======
  264. `5m`::
  265. (long)
  266. The number of script compilations in the last five minutes.
  267. `15m`::
  268. (long)
  269. The number of script compilations in the last fifteen minutes.
  270. `24h`::
  271. (long)
  272. The number of script compilations in the last twenty-four hours.
  273. =======
  274. `cache_evictions`::
  275. (integer)
  276. Total number of times the script cache has evicted old data.
  277. `cache_evictions_history`::
  278. (object)
  279. Contains the recent history of script cache evictions.
  280. .Properties of `cache_evictions`
  281. [%collapsible%open]
  282. =======
  283. `5m`::
  284. (long)
  285. The number of script cache evictions in the last five minutes.
  286. `15m`::
  287. (long)
  288. The number of script cache evictions in the last fifteen minutes.
  289. `24h`::
  290. (long)
  291. The number of script cache evictions in the last twenty-four hours.
  292. =======
  293. `compilation_limit_triggered`::
  294. (integer)
  295. Total number of times the <<script-compilation-circuit-breaker,script
  296. compilation>> circuit breaker has limited inline script compilations.
  297. ======
  298. [[cluster-info-api-example]]
  299. ==== {api-examples-title}
  300. [source,console]
  301. ----
  302. # returns all stats info of the cluster
  303. GET /_info/_all
  304. # returns the http info of the cluster
  305. GET /_info/http
  306. # returns the http info of the cluster
  307. GET /_info/ingest
  308. # returns the thread_pool info of the cluster
  309. GET /_info/thread_pool
  310. # returns the script info of the cluster
  311. GET /_info/script
  312. # returns the http and ingest info of the cluster
  313. GET /_info/http,ingest
  314. ----