Skip to content

Commit

Permalink
fix jaeger-v2 config file
Browse files Browse the repository at this point in the history
Signed-off-by: Harshvir Potpose <hpotpose62@gmail.com>
  • Loading branch information
akagami-harsh committed May 23, 2024
1 parent feaddb4 commit 2f3d649
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 15 deletions.
16 changes: 10 additions & 6 deletions cmd/jaeger/config-elasticsearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,19 @@ extensions:
es_main:
server_urls: http://localhost:9200
log_level: "error"
index_prefix: "jaeger-main"
use_aliases: false
create_mappings: true
index:
prefix: "jaeger-main"
aliases:
enabled: false
create_mappings: true
es_archive:
server_urls: http://localhost:9200
log_level: "error"
index_prefix: "jaeger-archive"
use_aliases: false
create_mappings: true
index:
prefix: "jaeger-archive"
aliases:
enabled: false
create_mappings: true

receivers:
otlp:
Expand Down
17 changes: 10 additions & 7 deletions cmd/jaeger/config-opensearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,19 @@ extensions:
os_main:
server_urls: http://localhost:9200
log_level: "error"
index_prefix: "jaeger-main"
use_aliases: false
create_mappings: true

index:
prefix: "jaeger-main"
aliases:
enabled: false
create_mappings: true
os_archive:
server_urls: http://localhost:9200
log_level: "error"
index_prefix: "jaeger-main"
use_aliases: false
create_mappings: true
index:
prefix: "jaeger-main"
aliases:
enabled: false
create_mappings: true

receivers:
otlp:
Expand Down
2 changes: 1 addition & 1 deletion pkg/es/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ type Sniffer struct {
}

type Aliases struct {
UseReadWriteAliases bool `mapstructure:"use_aliases"`
UseReadWriteAliases bool `mapstructure:"enabled"`
CreateIndexTemplates bool `mapstructure:"create_mappings"`
UseILM bool `mapstructure:"use_ilm"`
}
Expand Down
3 changes: 2 additions & 1 deletion plugin/storage/es/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,8 @@ func getDefaultConfig() config.Configuration {
PriorityTemplate: config.PriorityTemplate{
Span: 0,
Service: 0,
Dependencies: 0},
Dependencies: 0,
},
},
BulkProcessing: config.BulkProcessing{
Size: 5 * 1000 * 1000,
Expand Down

0 comments on commit 2f3d649

Please sign in to comment.