Skip to content

Commit

Permalink
[Fleet] Support for Profiling symbolization (#154921)
Browse files Browse the repository at this point in the history
This PR adds fleet index pattern `profiling-*` to fleet server and in
the logstash key generator.
  • Loading branch information
cauemarcondes authored Apr 13, 2023
1 parent dc1baa9 commit 83f1fb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
},
Expand Down Expand Up @@ -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'],
},
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/fleet/server/services/data_streams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 83f1fb4

Please sign in to comment.