Cluster cost management
Release notes
GitLab provides cluster cost management insights built around Kubecost. Cluster cost management provides insights into cluster resource usage. The provided Kubecost integration allows flexible insights at various levels of the cluster. The provided cost template shows monthly node costs and the costs of GitLab Managed Apps. Custom dashboards can be built around the 9 metrics provided by Kubecost and the Prometheus query functionalities of GitLab.
Proposal
In order to provide an MVC approach to cluster cost management, I propose running a time-boxed experiment to integrate kubecost under GitLab's metrics page.
The full Kubecost product is a cross-platform cluster cost management tool that can support several clusters and comes with its own Prometheus and Grafana installations that can be exchanged to existing instances. The kubecost
project linked above (with smallcaps) is a single-pod installation of the Kubecost that ships under Apache license v2 and that we might be able to use easily with GitLab.
If we can get kubecost data to show up under GitLab, we can decide if we would like to partner with Kubecost to provide an integrated experience of their full product offering and support single pod installations for quick getting started.
Definition of Done
-
Spend max 3 days on setting up the integration OR -
Get kubecost
installed and its data shown under a GitLab Metrics page as a custom Prometheus metric -
Document installation and setup - https://youtu.be/G12_2AaanVI
If time permits:
-
Get Kubecost installed and study its options to be used with a GitLab provided Prometheus -
Provide a demo walk-through of Kubecost -
Document a proposal on how to move forward with Kubecost/kubecost