Skip to content

Commit

Permalink
doc(storage-example-configs): AWS single store configs (#6196) (#6206)
Browse files Browse the repository at this point in the history
* doc(storage-example-configs): AWS single store configs

Our example configs are bit misleading here. Particularly AWS deployment.
https://grafana.com/docs/loki/latest/storage/#examples

As a new user, I come here and all I can conclude is, we cannot use s3 as a single store under AWS deployment. Doc seems to recommend AWS deployment always  needs S3 + DynamoDB.
(in fact it was real confusion for new user from the community)

https://grafana.slack.com/archives/CEPJRLQNL/p1652867888720979

Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>

* Update schema_config.configs.store

Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>
(cherry picked from commit a58dc3f)

Co-authored-by: Kaviraj Kanagaraj <kavirajkanagaraj@gmail.com>
  • Loading branch information
grafanabot and kavirajk authored May 20, 2022
1 parent bcc4379 commit b1b7ab9
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions docs/sources/storage/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ simplifies the operation and significantly lowers the cost of Loki.
Until Loki 2.0, index data was stored in a separate index.

Loki 2.0 brings an index mechanism named 'boltdb-shipper' and is what we now call Single Store Loki.
This index type only requires one store, the object store, for both the index and chunks.
More detailed information can be found on the [operations page]({{< relref "../operations/storage/boltdb-shipper.md" >}}).
This index type only requires one store, the object store, for both the index and chunks.
More detailed information can be found on the [operations page]({{< relref "../operations/storage/boltdb-shipper.md" >}}).

Some more storage details can also be found in the [operations section]({{< relref "../operations/storage/_index.md" >}}).

Expand Down Expand Up @@ -197,20 +197,23 @@ schema_config:
period: 24h
```

### AWS deployment (S3+DynamoDB)
### AWS deployment (S3 Single Store)

```yaml
storage_config:
boltdb_shipper:
active_index_directory: /loki/boltdb-shipper-active
cache_location: /loki/boltdb-shipper-cache
cache_ttl: 24h # Can be increased for faster performance over longer query periods, uses more disk space
shared_store: s3
aws:
s3: s3://<access_key>:<uri-encoded-secret-access-key>@<region>
bucketnames: <bucket1,bucket2>
dynamodb:
dynamodb_url: dynamodb://<access_key>:<uri-encoded-secret-access-key>@<region>
schema_config:
configs:
- from: 2020-07-01
store: aws
store: boltdb-shipper
object_store: aws
schema: v11
index:
Expand Down

0 comments on commit b1b7ab9

Please sign in to comment.