It seems there is a new kind of standard to be able to evaluate costs.
https://www.opencost.io
A small deployment like this (it suppose you have already deployed kube-prometheus-stack):
helm upgrade --install opencost \
--repo https://opencost.github.io/opencost-helm-chart opencost \
--namespace opencost \
--create-namespace \
--set opencost.customPricing.enabled=true \
--set opencost.customPricing.costModel.description=Outscale-eu-west-2 \
--set opencost.customPricing.costModel.CPU=0.040 \
--set opencost.customPricing.costModel.spotCPU=0.040 \
--set opencost.customPricing.costModel.RAM=0.005 \
--set opencost.customPricing.costModel.spotRAM=0.005 \
--set opencost.customPricing.costModel.GPU=1.20 \
--set opencost.customPricing.costModel.storage=0.040 \
--set opencost.customPricing.costModel.zoneNetworkEgress=0 \
--set opencost.customPricing.costModel.regionNetworkEgress=0 \
--set opencost.customPricing.costModel.internetNetworkEgress=0 \
--set opencost.customPricing.costModel.zoneNetworkEgress=0 \
--set opencost.exporter.defaultClusterId=myprecious \
--set opencost.prometheus.internal.enabled=true \
--set opencost.prometheus.internal.serviceName=prometheus-operated \
--set opencost.prometheus.internal.namespaceName=monitoring \
--set opencost.prometheus.internal.port=9090 \
--set opencost.ui.enabled=true \
--set opencost.ui.ingress.enabled=true \
--set opencost.ui.ingress.ingressClassName=nginx \
--set opencost.ui.ingress.hosts[0].host=opencost.yourdomaine.fr \
--set opencost.ui.ingress.hosts[0].paths[0]=/ \
--set opencost.ui.ingress.tls[0].secretName=opencost.yourdomaine.fr \
--set opencost.ui.ingress.tls[0].hosts[0]=opencost.yourdomaine.fr \
--set opencost.metrics.namespace=opencost
For moment, building Grafana dashboards with osc-costs tools is much better but maybe it could be something to keep in mind.
It seems there is a new kind of standard to be able to evaluate costs.
https://www.opencost.io
A small deployment like this (it suppose you have already deployed kube-prometheus-stack):
For moment, building Grafana dashboards with osc-costs tools is much better but maybe it could be something to keep in mind.