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

Documentation: Recommend using the latest schema version (v11) #1608

Merged
merged 1 commit into from
Jan 31, 2020
Merged
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
2 changes: 1 addition & 1 deletion cmd/loki/loki-local-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ schema_config:
- from: 2018-04-15
store: boltdb
object_store: filesystem
schema: v9
schema: v11
index:
prefix: index_
period: 168h
Expand Down
8 changes: 4 additions & 4 deletions docs/configuration/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ schema_config:
- from: 2018-04-15
store: boltdb
object_store: filesystem
schema: v9
schema: v11
index:
prefix: index_
period: 168h
Expand Down Expand Up @@ -75,7 +75,7 @@ schema_config:
- from: 2018-04-15
store: bigtable
object_store: gcs
schema: v9
schema: v11
index:
prefix: loki_index_
period: 168h
Expand All @@ -99,7 +99,7 @@ schema_config:
- from: 2018-04-15
store: cassandra
object_store: filesystem
schema: v9
schema: v11
index:
prefix: cassandra_table
period: 168h
Expand Down Expand Up @@ -127,7 +127,7 @@ schema_config:
- from: 2018-04-15
store: aws
object_store: s3
schema: v9
schema: v11
index:
prefix: dynamodb_table_name
period: 0
Expand Down
2 changes: 1 addition & 1 deletion docs/operations/storage/retention.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ schema_config:
- from: 2018-04-15
store: bigtable
object_store: gcs
schema: v9
schema: v11
index:
prefix: loki_index_
period: 168h
Expand Down
10 changes: 5 additions & 5 deletions docs/operations/storage/table-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ for the query time range.
### Schema config example

For example, the following `schema_config` defines two configurations: the first
one using the schema `v8` and the current one using the `v9`.
one using the schema `v10` and the current one using the `v11`.

The first config stores data between `2019-01-01` and `2019-04-14` (included),
then a new config has been added - to upgrade the schema version to `v9` -
storing data using the `v9` schema from `2019-04-15` on.
then a new config has been added - to upgrade the schema version to `v11` -
storing data using the `v11` schema from `2019-04-15` on.

For each config, multiple tables are created, each one storing data for
`period` time (168 hours = 7 days).
Expand All @@ -80,13 +80,13 @@ schema_config:
configs:
- from: 2019-01-01
store: dynamo
schema: v8
schema: v10
index:
prefix: loki_
period: 168h
- from: 2019-04-15
store: dynamo
schema: v9
schema: v11
index:
prefix: loki_
period: 168h
Expand Down
2 changes: 1 addition & 1 deletion production/ksonnet/loki/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
from: '2018-04-15',
store: 'bigtable',
object_store: 'gcs',
schema: 'v9',
schema: 'v11',
index: {
prefix: '%s_index_' % $._config.table_prefix,
period: '%dh' % $._config.index_period_hours,
Expand Down