cluster-info.asciidoc 7.6 KB

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