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

[Feature] include total weave size of all partitions configured #417

Open
heavyarms2112 opened this issue Apr 26, 2023 · 2 comments
Open

Comments

@heavyarms2112
Copy link

curl localhost:1984/metrics | grep v2_index_data_size_by_packing | grep spora_2_6

Currently the above would result in chunk size total for each partition. Can we sum it up and have a counter for same available in metrics?

@ldmberman
Copy link
Member

Hi, you could set up Grafana and create an aggregate query or use a bash script - | grep v2_index_data_size_by_packing | grep spora_2_6 | awk '{print $NF}' | awk '{ sum += $1; } END { print sum; }' "$@".

@heavyarms2112
Copy link
Author

I already do it in bash like below. Is that hard to implement in metrics?
curl -s localhost:1988/metrics | grep v2_index_data_size_by_packing | grep spora_2_6 | awk -F' ' '{sum+=$2;} END{print sum/1000000000;}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants