nebari
nebari copied to clipboard
Cost monitoring of QHub cluster
Summary
This is a large issue that we see come up a lot. Would like to have some way to assess costs of specific users and groups etc. Currently the most promising one is kubecost which has an open core model which should be easy enough to integrate.
Proposed implementation
Using the kubecost helm chart create a helm chart and tie into the monitoring work with prometheus and grafana. This should not be implemented until this issue is implemented. Looks like kubecost does not implement authentication and will need to rely on sso and traefik-forward-auth for authentication.
Acceptance Criteria
- [ ] kubecost is secured behind sso and only allows authenticated users
- [ ] kubecost is explosed under the prefix path
/cost/*
- [ ] User is able to view the realtime costs of the given cluster
- [ ] Kubecost reuses the prometheus server deployed for monitoring
Tasks to complete
Related to
per @danlester
Please see my kubecost branch where I did most of this already.
It runs the 'full version' of Kubecost and doesn't share prometheus etc.
This issue has been automatically marked as stale because there was no recent activity in 60 days. Remove the stale label or add a comment, otherwise, this issue will automatically be closed in 7 days if no further activity occurs.
Useful feature. Let's keep this issue open.
We are currently working on a custom tool to get the costs data and monitoring. I will update this once we get a POT available for testing.
@viniciusdc what is the status of this?
Although we included Infracost to our CLI last year, this wasn't quite what we were looking for. Infracost was also recently removed.