mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
# Backport This will backport the following commits from `main` to `8.8`: - [[APM] Display size for hidden indices in storage explorer (#158746)](https://github.com/elastic/kibana/pull/158746) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Giorgos Bamparopoulos","email":"georgios.bamparopoulos@elastic.co"},"sourceCommit":{"committedDate":"2023-06-05T12:16:16Z","message":"[APM] Display size for hidden indices in storage explorer (#158746)\n\n- Adds `expand_wildcards: 'all'` to the Index stats API call to fix an\r\nissue with missing statistics for hidden data streams in storage\r\nexplorer\r\n- Fixes an issue with number of replicas not being displayed","sha":"16b9614de268eedc35c418b602ce16b8019c0a8e","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:APM","backport:prev-minor","v8.9.0"],"number":158746,"url":"https://github.com/elastic/kibana/pull/158746","mergeCommit":{"message":"[APM] Display size for hidden indices in storage explorer (#158746)\n\n- Adds `expand_wildcards: 'all'` to the Index stats API call to fix an\r\nissue with missing statistics for hidden data streams in storage\r\nexplorer\r\n- Fixes an issue with number of replicas not being displayed","sha":"16b9614de268eedc35c418b602ce16b8019c0a8e"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/158746","number":158746,"mergeCommit":{"message":"[APM] Display size for hidden indices in storage explorer (#158746)\n\n- Adds `expand_wildcards: 'all'` to the Index stats API call to fix an\r\nissue with missing statistics for hidden data streams in storage\r\nexplorer\r\n- Fixes an issue with number of replicas not being displayed","sha":"16b9614de268eedc35c418b602ce16b8019c0a8e"}}]}] BACKPORT--> Co-authored-by: Giorgos Bamparopoulos <georgios.bamparopoulos@elastic.co>
This commit is contained in:
parent
cd27f98a73
commit
c8c026454b
2 changed files with 5 additions and 2 deletions
|
@ -257,7 +257,7 @@ export async function getStorageDetailsPerIndex({
|
|||
? indexInfo.settings?.index?.number_of_shards ?? 0
|
||||
: undefined,
|
||||
replica: indexInfo
|
||||
? indexInfo.settings?.number_of_replicas ?? 0
|
||||
? indexInfo.settings?.index?.number_of_replicas ?? 0
|
||||
: undefined,
|
||||
size,
|
||||
dataStream: indexInfo?.data_stream,
|
||||
|
|
|
@ -18,7 +18,10 @@ export async function getTotalIndicesStats({
|
|||
}) {
|
||||
const index = getApmIndicesCombined(apmEventClient);
|
||||
const esClient = (await context.core).elasticsearch.client;
|
||||
const totalStats = await esClient.asCurrentUser.indices.stats({ index });
|
||||
const totalStats = await esClient.asCurrentUser.indices.stats({
|
||||
index,
|
||||
expand_wildcards: 'all',
|
||||
});
|
||||
return totalStats;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue