This is the PoC version of kubecost-exporter. The kubecost is able to export out-of-cluster metrics to a prometheus, but there is no detailed information about labels and properties of exported objects. This exporter uses Asets API to export data from the cost-model to prometheus. Also I was told by the kubecost support team that they will deprecate the out-of-cluster costs export to a prometheus, so we decided to write our own exporter.
As for now it doesn't support any filtering and can only export all assets data provided by the kubecost Assets API.
- Write tests!!
- Context usage to cancel requests
- Add the ability to handle user defined filters.
- Add basic auth support for the KubeCost client api.
- Refactor some parts of code marked with TODO labels. (and maybe something else)
- Add something to this list :)