Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Katacoda multi-tenant tutorial #4318

Merged
merged 1 commit into from
Jun 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions tutorials/katacoda/thanos/7-multi-tenancy/step2.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ So why not we start something like this in front of our "Tomato" Querier?
```
docker run -d --net=host --rm \
--name prom-label-proxy \
quay.io/thanos/prom-label-proxy:v0.3.0-rc.0-ext1 \
quay.io/prometheuscommunity/prom-label-proxy:v0.3.0 \
-label tenant \
-upstream http://127.0.0.1:29090 \
-insecure-listen-address 0.0.0.0:39090 \
-non-api-path-passthrough \
-enable-label-apis && echo "Started prom-label-proxy"
```{{execute}}

Expand Down Expand Up @@ -97,8 +96,21 @@ At the end we should have setup as on following diagram:

Let's check if our read isolation works:

* [Query for Fruit Team through Caddy 39091 port](https://[[HOST_SUBDOMAIN]]-39091-[[KATACODA_HOST]].environments.katacoda.com/)
* [Query for Veggie Team through Caddy 39092 port](https://[[HOST_SUBDOMAIN]]-39092-[[KATACODA_HOST]].environments.katacoda.com/)
#### Team Fruit

Firstly for `Team Fruit`, let's make a query for some data:
```
curl -g 'http://127.0.0.1:39091/api/v1/query?query=up'
```{{execute}}
Inspecting the output we should only see metrics with `"tenant":"team-fruit"`.

#### Team Veggie

Secondly for `Team Veggie`, let's make the same query to the other port:
```
curl -g 'http://127.0.0.1:39092/api/v1/query?query=up'
```{{execute}}
Inspecting the output we should only see metrics with `"tenant":"team-veggie"`.

Feel free to play around, you will see that we can only see Fruit or Veggie data depends where we go!

Expand Down