Skip to content

Commit

Permalink
Include example Prometheus command line (#884)
Browse files Browse the repository at this point in the history
Make it more clear what the Prometheus command line flags should be for sidecar use.
  • Loading branch information
SuperQ authored and bwplotka committed Mar 5, 2019
1 parent b4ee2fa commit 74a4b3b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/components/sidecar.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ Prometheus servers connected to the Thanos cluster via the sidecar are subject t
The retention is recommended to not be lower than three times the block duration. This achieves resilience in the face of connectivity issues
to the object storage since all local data will remain available within the Thanos cluster. If connectivity gets restored the backlog of blocks gets uploaded to the object storage.

```console
$ prometheus \
--storage.tsdb.max-block-duration=2h \
--storage.tsdb.min-block-duration=2h \
--web.enable-lifecycle
```

```console
$ thanos sidecar \
--tsdb.path "/path/to/prometheus/data/dir" \
--prometheus.url "http://localhost:9090" \
Expand Down

0 comments on commit 74a4b3b

Please sign in to comment.