[Fleet] Do not query cold/frozen indices when querying for agent metrics (#159307)

This commit is contained in:
Nicolas Chaulet 2023-06-08 11:03:30 -04:00 committed by GitHub
parent b8619ec216
commit 48e783972a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,6 +70,11 @@ const aggregationQueryBuilder = (agentIds: string[]) => ({
query: {
bool: {
must: [
{
terms: {
_tier: ['data_hot', 'data_warm'],
},
},
{
range: {
'@timestamp': {