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

Support theia commands to get diagnostic infos about Clickhouse DB/Spark #54

Closed
yuntanghsu opened this issue Jun 21, 2022 · 0 comments · Fixed by #59
Closed

Support theia commands to get diagnostic infos about Clickhouse DB/Spark #54

yuntanghsu opened this issue Jun 21, 2022 · 0 comments · Fixed by #59
Assignees
Labels
enhancement New feature or request

Comments

@yuntanghsu
Copy link
Contributor

yuntanghsu commented Jun 21, 2022

Describe what you are trying to solve:

Currently, if we want to acquire metrics from Clickhouse database, we need to go to each shards (clickhouse cluster) to send queries to get the infos we need, which is time consuming.

Describe the solution you have in mind
:

Using CLI to directly send built-in queries to retrieve metrics from Clickhouse database.

Describe how your solution impacts user flows
:

User can acquire the basic infos (storage usage, table infos, current insertion rate) for each shards.
User can choose whether to print the 2-d array or print the returned metrics by using --print-table flag

For example, when user type
theia get clickhouse --diskInfo --print-table

Shard Name Path Free Total Used Percentage
1 default /var/lib/clickhouse/ 1.75 GiB  1.84 GiB 5.04
2 default /var/lib/clickhouse/ 1.75 GiB  1.84 GiB 4.81
@yuntanghsu yuntanghsu added the enhancement New feature or request label Jun 21, 2022
@yuntanghsu yuntanghsu added this to the 0.2 milestone Jun 21, 2022
@yuntanghsu yuntanghsu self-assigned this Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant