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

Make-so monitor tool's home page shows basic health stats such as % of database PVC's storage space that is used (showing redder the more full it is) #330

Closed
Venryx opened this issue Jun 25, 2024 · 0 comments

Comments

@Venryx
Copy link
Collaborator

Venryx commented Jun 25, 2024

The monitor tool's home page can be found here: https://github.com/debate-map/app/blob/main/Packages/monitor-client/Source/UI/Home.tsx

The "database PVC" is the "persistent volume claim" in Kubernetes for the database pod. It should be 10gb in size, in both the local and remote clusters.

The monitor tool's frontend can call into the backend (https://github.com/debate-map/app/blob/main/Packages/monitor-backend), which can itself call the exec_command_in_another_pod function here: https://github.com/debate-map/app/blob/dd091e8614ea8b3c496d3a74e8a7f907f2dffc41/Packages/rust-shared/src/utils/_k8s.rs

The pod to run the size-usage command in would be the "debate-map-instance1-XXXX-0" pod.

For the command to run, it should be workable to execute df, and then parse the use% column for the "/dev/sdd" row.

@Venryx Venryx closed this as completed Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant