From b7e67e76dde8ba4d3a52d3c4bd0bdbfc26f5efb0 Mon Sep 17 00:00:00 2001 From: Felix Barnsteiner Date: Wed, 10 Sep 2025 17:01:16 +0200 Subject: [PATCH] Set index template for ingest_mode: data_stream Rolls back changes in https://github.com/elastic/rally-tracks/pull/722 that broke the `ingest_mode: data_stream`. --- tsdb/track.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tsdb/track.json b/tsdb/track.json index 50955ded5..25437cb93 100644 --- a/tsdb/track.json +++ b/tsdb/track.json @@ -11,12 +11,28 @@ { "version": 2, "description": "metricbeat information for elastic-app k8s cluster", + {%- if ingest_mode is defined and ingest_mode == "data_stream" %} + "composable-templates": [ + { + "name": "tsdb-template", + "index-pattern": "k8s*", + "delete-matching-indices": true, + "template": "index-template.json" + } + ], + "data-streams": [ + { + "name": "k8s" + } + ], + {%- else %} "indices": [ { "name": "tsdb", "body": "index.json" } ], + {%- endif %} "corpora": [ { "name": "tsdb",