Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions docs/sources/configure/bp-configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,50 @@ Loki and Promtail have flags which will dump the entire config object to stderr
`-print-config-stderr` works well when invoking Loki from the command line, as you can get a quick output of the entire Loki configuration.

`-log-config-reverse-order` is the flag Grafana runs Loki with in all our environments. The configuration entries are reversed, so that the order of the configuration reads correctly top to bottom when viewed in Grafana's Explore.

## Recommended production limits

```yaml
limits_config:
# Rate limits
ingestion_rate_strategy: global
ingestion_rate_mb: 10
ingestion_burst_size_mb: 20
per_stream_rate_limit: 3MB
per_stream_rate_limit_burst: 15MB

# Stream limits
max_global_streams_per_user: 10000
max_streams_per_user: 0

# Validation
max_line_size: 256KB
max_line_size_truncate: false
max_label_name_length: 1024
max_label_value_length: 2048
max_label_names_per_series: 15

# Time constraints
reject_old_samples: true
reject_old_samples_max_age: 168h # 7 days
creation_grace_period: 10m
unordered_writes: true
```

## Recommended Ingester configuration

```yaml
ingester:
# Chunk settings
chunk_idle_period: 30m
chunk_target_size: 1572864 # 1.5 MB
chunk_encoding: snappy
max_chunk_age: 2h

# WAL settings
wal:
enabled: true
dir: /loki/wal
checkpoint_duration: 5m
flush_on_shutdown: true
```
Loading