cluster-info.asciidoc 7.6 KB

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