-
Notifications
You must be signed in to change notification settings - Fork 60
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 requests - Output + Implementations #101
Comments
@niscinfo thanks for this request! I think it's cool. have any example requests that you're picturing for filtering? just want to get a sense for any specific use case you may have. |
Thank you for the feedback @niscinfo! I'm glad you're using Output formatsI'm undecided if we should use the (Note that the Assets API does have format=csv as an option) I think what we're finding here is that the ergonomic benefits of Formatting output as CSVThis should be fairly straightforward even if we don't use the We could add a CLI flag like Formatting output as JSONWe could add a similar Additional query optionsFiltersAs Webb asked, what filters are you specifically looking for that are missing? This could be addressed as part of my ideas in the next section: AggregationsI think there's a huge opportunity here to both simplify the code and expand functionality. My vision is that this would look something like:
Where |
Thanks for quick answers. Any idea is welcome Regards, |
Hey @niscinfo,
At the end of the day, # In one terminal
kubectl port-forward \
--namespace kubecost \
service/kubecost-cost-analyzer \
9090 # In another terminal
curl -G 'localhost:9090/model/allocation' \
-d 'window=7d' \
-d 'aggregate=namespace' \
-d 'accumulate=true' Reference our Allocation API docs for other parameters! |
Hey @michaelmdresser Thank you for the trick ! But it's a enhancement so no hurry about that. Thanks for all ! |
Hello to all,
I'm opening this issue, for 2 feature requests.
First one would be to be able to get the output of kubectl-cost formatted in CSV and/or JSON.
From the [https://github.com/kubecost/docs/blob/master/allocation.md#querying] documentation it is possible by API calls ("format").
Second would be the possibility to use other query stuff from querying (same link as above) , like the aggregation options, and the filters.
Thanks for all the work and in advance for further
Regards,
The text was updated successfully, but these errors were encountered: