chore: remove experimental flags from features and configs which are no longer so. (#12481)

Signed-off-by: Edward Welch <edward.welch@grafana.com>
pull/12489/head
Ed Welch 1 year ago committed by GitHub
parent ff08d2fcc2
commit 705379cc81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 10
      docs/sources/configure/_index.md
  2. 2
      docs/sources/send-data/otel/_index.md
  3. 4
      docs/sources/send-data/promtail/stages/structured_metadata.md
  4. 2
      pkg/compactor/compactor.go
  5. 2
      pkg/distributor/distributor.go
  6. 8
      pkg/distributor/writefailures/cfg.go
  7. 2
      pkg/loki/loki.go

@ -726,15 +726,13 @@ rate_store:
# CLI flag: -distributor.rate-store.debug
[debug: <boolean> | default = false]
# Experimental. Customize the logging of write failures.
# Customize the logging of write failures.
write_failures_logging:
# Experimental and subject to change. Log volume allowed (per second).
# Default: 1KB.
# Log volume allowed (per second). Default: 1KB.
# CLI flag: -distributor.write-failures-logging.rate
[rate: <int> | default = 1KB]
# Experimental and subject to change. Whether a insight=true key should be
# logged or not. Default: false.
# Whether a insight=true key should be logged or not. Default: false.
# CLI flag: -distributor.write-failures-logging.add-insights-label
[add_insights_label: <boolean> | default = false]
@ -2549,7 +2547,7 @@ The `compactor` block configures the compactor component, which compacts index s
# CLI flag: -compactor.apply-retention-interval
[apply_retention_interval: <duration> | default = 0s]
# (Experimental) Activate custom (per-stream,per-tenant) retention.
# Activate custom (per-stream,per-tenant) retention.
# CLI flag: -compactor.retention-enabled
[retention_enabled: <boolean> | default = false]

@ -15,8 +15,6 @@ For ingesting logs to Loki using the OpenTelemetry Collector, you must use the [
## Loki configuration
When logs are ingested by Loki using an OpenTelemetry protocol (OTLP) ingestion endpoint, some of the data is stored as [Structured Metadata]({{< relref "../../get-started/labels/structured-metadata" >}}).
Since Structured Metadata is still an experimental feature, Loki by default rejects any writes using that feature.
To start ingesting logs in OpenTelemetry format, you need to enable `allow_structured_metadata` per tenant configuration (in the `limits_config`).
## Configure the OpenTelemetry Collector to write logs into Loki

@ -5,10 +5,6 @@ description: The 'structured_metadata' Promtail pipeline stage
# structured_metadata
{{% admonition type="warning" %}}
Structured metadata is an experimental feature and is subject to change in future releases of Grafana Loki.
{{% /admonition %}}
The `structured_metadata` stage is an action stage that takes data from the extracted map and
modifies the [structured metadata]({{< relref "../../../get-started/labels/structured-metadata" >}}) that is sent to Loki with the log entry.

@ -96,7 +96,7 @@ func (cfg *Config) RegisterFlags(f *flag.FlagSet) {
f.DurationVar(&cfg.CompactionInterval, "compactor.compaction-interval", 10*time.Minute, "Interval at which to re-run the compaction operation.")
f.DurationVar(&cfg.ApplyRetentionInterval, "compactor.apply-retention-interval", 0, "Interval at which to apply/enforce retention. 0 means run at same interval as compaction. If non-zero, it should always be a multiple of compaction interval.")
f.DurationVar(&cfg.RetentionDeleteDelay, "compactor.retention-delete-delay", 2*time.Hour, "Delay after which chunks will be fully deleted during retention.")
f.BoolVar(&cfg.RetentionEnabled, "compactor.retention-enabled", false, "(Experimental) Activate custom (per-stream,per-tenant) retention.")
f.BoolVar(&cfg.RetentionEnabled, "compactor.retention-enabled", false, "Activate custom (per-stream,per-tenant) retention.")
f.IntVar(&cfg.RetentionDeleteWorkCount, "compactor.retention-delete-worker-count", 150, "The total amount of worker to use to delete chunks.")
f.StringVar(&cfg.DeleteRequestStore, "compactor.delete-request-store", "", "Store used for managing delete requests.")
f.StringVar(&cfg.DeleteRequestStoreKeyPrefix, "compactor.delete-request-store.key-prefix", "index/", "Path prefix for storing delete requests.")

@ -85,7 +85,7 @@ type Config struct {
RateStore RateStoreConfig `yaml:"rate_store"`
// WriteFailuresLoggingCfg customizes write failures logging behavior.
WriteFailuresLogging writefailures.Cfg `yaml:"write_failures_logging" doc:"description=Experimental. Customize the logging of write failures."`
WriteFailuresLogging writefailures.Cfg `yaml:"write_failures_logging" doc:"description=Customize the logging of write failures."`
OTLPConfig push.GlobalOTLPConfig `yaml:"otlp_config"`
}

@ -7,15 +7,15 @@ import (
)
type Cfg struct {
LogRate flagext.ByteSize `yaml:"rate" category:"experimental"`
LogRate flagext.ByteSize `yaml:"rate"`
AddInsightsLabel bool `yaml:"add_insights_label" category:"experimental"`
AddInsightsLabel bool `yaml:"add_insights_label"`
}
// RegisterFlags registers distributor-related flags.
func (cfg *Cfg) RegisterFlagsWithPrefix(prefix string, fs *flag.FlagSet) {
_ = cfg.LogRate.Set("1KB")
fs.Var(&cfg.LogRate, prefix+".rate", "Experimental and subject to change. Log volume allowed (per second). Default: 1KB.")
fs.Var(&cfg.LogRate, prefix+".rate", "Log volume allowed (per second). Default: 1KB.")
fs.BoolVar(&cfg.AddInsightsLabel, prefix+".add-insights-label", false, "Experimental and subject to change. Whether a insight=true key should be logged or not. Default: false.")
fs.BoolVar(&cfg.AddInsightsLabel, prefix+".add-insights-label", false, "Whether a insight=true key should be logged or not. Default: false.")
}

@ -112,7 +112,7 @@ type Config struct {
Common common.Config `yaml:"common,omitempty"`
ShutdownDelay time.Duration `yaml:"shutdown_delay" category:"experimental"`
ShutdownDelay time.Duration `yaml:"shutdown_delay"`
MetricsNamespace string `yaml:"metrics_namespace"`
}

Loading…
Cancel
Save