Skip to content

Commit d1bd822

Browse files
klacabanejbaiera
andauthored
[Stack Monitoring] add kibana_stats version alias to -mb template (#83930)
* add kibana_stats version alias * increment version number Co-authored-by: James Baiera <[email protected]> Co-authored-by: James Baiera <[email protected]>
1 parent 494da68 commit d1bd822

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,10 @@
492492
"uuid": {
493493
"type": "alias",
494494
"path": "service.id"
495+
},
496+
"version": {
497+
"type": "alias",
498+
"path": "service.version"
495499
}
496500
}
497501
},

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
@@ -78,7 +78,7 @@ public class MonitoringTemplateRegistry extends IndexTemplateRegistry {
7878
* 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
7979
* mappings that point to the corresponding ECS fields.
8080
*/
81-
public static final int STACK_MONITORING_REGISTRY_VERSION = Version.V_8_0_0.id;
81+
public static final int STACK_MONITORING_REGISTRY_VERSION = Version.V_8_0_0.id + 1;
8282
private static final String STACK_MONITORING_REGISTRY_VERSION_VARIABLE = "xpack.stack.monitoring.template.release.version";
8383
private static final String STACK_TEMPLATE_VERSION = "8";
8484
private static final String STACK_TEMPLATE_VERSION_VARIABLE = "xpack.stack.monitoring.template.version";

0 commit comments

Comments
 (0)