Skip to content

Commit f743a1e

Browse files
authored
tier_preference and creation_date fields in monitoring template (#117851) (#118776)
* tier_preference and creation_date fields in monitoring template * Added index version * Update docs/changelog/117851.yaml * Updated changelog * Incremented STACK_MONITORING_REGISTRY_VERSION
1 parent 75a46ce commit f743a1e

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

docs/changelog/117851.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 117851
2+
summary: Addition of `tier_preference`, `creation_date` and `version` fields in Elasticsearch monitoring template
3+
area: Monitoring
4+
type: enhancement
5+
issues: []

x-pack/plugin/core/template-resources/src/main/resources/monitoring-es-mb.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1517,6 +1517,17 @@
15171517
"ignore_above": 1024,
15181518
"type": "keyword"
15191519
},
1520+
"tier_preference": {
1521+
"ignore_above": 1024,
1522+
"type": "keyword"
1523+
},
1524+
"creation_date": {
1525+
"type": "date"
1526+
},
1527+
"version": {
1528+
"ignore_above": 1024,
1529+
"type": "keyword"
1530+
},
15201531
"recovery": {
15211532
"properties": {
15221533
"stop_time": {

x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/MonitoringTemplateRegistry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class MonitoringTemplateRegistry extends IndexTemplateRegistry {
7777
* writes monitoring data in ECS format as of 8.0. These templates define the ECS schema as well as alias fields for the old monitoring
7878
* mappings that point to the corresponding ECS fields.
7979
*/
80-
public static final int STACK_MONITORING_REGISTRY_VERSION = 8_00_00_99 + 18;
80+
public static final int STACK_MONITORING_REGISTRY_VERSION = 8_00_00_99 + 19;
8181
private static final String STACK_MONITORING_REGISTRY_VERSION_VARIABLE = "xpack.stack.monitoring.template.release.version";
8282
private static final String STACK_TEMPLATE_VERSION = "8";
8383
private static final String STACK_TEMPLATE_VERSION_VARIABLE = "xpack.stack.monitoring.template.version";

0 commit comments

Comments
 (0)