Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenCost ? #129

Open
albundy83 opened this issue Jan 19, 2024 · 1 comment
Open

OpenCost ? #129

albundy83 opened this issue Jan 19, 2024 · 1 comment

Comments

@albundy83
Copy link

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.

@jerome-jutteau
Copy link
Contributor

Thanks for sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants