[Fleet] Support for Profiling symbolization (#154921)

This PR adds fleet index pattern `profiling-*` to fleet server and in
the logstash key generator.
This commit is contained in:
Cauê Marcondes 2023-04-13 15:12:25 -04:00 committed by GitHub
parent dc1baa9758
commit 83f1fb4f26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -24,6 +24,7 @@ export async function canCreateLogstashApiKey(esClient: ElasticsearchClient) {
'synthetics-*-*',
'.logs-endpoint.diagnostic.collection-*',
'.logs-endpoint.action.responses-*',
'profiling-*-*',
],
privileges: ['auto_configure', 'create_doc'],
},
@ -58,6 +59,7 @@ export async function generateLogstashApiKey(esClient: ElasticsearchClient) {
'synthetics-*-*',
'.logs-endpoint.diagnostic.collection-*',
'.logs-endpoint.action.responses-*',
'profiling-*-*',
],
privileges: ['auto_configure', 'create_doc'],
},

View file

@ -8,7 +8,7 @@
import type { IndicesDataStream, IndicesIndexTemplate } from '@elastic/elasticsearch/lib/api/types';
import type { ElasticsearchClient } from '@kbn/core/server';
const DATA_STREAM_INDEX_PATTERN = 'logs-*-*,metrics-*-*,traces-*-*,synthetics-*-*';
const DATA_STREAM_INDEX_PATTERN = 'logs-*-*,metrics-*-*,traces-*-*,synthetics-*-*,profiling-*-*';
class DataStreamService {
public async getAllFleetDataStreams(esClient: ElasticsearchClient) {