Skip to content

Commit

Permalink
feat: Enable log volume endpoint by default (#12628)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyriltovena committed Apr 16, 2024
1 parent 56c5dc3 commit 397aa56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/sources/shared/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -3148,7 +3148,8 @@ The `limits_config` block configures global and per-tenant limits in Loki. The v
[max_querier_bytes_read: <int> | default = 150GB]

# Enable log-volume endpoints.
[volume_enabled: <boolean>]
# CLI flag: -limits.volume-enabled
[volume_enabled: <boolean> | default = true]

# The maximum number of aggregated series in a log-volume response
# CLI flag: -limits.volume-max-series
Expand Down
1 change: 1 addition & 0 deletions pkg/validation/limits.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ func (l *Limits) RegisterFlags(f *flag.FlagSet) {
_ = l.MaxStructuredMetadataSize.Set(defaultMaxStructuredMetadataSize)
f.Var(&l.MaxStructuredMetadataSize, "limits.max-structured-metadata-size", "Maximum size accepted for structured metadata per entry. Default: 64 kb. Any log line exceeding this limit will be discarded. There is no limit when unset or set to 0.")
f.IntVar(&l.MaxStructuredMetadataEntriesCount, "limits.max-structured-metadata-entries-count", defaultMaxStructuredMetadataCount, "Maximum number of structured metadata entries per log line. Default: 128. Any log line exceeding this limit will be discarded. There is no limit when unset or set to 0.")
f.BoolVar(&l.VolumeEnabled, "limits.volume-enabled", true, "Enable log volume endpoint.")
}

// SetGlobalOTLPConfig set GlobalOTLPConfig which is used while unmarshaling per-tenant otlp config to use the default list of resource attributes picked as index labels.
Expand Down

0 comments on commit 397aa56

Please sign in to comment.