mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
This commit is contained in:
parent
bf60796cd3
commit
1007c8713a
3 changed files with 8 additions and 2 deletions
|
@ -44,6 +44,7 @@ export const config = {
|
|||
telemetryCollectionEnabled: schema.boolean({ defaultValue: true }),
|
||||
metricsInterval: schema.number({ defaultValue: 30 }),
|
||||
maxServiceEnvironments: schema.number({ defaultValue: 100 }),
|
||||
maxServiceSelection: schema.number({ defaultValue: 50 }),
|
||||
}),
|
||||
};
|
||||
|
||||
|
@ -76,6 +77,7 @@ export function mergeConfigs(
|
|||
apmConfig.serviceMapMaxTracesPerRequest,
|
||||
'xpack.apm.ui.enabled': apmConfig.ui.enabled,
|
||||
'xpack.apm.maxServiceEnvironments': apmConfig.maxServiceEnvironments,
|
||||
'xpack.apm.maxServiceSelection': apmConfig.maxServiceSelection,
|
||||
'xpack.apm.ui.maxTraceItems': apmConfig.ui.maxTraceItems,
|
||||
'xpack.apm.ui.transactionGroupBucketSize':
|
||||
apmConfig.ui.transactionGroupBucketSize,
|
||||
|
|
|
@ -21,7 +21,8 @@ export async function getServiceNames({
|
|||
setup: Setup;
|
||||
searchAggregatedTransactions: boolean;
|
||||
}) {
|
||||
const { apmEventClient } = setup;
|
||||
const { apmEventClient, config } = setup;
|
||||
const maxServiceSelection = config['xpack.apm.maxServiceSelection'];
|
||||
|
||||
const params = {
|
||||
apm: {
|
||||
|
@ -40,7 +41,7 @@ export async function getServiceNames({
|
|||
services: {
|
||||
terms: {
|
||||
field: SERVICE_NAME,
|
||||
size: 50,
|
||||
size: maxServiceSelection,
|
||||
min_doc_count: 0,
|
||||
},
|
||||
},
|
||||
|
|
|
@ -79,6 +79,9 @@ export async function inspectSearchParams(
|
|||
|
||||
case 'xpack.apm.maxServiceEnvironments':
|
||||
return 100;
|
||||
|
||||
case 'xpack.apm.maxServiceSelection':
|
||||
return 50;
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue