Skip to content

Commit

Permalink
[APM] Filter on tx metrics for instance stats
Browse files Browse the repository at this point in the history
  • Loading branch information
dgieselaar committed Oct 13, 2021
1 parent 3d75154 commit 12aae91
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -111,6 +112,9 @@ export async function getServiceInstancesTransactionStatistics<
...rangeQuery(start, end),
...environmentQuery(environment),
...kqlQuery(kuery),
...getDocumentTypeFilterForAggregatedTransactions(
searchAggregatedTransactions
),
...(isComparisonSearch && serviceNodeIds
? [{ terms: { [SERVICE_NODE_NAME]: serviceNodeIds } }]
: []),
Expand Down

0 comments on commit 12aae91

Please sign in to comment.