Browse Source

[monitoring] Add total_time.ms alias for Metricbeat monitoring (#94062)

Milton Hultgren 2 years ago
parent
commit
fe59163bf6

+ 4 - 0
x-pack/plugin/core/src/main/resources/monitoring-es-mb.json

@@ -2378,6 +2378,10 @@
                 "start_time_in_millis": {
                 "start_time_in_millis": {
                   "path": "elasticsearch.index.recovery.start_time.ms",
                   "path": "elasticsearch.index.recovery.start_time.ms",
                   "type": "alias"
                   "type": "alias"
+                },
+                "total_time_in_millis": {
+                  "path": "elasticsearch.index.recovery.total_time.ms",
+                  "type": "alias"
                 }
                 }
               }
               }
             }
             }

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

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