[APM] Filter on tx metrics for instance stats (#114758)
This commit is contained in:
parent
5fdbd26229
commit
802fb0252d
|
@ -17,6 +17,7 @@ import { Coordinate } from '../../../../typings/timeseries';
|
|||
import { kqlQuery, rangeQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
getTransactionDurationFieldForAggregatedTransactions,
|
||||
} from '../../helpers/aggregated_transactions';
|
||||
|
@ -111,6 +112,9 @@ export async function getServiceInstancesTransactionStatistics<
|
|||
...rangeQuery(start, end),
|
||||
...environmentQuery(environment),
|
||||
...kqlQuery(kuery),
|
||||
...getDocumentTypeFilterForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
...(isComparisonSearch && serviceNodeIds
|
||||
? [{ terms: { [SERVICE_NODE_NAME]: serviceNodeIds } }]
|
||||
: []),
|
||||
|
|
Loading…
Reference in a new issue