2017-06-28 04:42:11 +08:00
|
|
|
[role="xpack"]
|
|
|
|
[[info-api]]
|
|
|
|
== Info API
|
|
|
|
|
2019-07-19 07:10:22 +08:00
|
|
|
Provides general information about the installed {xpack} features.
|
2017-08-29 06:34:32 +08:00
|
|
|
|
2019-07-19 07:10:22 +08:00
|
|
|
[discrete]
|
|
|
|
[[info-api-request]]
|
|
|
|
=== {api-request-title}
|
2017-08-29 06:34:32 +08:00
|
|
|
|
|
|
|
`GET /_xpack`
|
|
|
|
|
2021-01-27 22:06:06 +08:00
|
|
|
[discrete]
|
|
|
|
[[info-api-prereqs]]
|
|
|
|
=== {api-prereq-title}
|
|
|
|
|
|
|
|
* If the {es} {security-features} are enabled, you must have the `monitor` or
|
|
|
|
`manage` <<privileges-list-cluster,cluster privilege>> to use this API.
|
|
|
|
|
2019-07-19 07:10:22 +08:00
|
|
|
[discrete]
|
|
|
|
[[info-api-desc]]
|
|
|
|
=== {api-description-title}
|
2017-08-29 06:34:32 +08:00
|
|
|
|
|
|
|
The information provided by this API includes:
|
2017-06-28 04:42:11 +08:00
|
|
|
|
|
|
|
* Build Information - including the build number and timestamp.
|
|
|
|
* License Information - basic information about the currently installed license.
|
|
|
|
* Features Information - The features that are currently enabled and available
|
|
|
|
under the current license.
|
|
|
|
|
2019-07-19 07:10:22 +08:00
|
|
|
[discrete]
|
|
|
|
[[info-api-path-params]]
|
|
|
|
=== {api-path-parms-title}
|
2017-08-29 06:34:32 +08:00
|
|
|
|
|
|
|
`categories`::
|
2019-07-19 07:10:22 +08:00
|
|
|
(Optional, list) A comma-separated list of the information categories to
|
|
|
|
include in the response. For example, `build,license,features`.
|
2017-08-29 06:34:32 +08:00
|
|
|
|
|
|
|
`human`::
|
2020-10-29 21:04:43 +08:00
|
|
|
(Optional, Boolean) Defines whether additional human-readable information is
|
2019-07-19 07:10:22 +08:00
|
|
|
included in the response. In particular, it adds descriptions and a tag line.
|
|
|
|
The default value is `true`.
|
2017-08-29 06:34:32 +08:00
|
|
|
|
2019-07-19 07:10:22 +08:00
|
|
|
[discrete]
|
2020-02-21 01:25:57 +08:00
|
|
|
[[info-api-example]]
|
2019-07-19 07:10:22 +08:00
|
|
|
=== {api-examples-title}
|
2017-08-29 06:34:32 +08:00
|
|
|
|
2017-06-28 04:42:11 +08:00
|
|
|
The following example queries the info API:
|
|
|
|
|
2019-09-09 22:45:37 +08:00
|
|
|
[source,console]
|
2017-06-28 04:42:11 +08:00
|
|
|
------------------------------------------------------------
|
|
|
|
GET /_xpack
|
|
|
|
------------------------------------------------------------
|
|
|
|
|
|
|
|
Example response:
|
2019-09-07 02:05:36 +08:00
|
|
|
|
|
|
|
[source,console-result]
|
2017-06-28 04:42:11 +08:00
|
|
|
------------------------------------------------------------
|
|
|
|
{
|
|
|
|
"build" : {
|
|
|
|
"hash" : "2798b1a3ce779b3611bb53a0082d4d741e4d3168",
|
|
|
|
"date" : "2015-04-07T13:34:42Z"
|
|
|
|
},
|
|
|
|
"license" : {
|
2018-06-20 01:33:57 +08:00
|
|
|
"uid" : "893361dc-9749-4997-93cb-xxx",
|
2018-10-21 18:23:42 +08:00
|
|
|
"type" : "trial",
|
|
|
|
"mode" : "trial",
|
|
|
|
"status" : "active",
|
|
|
|
"expiry_date_in_millis" : 1542665112332
|
2017-06-28 04:42:11 +08:00
|
|
|
},
|
|
|
|
"features" : {
|
2019-01-30 14:58:26 +08:00
|
|
|
"ccr" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2020-11-11 01:31:59 +08:00
|
|
|
"aggregate_metric" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2019-08-29 22:34:17 +08:00
|
|
|
"analytics" : {
|
2019-08-26 22:43:24 +08:00
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2022-02-16 15:31:41 +08:00
|
|
|
"archive" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2019-10-17 01:30:27 +08:00
|
|
|
"enrich" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2019-07-17 20:02:29 +08:00
|
|
|
"frozen_indices" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2017-06-28 04:42:11 +08:00
|
|
|
"graph" : {
|
2018-10-21 18:23:42 +08:00
|
|
|
"available" : true,
|
2017-06-28 04:42:11 +08:00
|
|
|
"enabled" : true
|
|
|
|
},
|
2018-08-31 15:29:44 +08:00
|
|
|
"ilm" : {
|
2018-04-26 03:23:21 +08:00
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
2018-04-26 08:38:17 +08:00
|
|
|
},
|
2017-06-28 04:42:11 +08:00
|
|
|
"logstash" : {
|
2018-10-21 18:23:42 +08:00
|
|
|
"available" : true,
|
2017-06-28 04:42:11 +08:00
|
|
|
"enabled" : true
|
|
|
|
},
|
|
|
|
"ml" : {
|
2018-10-21 18:23:42 +08:00
|
|
|
"available" : true,
|
2019-06-19 23:57:56 +08:00
|
|
|
"enabled" : true
|
2017-06-28 04:42:11 +08:00
|
|
|
},
|
|
|
|
"monitoring" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2018-02-24 06:10:37 +08:00
|
|
|
"rollup": {
|
|
|
|
"available": true,
|
|
|
|
"enabled": true
|
|
|
|
},
|
2020-07-07 16:41:42 +08:00
|
|
|
"searchable_snapshots" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2017-06-28 04:42:11 +08:00
|
|
|
"security" : {
|
2018-10-21 18:23:42 +08:00
|
|
|
"available" : true,
|
|
|
|
"enabled" : false
|
2017-06-28 04:42:11 +08:00
|
|
|
},
|
2019-10-16 23:00:15 +08:00
|
|
|
"slm" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2019-07-18 05:18:31 +08:00
|
|
|
"spatial" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2020-02-08 05:00:26 +08:00
|
|
|
"eql" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2018-11-26 13:11:43 +08:00
|
|
|
"sql" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2019-09-16 01:59:21 +08:00
|
|
|
"transform" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2019-06-25 23:29:30 +08:00
|
|
|
"voting_only" : {
|
|
|
|
"available" : true,
|
|
|
|
"enabled" : true
|
|
|
|
},
|
2017-06-28 04:42:11 +08:00
|
|
|
"watcher" : {
|
2018-10-21 18:23:42 +08:00
|
|
|
"available" : true,
|
2017-06-28 04:42:11 +08:00
|
|
|
"enabled" : true
|
2020-07-14 02:12:22 +08:00
|
|
|
},
|
|
|
|
"data_streams" : {
|
|
|
|
"available" : true,
|
2021-09-20 18:08:26 +08:00
|
|
|
"enabled" : true
|
Add telemetry for data tiers (#63031)
This commit adds telemetry for our data tier formalization. This telemetry helps determine the
topology of the cluster with regard to the content, hot, warm, & cold tiers/roles.
An example of the telemetry looks like:
```
GET /_xpack/usage?human
{
...
"data_tiers" : {
"available" : true,
"enabled" : true,
"data_warm" : {
...
},
"data_cold" : {
...
},
"data_content" : {
"node_count" : 1,
"index_count" : 6,
"total_shard_count" : 6,
"primary_shard_count" : 6,
"doc_count" : 71,
"total_size" : "59.6kb",
"total_size_bytes" : 61110,
"primary_size" : "59.6kb",
"primary_size_bytes" : 61110,
"primary_shard_size_avg" : "9.9kb",
"primary_shard_size_avg_bytes" : 10185,
"primary_shard_size_median" : "8kb",
"primary_shard_size_median_bytes" : 8254,
"primary_shard_size_mad" : "7.2kb",
"primary_shard_size_mad_bytes" : 7391
},
"data_hot" : {
...
}
}
}
```
The fields are as follows:
- node_count :: number of nodes with this tier/role
- index_count :: number of indices on this tier
- total_shard_count :: total number of shards for all nodes in this tier
- primary_shard_count :: number of primary shards for all nodes in this tier
- doc_count :: number of documents for all nodes in this tier
- total_size_bytes :: total number of bytes for all shards for all nodes in this tier
- primary_size_bytes :: number of bytes for all primary shards on all nodes in this tier
- primary_shard_size_avg_bytes :: average shard size for primary shard in this tier
- primary_shard_size_median_bytes :: median shard size for primary shard in this tier
- primary_shard_size_mad_bytes :: [median absolute deviation](https://en.wikipedia.org/wiki/Median_absolute_deviation) of shard size for primary shard in this tier
Relates to #60848
2020-10-01 22:35:10 +08:00
|
|
|
},
|
|
|
|
"data_tiers" : {
|
|
|
|
"available" : true,
|
2021-09-20 18:08:26 +08:00
|
|
|
"enabled" : true
|
2017-06-28 04:42:11 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tagline" : "You know, for X"
|
|
|
|
}
|
|
|
|
------------------------------------------------------------
|
|
|
|
// TESTRESPONSE[s/"hash" : "2798b1a3ce779b3611bb53a0082d4d741e4d3168",/"hash" : "$body.build.hash",/]
|
|
|
|
// TESTRESPONSE[s/"date" : "2015-04-07T13:34:42Z"/"date" : "$body.build.date"/]
|
2018-06-20 01:33:57 +08:00
|
|
|
// TESTRESPONSE[s/"uid" : "893361dc-9749-4997-93cb-xxx",/"uid": "$body.license.uid",/]
|
2018-10-21 18:23:42 +08:00
|
|
|
// TESTRESPONSE[s/"expiry_date_in_millis" : 1542665112332/"expiry_date_in_millis" : "$body.license.expiry_date_in_millis"/]
|
2018-06-20 01:33:57 +08:00
|
|
|
// TESTRESPONSE[s/"version" : "7.0.0-alpha1-SNAPSHOT",/"version": "$body.features.ml.native_code_info.version",/]
|
|
|
|
// TESTRESPONSE[s/"build_hash" : "99a07c016d5a73"/"build_hash": "$body.features.ml.native_code_info.build_hash"/]
|
2020-02-08 05:00:26 +08:00
|
|
|
// TESTRESPONSE[s/"eql" : \{[^\}]*\},/"eql": $body.$_path,/]
|
|
|
|
// eql is disabled by default on release builds and enabled everywhere else during the initial implementation phase until its release
|
2017-06-28 04:42:11 +08:00
|
|
|
// So much s/// but at least we test that the layout is close to matching....
|
|
|
|
|
|
|
|
The following example only returns the build and features information:
|
|
|
|
|
2019-09-09 22:45:37 +08:00
|
|
|
[source,console]
|
2017-06-28 04:42:11 +08:00
|
|
|
------------------------------------------------------------
|
|
|
|
GET /_xpack?categories=build,features
|
|
|
|
------------------------------------------------------------
|
|
|
|
|
|
|
|
The following example removes the descriptions from the response:
|
|
|
|
|
2019-09-09 22:45:37 +08:00
|
|
|
[source,console]
|
2017-06-28 04:42:11 +08:00
|
|
|
------------------------------------------------------------
|
|
|
|
GET /_xpack?human=false
|
|
|
|
------------------------------------------------------------
|