Skip to content

Commit

Permalink
Add Redis section
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel González Lopes <[email protected]>
  • Loading branch information
dgzlopes committed Nov 24, 2020
1 parent 81ea1e9 commit 212ce13
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/tempo/website/configuration/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@ compactor:
```

## [Storage](https:/grafana/tempo/blob/master/tempodb/config.go)
The storage block is used to configure TempoDB. It supports S3, GCS, local file system, and optionally can use memcached for increased query performance.
The storage block is used to configure TempoDB. It supports S3, GCS, local file system, and optionally can use Memcached or Redis for increased query performance.

The following example shows common options. For platform-specific options refer to the following:
* [S3](s3/)
* [Redis](redis/)

```
storage:
Expand Down
23 changes: 23 additions & 0 deletions docs/tempo/website/configuration/redis.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: Redis
---

# Redis Configuration
Redis caching is configured in the storage block.

```
storage:
trace:
redis:
endpoint: redis # redis endpoint to use when caching.
timeout: 500ms # optional. maximum time to wait before giving up on redis requests. (default 100ms)
master-name: redis-master # optional. redis Sentinel master name. (default "")
db: 0 # optional. database index. (default 0)
expiration: 0s # optional. how long keys stay in the redis. (default 0)
tls-enabled: false # optional. enable connecting to redis with TLS. (default false)
tls-insecure-skip-verify: false # optional. skip validating server certificate. (default false)
pool-size: 0 # optional. maximum number of connections in the pool. (default 0)
password: ... # optional. password to use when connecting to redis. (default "")
idle-timeout: 0s # optional. close connections after remaining idle for this duration. (default 0s)
max-connection-age: 0s # optional. close connections older than this duration. (default 0s)
```

0 comments on commit 212ce13

Please sign in to comment.