Skip to content

Commit

Permalink
provide Cassandra Index Store Example (grafana#625)
Browse files Browse the repository at this point in the history
Mentioned in title. To save new beginner's time, provide one config example for use Cassandra as Index Storage.
  • Loading branch information
mizeng authored and slim-bean committed May 31, 2019
1 parent e910059 commit 01035c2
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docs/operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,33 @@ The chunks are stored under `/tmp/loki/chunks`.
Loki has support for Google Cloud storage.
Take a look at our [production setup](https://github.com/grafana/loki/blob/a422f394bb4660c98f7d692e16c3cc28747b7abd/production/ksonnet/loki/config.libsonnet#L55) for the relevant configuration fields.

### Cassandra

Loki can use Cassandra for the index storage. Please pull the **latest** Loki docker image or build from **latest** source code. Example config for using Cassandra:

```yaml
schema_config:
configs:
- from: 2018-04-15
store: cassandra
object_store: filesystem
schema: v9
index:
prefix: cassandra_table
period: 168h

storage_config:
cassandra:
username: cassandra
password: cassandra
addresses: 127.0.0.1
auth: true
keyspace: lokiindex

filesystem:
directory: /tmp/loki/chunks
```
### AWS S3 & DynamoDB
Example config for using S3 & DynamoDB:
Expand Down

0 comments on commit 01035c2

Please sign in to comment.