@ -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
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.")
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.")