Skip to content

Commit

Permalink
configurable index daltalayout and frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredTan95 committed Jul 30, 2024
1 parent 81f81de commit 304fca1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions cmd/jaeger/config-elasticsearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
14 changes: 7 additions & 7 deletions pkg/es/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 304fca1

Please sign in to comment.