[Monitoring] Improve indices loading against larger metricbeat-* indices (#79190)
* Improve indices loading against larger metricbeat-* indices * PR feedback
This commit is contained in:
parent
4602d65bb5
commit
1f56371add
|
@ -69,7 +69,8 @@ export class MonitoringViewBaseEuiTableController extends MonitoringViewBaseCont
|
|||
});
|
||||
};
|
||||
|
||||
this.updateData();
|
||||
// For pages where we do not fetch immediately, we want to fetch after pagination is applied
|
||||
args.fetchDataImmediately === false && this.updateData();
|
||||
}
|
||||
|
||||
setPagination(page) {
|
||||
|
|
|
@ -86,7 +86,7 @@ export async function getApmInfo(req, apmIndexPattern, { clusterUuid, apmUuid, s
|
|||
inner_hits: {
|
||||
name: 'first_hit',
|
||||
size: 1,
|
||||
sort: { 'beats_stats.timestamp': 'asc' },
|
||||
sort: { 'beats_stats.timestamp': { order: 'asc', unmapped_type: 'long' } },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -124,7 +124,7 @@ export async function getApms(req, apmIndexPattern, clusterUuid) {
|
|||
inner_hits: {
|
||||
name: 'earliest',
|
||||
size: 1,
|
||||
sort: [{ 'beats_stats.timestamp': 'asc' }],
|
||||
sort: [{ 'beats_stats.timestamp': { order: 'asc', unmapped_type: 'long' } }],
|
||||
},
|
||||
},
|
||||
sort: [
|
||||
|
|
|
@ -90,7 +90,7 @@ export async function getBeatSummary(
|
|||
inner_hits: {
|
||||
name: 'first_hit',
|
||||
size: 1,
|
||||
sort: { 'beats_stats.timestamp': 'asc' },
|
||||
sort: { 'beats_stats.timestamp': { order: 'asc', unmapped_type: 'long' } },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -126,7 +126,7 @@ export function buildGetIndicesQuery(
|
|||
inner_hits: {
|
||||
name: 'earliest',
|
||||
size: 1,
|
||||
sort: [{ timestamp: 'asc' }],
|
||||
sort: [{ timestamp: { order: 'asc', unmapped_type: 'long' } }],
|
||||
},
|
||||
},
|
||||
sort: [{ timestamp: { order: 'desc', unmapped_type: 'long' } }],
|
||||
|
|
|
@ -126,7 +126,7 @@ function buildRequest(req, config, esIndexPattern) {
|
|||
field: 'ccr_stats.follower_index',
|
||||
inner_hits: {
|
||||
name: 'by_shard',
|
||||
sort: [{ timestamp: 'desc' }],
|
||||
sort: [{ timestamp: { order: 'desc', unmapped_type: 'long' } }],
|
||||
size: maxBucketSize,
|
||||
collapse: {
|
||||
field: 'ccr_stats.shard_id',
|
||||
|
|
|
@ -59,7 +59,7 @@ async function getCcrStat(req, esIndexPattern, filters) {
|
|||
inner_hits: {
|
||||
name: 'oldest',
|
||||
size: 1,
|
||||
sort: [{ timestamp: 'asc' }],
|
||||
sort: [{ timestamp: { order: 'asc', unmapped_type: 'long' } }],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue