Do not create the monitoring index before the exporter service is started.
This prevents the template from being applied.
relates elastic/x-pack-elasticsearch#1308
Original commit: elastic/x-pack-elasticsearch@c9fcea42cebf9b4afd1d9d34c59f8f59785ffe8e
@@ -169,11 +169,6 @@ public class LocalExporterTests extends MonitoringIntegTestCase {
}
}
- if (randomBoolean()) {
- // create the monitoring data index to check if its mappings are correctly updated
- createIndex(DATA_INDEX);
- }
-
Settings.Builder exporterSettings = Settings.builder()
.put("xpack.monitoring.exporters._local.enabled", true);
