mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[APM] Use constants for system indices (#149521)
We should use constants when referring to the system indices.
This commit is contained in:
parent
d7dbc91877
commit
80542567f0
2 changed files with 7 additions and 4 deletions
|
@ -6,6 +6,10 @@
|
|||
*/
|
||||
|
||||
import { CoreStart, Logger } from '@kbn/core/server';
|
||||
import {
|
||||
APM_AGENT_CONFIGURATION_INDEX,
|
||||
APM_SOURCE_MAP_INDEX,
|
||||
} from '../../settings/apm_indices/get_apm_indices';
|
||||
|
||||
const apiKeyMetadata = {
|
||||
application: 'apm',
|
||||
|
@ -41,7 +45,7 @@ export async function createApmSourceMapApiKey({
|
|||
apmSystemIndices: {
|
||||
index: [
|
||||
{
|
||||
names: ['.apm-source-map'],
|
||||
names: [APM_SOURCE_MAP_INDEX],
|
||||
privileges: indexLevelPrivileges,
|
||||
allow_restricted_indices: true,
|
||||
},
|
||||
|
@ -82,7 +86,7 @@ export async function createApmAgentConfigApiKey({
|
|||
apmSystemIndices: {
|
||||
index: [
|
||||
{
|
||||
names: ['.apm-agent-configuration'],
|
||||
names: [APM_AGENT_CONFIGURATION_INDEX],
|
||||
privileges: indexLevelPrivileges,
|
||||
allow_restricted_indices: true,
|
||||
},
|
||||
|
|
|
@ -41,8 +41,7 @@ export async function scheduleSourceMapMigration({
|
|||
taskManager.registerTaskDefinitions({
|
||||
[TASK_TYPE]: {
|
||||
title: 'Migrate fleet source map artifacts',
|
||||
description:
|
||||
'Migrates fleet source map artifacts to `.apm-source-map` index',
|
||||
description: `Migrates fleet source map artifacts to "${APM_SOURCE_MAP_INDEX}" index`,
|
||||
timeout: '1h',
|
||||
maxAttempts: 5,
|
||||
maxConcurrency: 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue