nebari icon indicating copy to clipboard operation
nebari copied to clipboard

Cost monitoring of QHub cluster

Open tylerpotts opened this issue 3 years ago • 4 comments

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

tylerpotts avatar Aug 24 '21 13:08 tylerpotts

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.

tylerpotts avatar Aug 24 '21 13:08 tylerpotts

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.

github-actions[bot] avatar Oct 25 '21 01:10 github-actions[bot]

Useful feature. Let's keep this issue open.

pierrotsmnrd avatar Oct 25 '21 13:10 pierrotsmnrd

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 avatar May 10 '22 17:05 viniciusdc

@viniciusdc what is the status of this?

trallard avatar Jan 12 '23 18:01 trallard

Although we included Infracost to our CLI last year, this wasn't quite what we were looking for. Infracost was also recently removed.

iameskild avatar May 29 '23 16:05 iameskild