Add json struct tags to Limits (#656)
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
||||
## master / unreleased
|
||||
|
||||
* [CHANGE] Add `json` struct tags to overrides' `Limits` struct in addition to `yaml` tags. [#656](https://github.com/grafana/tempo/pull/656)
|
||||
* [CHANGE] Update to Go 1.16, latest OpenTelemetry proto definition and collector [#546](https://github.com/grafana/tempo/pull/546)
|
||||
* [CHANGE] `max_spans_per_trace` limit override has been removed in favour of `max_bytes_per_trace`.
|
||||
This is a **breaking change** to the overrides config section. [#612](https://github.com/grafana/tempo/pull/612)
|
||||
@@ -36,7 +37,7 @@
|
||||
* [CHANGE] New compactor setting for max block size data instead of traces. [#520](https://github.com/grafana/tempo/pull/520)
|
||||
* [CHANGE] Change default ingester_client compression from gzip to snappy. [#522](https://github.com/grafana/tempo/pull/522)
|
||||
* [CHANGE/BUGFIX] Rename `tempodb_compaction_objects_written` and `tempodb_compaction_bytes_written` metrics to `tempodb_compaction_objects_written_total` and `tempodb_compaction_bytes_written_total`. [#524](https://github.com/grafana/tempo/pull/524)
|
||||
* [CHANGE] Replace tempo-cli `list block` `--check-dupes` option with `--scan` and collect additional stats [#534](https://github.com/grafana/tempo/pull/534)
|
||||
* [CHANGE] Replace tempo-cli `list block` `--check-dupes` option with `--scan` and collect additional stats [#534](https://github.com/grafana/tempo/pull/534)
|
||||
* [FEATURE] Added block compression. This is a **breaking change** b/c some configuration fields moved. [#504](https://github.com/grafana/tempo/pull/504)
|
||||
* [CHANGE] Drop Vulture Loki dependency. This is a **breaking change**. [#509](https://github.com/grafana/tempo/pull/509)
|
||||
* [ENHANCEMENT] Serve config at the "/config" endpoint. [#446](https://github.com/grafana/tempo/pull/446)
|
||||
|
||||
@@ -23,21 +23,21 @@ const (
|
||||
// limits via flags, or per-user limits via yaml config.
|
||||
type Limits struct {
|
||||
// Distributor enforced limits.
|
||||
IngestionRateStrategy string `yaml:"ingestion_rate_strategy"`
|
||||
IngestionRateLimitBytes int `yaml:"ingestion_rate_limit_bytes"`
|
||||
IngestionBurstSizeBytes int `yaml:"ingestion_burst_size_bytes"`
|
||||
IngestionRateStrategy string `yaml:"ingestion_rate_strategy" json:"ingestion_rate_strategy"`
|
||||
IngestionRateLimitBytes int `yaml:"ingestion_rate_limit_bytes" json:"ingestion_rate_limit_bytes"`
|
||||
IngestionBurstSizeBytes int `yaml:"ingestion_burst_size_bytes" json:"ingestion_burst_size_bytes"`
|
||||
|
||||
// Ingester enforced limits.
|
||||
MaxLocalTracesPerUser int `yaml:"max_traces_per_user"`
|
||||
MaxGlobalTracesPerUser int `yaml:"max_global_traces_per_user"`
|
||||
MaxBytesPerTrace int `yaml:"max_bytes_per_trace"`
|
||||
MaxLocalTracesPerUser int `yaml:"max_traces_per_user" json:"max_traces_per_user"`
|
||||
MaxGlobalTracesPerUser int `yaml:"max_global_traces_per_user" json:"max_global_traces_per_user"`
|
||||
MaxBytesPerTrace int `yaml:"max_bytes_per_trace" json:"max_bytes_per_trace"`
|
||||
|
||||
// Compactor enforced limits.
|
||||
BlockRetention time.Duration `yaml:"block_retention"`
|
||||
BlockRetention time.Duration `yaml:"block_retention" json:"block_retention"`
|
||||
|
||||
// Config for overrides, convenient if it goes here.
|
||||
PerTenantOverrideConfig string `yaml:"per_tenant_override_config"`
|
||||
PerTenantOverridePeriod time.Duration `yaml:"per_tenant_override_period"`
|
||||
PerTenantOverrideConfig string `yaml:"per_tenant_override_config" json:"per_tenant_override_config"`
|
||||
PerTenantOverridePeriod time.Duration `yaml:"per_tenant_override_period" json:"per_tenant_override_period"`
|
||||
}
|
||||
|
||||
// RegisterFlags adds the flags required to config this to the given FlagSet
|
||||
|
||||
Reference in New Issue
Block a user