mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Backports the following commits to 7.x: - [Infra UI] Make queries more robust against missing indices (#38976)
This commit is contained in:
parent
6ec87ea297
commit
29fa71c889
3 changed files with 8 additions and 0 deletions
|
@ -28,6 +28,8 @@ export class ElasticsearchMetadataAdapter implements InfraMetadataAdapter {
|
|||
): Promise<InfraMetricsAdapterResponse> {
|
||||
const idFieldName = getIdFieldName(sourceConfiguration, nodeType);
|
||||
const metricQuery = {
|
||||
allowNoIndices: true,
|
||||
ignoreUnavailable: true,
|
||||
index: sourceConfiguration.metricAlias,
|
||||
body: {
|
||||
query: {
|
||||
|
@ -80,6 +82,8 @@ export class ElasticsearchMetadataAdapter implements InfraMetadataAdapter {
|
|||
): Promise<InfraMetricsAdapterResponse> {
|
||||
const idFieldName = getIdFieldName(sourceConfiguration, nodeType);
|
||||
const logQuery = {
|
||||
allowNoIndices: true,
|
||||
ignoreUnavailable: true,
|
||||
index: sourceConfiguration.logAlias,
|
||||
body: {
|
||||
query: {
|
||||
|
|
|
@ -13,6 +13,8 @@ export const checkValidNode = async (
|
|||
id: string
|
||||
): Promise<boolean> => {
|
||||
const params = {
|
||||
allowNoIndices: true,
|
||||
ignoreUnavailable: true,
|
||||
index: indexPattern,
|
||||
terminateAfter: 1,
|
||||
body: {
|
||||
|
|
|
@ -32,6 +32,8 @@ export const getGroupings = async (
|
|||
}
|
||||
const limit = options.limit || 9;
|
||||
const params = {
|
||||
allowNoIndices: true,
|
||||
ignoreUnavailable: true,
|
||||
index: options.indexPattern,
|
||||
body: {
|
||||
size: 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue