-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bootstrap profiling indices at startup (#95666)
With this commit we bootstrap all indices and related structures that are required for Elastic Universal Profiling.
- Loading branch information
1 parent
ebaefc6
commit 3aed349
Showing
35 changed files
with
1,728 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 95666 | ||
summary: Bootstrap profiling indices at startup | ||
area: Indices APIs | ||
type: enhancement | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-ilm.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"template": { | ||
"settings": { | ||
"index": { | ||
"lifecycle": { | ||
"name": "profiling" | ||
} | ||
} | ||
} | ||
}, | ||
"version": ${xpack.profiling.template.version} | ||
} |
44 changes: 44 additions & 0 deletions
44
...main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-metrics.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"template": { | ||
"settings": { | ||
"index": { | ||
"number_of_replicas": 0, | ||
"auto_expand_replicas": "0-1", | ||
"refresh_interval": "10s", | ||
"sort": { | ||
"field": [ | ||
"project.id", | ||
"@timestamp", | ||
"host.id" | ||
] | ||
} | ||
}, | ||
"codec": "best_compression" | ||
}, | ||
"mappings": { | ||
"_source": { | ||
"enabled": false | ||
}, | ||
"properties": { | ||
"ecs.version": { | ||
"type": "keyword", | ||
"index": true | ||
}, | ||
"project.id": { | ||
"type": "keyword" | ||
}, | ||
"host.id": { | ||
"type": "keyword" | ||
}, | ||
"@timestamp": { | ||
"type": "date", | ||
"format": "epoch_second" | ||
}, | ||
"Elasticsearch.cluster.id": { | ||
"type": "keyword" | ||
} | ||
} | ||
} | ||
}, | ||
"version": ${xpack.profiling.template.version} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.