1
0
Эх сурвалжийг харах

Add mapping for total_data_set_size (#104432)

Henrik Nordvik 1 жил өмнө
parent
commit
37fcadb0ae

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

@@ -101,6 +101,13 @@
                                   "type": "long"
                                 }
                               }
+                            },
+                            "total_data_set_size": {
+                              "properties": {
+                                "bytes": {
+                                  "type": "long"
+                                }
+                              }
                             }
                           }
                         }
@@ -623,6 +630,13 @@
                                   "type": "long"
                                 }
                               }
+                            },
+                            "total_data_set_size": {
+                              "properties": {
+                                "bytes": {
+                                  "type": "long"
+                                }
+                              }
                             }
                           }
                         },
@@ -1253,6 +1267,9 @@
                       "properties": {
                         "size_in_bytes": {
                           "type": "long"
+                        },
+                        "total_data_set_size_in_bytes": {
+                          "type": "long"
                         }
                       }
                     },
@@ -1410,6 +1427,9 @@
                         },
                         "size_in_bytes": {
                           "type": "long"
+                        },
+                        "total_data_set_size_in_bytes": {
+                          "type": "long"
                         }
                       }
                     },
@@ -1704,6 +1724,13 @@
                                   "type": "long"
                                 }
                               }
+                            },
+                            "total_data_set_size": {
+                              "properties": {
+                                "bytes": {
+                                  "type": "long"
+                                }
+                              }
                             }
                           }
                         },
@@ -1828,6 +1855,13 @@
                                   "type": "long"
                                 }
                               }
+                            },
+                            "total_data_set_size": {
+                              "properties": {
+                                "bytes": {
+                                  "type": "long"
+                                }
+                              }
                             }
                           }
                         },

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

@@ -77,7 +77,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
      * mappings that point to the corresponding ECS fields.
      */
-    public static final int STACK_MONITORING_REGISTRY_VERSION = 8_00_00_99 + 13;
+    public static final int STACK_MONITORING_REGISTRY_VERSION = 8_00_00_99 + 14;
     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_VARIABLE = "xpack.stack.monitoring.template.version";