Skip to content

Commit

Permalink
Merge pull request #6373 from pgier/update-docs-store-argument
Browse files Browse the repository at this point in the history
docs: replace --store with --endpoint
  • Loading branch information
fpetkovski authored May 18, 2023
2 parents b1faf12 + 4023bc4 commit 721a1f8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
12 changes: 6 additions & 6 deletions docs/components/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Example command to run Querier:
```bash
thanos query \
--http-address "0.0.0.0:9090" \
--store "<store-api>:<grpc-port>" \
--store "<store-api2>:<grpc-port>"
--endpoint "<store-api>:<grpc-port>" \
--endpoint "<store-api2>:<grpc-port>"
```

## Querier use cases, why do I need this component?
Expand Down Expand Up @@ -71,8 +71,8 @@ If we configure Querier like this:
thanos query \
--http-address "0.0.0.0:9090" \
--query.replica-label "replica" \
--store "<store-api>:<grpc-port>" \
--store "<store-api2>:<grpc-port>" \
--endpoint "<store-api>:<grpc-port>" \
--endpoint "<store-api2>:<grpc-port>" \
```

And we query for metric `up{job="prometheus",env="2"}` with this option we will get 2 results:
Expand All @@ -97,8 +97,8 @@ thanos query \
--http-address "0.0.0.0:9090" \
--query.replica-label "replica" \
--query.replica-label "replicaX" \
--store "<store-api>:<grpc-port>" \
--store "<store-api2>:<grpc-port>" \
--endpoint "<store-api>:<grpc-port>" \
--endpoint "<store-api2>:<grpc-port>" \
```

This logic can also be controlled via parameter on QueryAPI. More details below.
Expand Down
10 changes: 5 additions & 5 deletions docs/operating/cross-cluster-tls-communication.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ metadata:
- '--http-address=0.0.0.0:10902'
- '--query.replica-label=replica'
- >-
--store=dnssrv+_grpc._tcp.thanos-global-test-storegateway.thanos-global.svc.cluster.local
--endpoint=dnssrv+_grpc._tcp.thanos-global-test-storegateway.thanos-global.svc.cluster.local
- >-
--store=dnssrv+_grpc._tcp.thanos-global-test-sidecar.thanos-global.svc.cluster.local
--endpoint=dnssrv+_grpc._tcp.thanos-global-test-sidecar.thanos-global.svc.cluster.local
- >-
--store=dnssrv+_grpc._tcp.thanos-global-test-ruler.thanos-global.svc.cluster.local
--endpoint=dnssrv+_grpc._tcp.thanos-global-test-ruler.thanos-global.svc.cluster.local
- >-
--store=dnssrv+_[port_name]._tcp.[service-name].[namespace].svc.cluster.local
--endpoint=dnssrv+_[port_name]._tcp.[service-name].[namespace].svc.cluster.local
- >-
--store=dnssrv+_[port_name_2]._tcp.[service-name].[namespace].svc.cluster.local
--endpoint=dnssrv+_[port_name_2]._tcp.[service-name].[namespace].svc.cluster.local
ports:
- name: http
containerPort: 10902
Expand Down
16 changes: 8 additions & 8 deletions docs/quick-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ Below, we will set up a Thanos Querier to connect to our Sidecars, and expose it
```bash
thanos query \
--http-address 0.0.0.0:19192 \ # HTTP Endpoint for Thanos Querier UI
--store 1.2.3.4:19090 \ # Static gRPC Store API Address for the query node to query
--store 1.2.3.5:19090 \ # Also repeatable
--store dnssrv+_grpc._tcp.thanos-store.monitoring.svc # Supports DNS A & SRV records
--endpiont 1.2.3.4:19090 \ # Static gRPC Store API Address for the query node to query
--endpiont 1.2.3.5:19090 \ # Also repeatable
--endpiont dnssrv+_grpc._tcp.thanos-store.monitoring.svc # Supports DNS A & SRV records
```

Go to the configured HTTP address, which should now show a UI similar to that of Prometheus. You can now query across all Prometheus instances within the cluster. You can also check out the Stores page, which shows all of your stores.
Expand Down Expand Up @@ -162,8 +162,8 @@ Ensure your Prometheus instances have been reloaded with the configuration you d
```bash
thanos query \
--http-address 0.0.0.0:19192 \
--store 1.2.3.4:19090 \
--store 1.2.3.5:19090 \
--endpoint 1.2.3.4:19090 \
--endpoint 1.2.3.5:19090 \
--query.replica-label replica # Replica label for deduplication
--query.replica-label replicaX # Supports multiple replica labels for deduplication
```
Expand All @@ -182,9 +182,9 @@ There are various ways to tell Thanos Querier about the Store APIs it should que
thanos query \
--http-address 0.0.0.0:19192 \ # Endpoint for Thanos Querier UI
--grpc-address 0.0.0.0:19092 \ # gRPC endpoint for Store API
--store 1.2.3.4:19090 \ # Static gRPC Store API Address for the query node to query
--store 1.2.3.5:19090 \ # Also repeatable
--store dns+rest.thanos.peers:19092 # Use DNS lookup for getting all registered IPs as separate Store APIs
--endpoint 1.2.3.4:19090 \ # Static gRPC Store API Address for the query node to query
--endpoint 1.2.3.5:19090 \ # Also repeatable
--endpoint dns+rest.thanos.peers:19092 # Use DNS lookup for getting all registered IPs as separate Store APIs
```

Read more details [here](service-discovery.md).
Expand Down

0 comments on commit 721a1f8

Please sign in to comment.