diff --git a/cmd/jaeger/config-elasticsearch.yaml b/cmd/jaeger/config-elasticsearch.yaml index 917357ccce9..2a27208e7e6 100644 --- a/cmd/jaeger/config-elasticsearch.yaml +++ b/cmd/jaeger/config-elasticsearch.yaml @@ -17,6 +17,13 @@ extensions: some_storage: elasticsearch: index_prefix: "jaeger-main" + index_date_layout_spans: "2006-01-02" + index_date_layout_services: "2006-01-02" + index_date_layout_sampling: "2006-01-02" + index_date_layout_dependencies: "2006-01-02" + index_rollover_frequency_spans: "hour" + index_rollover_frequency_services: "hour" + index_rollover_frequency_sampling: "hour" another_storage: elasticsearch: index_prefix: "jaeger-archive" diff --git a/pkg/es/config/config.go b/pkg/es/config/config.go index 5ecdeb62e3f..0eab04b5bd4 100644 --- a/pkg/es/config/config.go +++ b/pkg/es/config/config.go @@ -68,13 +68,13 @@ type Configuration struct { BulkActions int `mapstructure:"-"` BulkFlushInterval time.Duration `mapstructure:"-"` IndexPrefix string `mapstructure:"index_prefix"` - IndexDateLayoutSpans string `mapstructure:"-"` - IndexDateLayoutServices string `mapstructure:"-"` - IndexDateLayoutSampling string `mapstructure:"-"` - IndexDateLayoutDependencies string `mapstructure:"-"` - IndexRolloverFrequencySpans string `mapstructure:"-"` - IndexRolloverFrequencyServices string `mapstructure:"-"` - IndexRolloverFrequencySampling string `mapstructure:"-"` + IndexDateLayoutSpans string `mapstructure:"index_date_layout_spans"` + IndexDateLayoutServices string `mapstructure:"index_date_layout_services"` + IndexDateLayoutSampling string `mapstructure:"index_date_layout_sampling"` + IndexDateLayoutDependencies string `mapstructure:"index_date_layout_dependencies"` + IndexRolloverFrequencySpans string `mapstructure:"index_rollover_frequency_spans"` + IndexRolloverFrequencyServices string `mapstructure:"index_rollover_frequency_services"` + IndexRolloverFrequencySampling string `mapstructure:"index_rollover_frequency_sampling"` ServiceCacheTTL time.Duration `mapstructure:"service_cache_ttl"` AdaptiveSamplingLookback time.Duration `mapstructure:"-"` Tags TagsAsFields `mapstructure:"tags_as_fields"`