-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
CLI tool to inspect stores #5942
base: main
Are you sure you want to change the base?
CLI tool to inspect stores #5942
Conversation
949e50f
to
c3c2fec
Compare
24e729d
to
7c214a9
Compare
Hi @pedro-stanaka, could you please also attach some screenshots of how this tool looks like? |
Added to the PR body. |
f54fe58
to
fda7a9c
Compare
fda7a9c
to
324c708
Compare
Started to implement CLI Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com> Initial setup Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com> Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
Importing uber atomic Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com> removing println Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com> Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com> Adding headers Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
324c708
to
5425ee8
Compare
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
Signed-off-by: Pedro Tanaka <pedro.tanaka@shopify.com>
Hello 👋 Looks like there was no activity on this amazing PR for the last 30 days. |
Hello folks. Is this still of interest? Otherwise I can close the PR. |
/remind me in 1 week |
Summary
I am adding a new CLI tool that fetches information from all stores (discovered through DNS SRV records) and display which stores have blocks that match a set of label pairs.
I am just laying the foundation here for other sub-commands to come, I don't want to add all of them in a single PR to avoid having a HUGE PR.
Note for reviewers: I did not know where to put auxiliary code for this tool. So I added it to
cmd
, let me know where it would be better to put this.One other idea I had was to move these tools to a repository in the community org, then we could just import runnable functions here. This we could decouple lots of logic that lives inside of thanos but are not related to thanos directly.
Related to #5399
Preview
Here is one example execution of the command in a deployment with over 200 store-gw instances:
Changes
Verification