Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update limits_config to new structure from #948 #1278

Merged
merged 3 commits into from
Nov 20, 2019
Merged
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
48 changes: 24 additions & 24 deletions docs/configuration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Configuration examples can be found in the [Configuration Examples](examples.md)

* [Configuration File Reference](#configuration-file-reference)
* [server_config](#server_config)
* [distributor_config](#distributor_config)
* [querier_config](#querier_config)
* [ingester_client_config](#ingester_client_config)
* [grpc_client_config](#grpc_client_config)
Expand Down Expand Up @@ -58,6 +59,9 @@ Supported contents and default values of `loki.yaml`:
# Configures the server of the launched module(s).
[server: <server_config>]

# Configures the distributor.
[distributor: <distributor_config>]

# Configures the querier. Only appropriate when running all modules or
# just the querier.
[querier: <querier_config>]
Expand Down Expand Up @@ -135,6 +139,15 @@ The `server_config` block configures Promtail's behavior as an HTTP server:
[http_path_prefix: <string>]
```

## distributor_config

The `distributor_config` block configures the Loki Distributor.

```yaml
# Period at which to reload user ingestion limits.
[limiter_reload_period: <duration> | default = 5m]
```

## querier_config

The `querier_config` block configures the Loki Querier.
Expand Down Expand Up @@ -663,23 +676,13 @@ The `limits_config` block configures global and per-tenant limits for ingesting
logs in Loki.

```yaml
# Per-user ingestion rate limit in samples per second.
[ingestion_rate: <float> | default = 25000]
# Per-user ingestion rate limit in sample size per second. Units in MB.
[ingestion_rate_mb: <float> | default = 4]

# Per-user allowed ingestion burst size (in number of samples).
[ingestion_burst_size: <int> | default = 50000]

# Whether or not, for all users, samples with external labels
# identifying replicas in an HA Prometheus setup will be handled.
[accept_ha_samples: <boolean> | default = false]

# Prometheus label to look for in samples to identify a
# Prometheus HA cluster.
[ha_cluster_label: <string> | default = "cluster"]

# Prometheus label to look for in samples to identify a Prometheus HA
# replica.
[ha_replica_label: <string> | default = "__replica__"]
# Per-user allowed ingestion burst size (in sample size). Units in MB. Warning,
# very high limits will be reset every limiter_reload_period defined in
# distributor_config.
[ingestion_burst_size_mb: <int> | default = 6]

# Maximum length of a label name.
[max_label_name_length: <int> | default = 1024]
Expand All @@ -703,14 +706,8 @@ logs in Loki.
# Enforce every sample has a metric name.
[enforce_metric_name: <boolean> | default = true]

# Maximum number of samples that a query can return.
[max_samples_per_query: <int> | default = 1000000]

# Maximum number of active series per user.
[max_series_per_user: <int> | default = 5000000]

# Maximum number of active series per metric name.
[max_series_per_metric: <int> | default = 50000]
# Maximum number of active streams per user.
[max_streams_per_user: <int> | default = 10e3]

# Maximum number of chunks that can be fetched by a single query.
[max_chunks_per_query: <int> | default = 2000000]
Expand All @@ -725,6 +722,9 @@ logs in Loki.
# Cardinality limit for index queries
[cardinality_limit: <int> | default = 100000]

# Maximum number of stream matchers per query.
[max_streams_matchers_per_query: <int> | default = 1000]

# Filename of per-user overrides file
[per_tenant_override_config: <string>]

Expand Down