Skip to content

Commit

Permalink
feat: expose availability-zone as a cli flag for ingester (#3881)
Browse files Browse the repository at this point in the history
* expose availability-zone as a cli flag for ingester

Signed-off-by: Aviv Guiser <[email protected]>

* update changelog

Signed-off-by: Aviv Guiser <[email protected]>

* update changelog

Signed-off-by: Aviv Guiser <[email protected]>

* fix cli flag

Signed-off-by: Aviv Guiser <[email protected]>

* change default to empty string

Signed-off-by: Aviv Guiser <[email protected]>

* fix nit

Signed-off-by: Aviv Guiser <[email protected]>

---------

Signed-off-by: Aviv Guiser <[email protected]>
  • Loading branch information
KyriosGN0 authored Jul 19, 2024
1 parent 09e765b commit f544993
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
* [BUGFIX] Improved handling of complete blocks in localblocks processor after enabling flusing [#3805](https://github.com/grafana/tempo/pull/3805) (@mapno)
* [BUGFIX] Handle out of boundaries spans kinds [#3861](https://github.com/grafana/tempo/pull/3861) (@javiermolinar)
* [BUGFIX] Maintain previous tenant blocklist on tenant errors [#3860](https://github.com/grafana/tempo/pull/3860) (@zalegrala)
* [ENHANCEMENT] expose availability-zone as a cli flag in ingester [#3881](https://github.com/grafana/tempo/pull/3881)


## v2.5.0
Expand Down
1 change: 1 addition & 0 deletions modules/ingester/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func (cfg *Config) RegisterFlagsAndApplyDefaults(prefix string, f *flag.FlagSet)
f.DurationVar(&cfg.MaxBlockDuration, prefix+".max-block-duration", 30*time.Minute, "Maximum duration which the head block can be appended to before cutting it.")
f.Uint64Var(&cfg.MaxBlockBytes, prefix+".max-block-bytes", 500*1024*1024, "Maximum size of the head block before cutting it.")
f.DurationVar(&cfg.CompleteBlockTimeout, prefix+".complete-block-timeout", 3*tempodb.DefaultBlocklistPoll, "Duration to keep blocks in the ingester after they have been flushed.")
f.StringVar(&cfg.LifecyclerConfig.Zone, prefix+".availability-zone", "", "Define Availability Zone in which this ingester is running.")

hostname, err := os.Hostname()
if err != nil {
Expand Down

0 comments on commit f544993

Please sign in to comment.