Go cost-optimization

Open-source Go projects categorized as cost-optimization

Top 12 Go cost-optimization Projects

cost-optimization
  • infracost

    Cloud cost estimates for Terraform in pull requests💰📉 Shift FinOps Left!

    Project mention: Show HN: See the impact on your cloud costs as you code | news.ycombinator.com | 2024-08-13

    Hi, my name is Owen and I recently started working at Infracost (YC W21 batch) (https://infracost.io). Infracost shows engineers how much their code changes will cost on the cloud before it gets deployed. For example, when an engineer changes a cloud resource (like an AWS virtual machine), Infracost posts a comment in CI/CD telling them "This change is going to increase your costs by 25% next month from $500/m to $625/m".

    Previously, I was one of the founders of tfsec, the code security scanner; I quickly realised that identifying issues in your code (especially infrastructure code, i.e. Terraform) as soon as possible was the best defence. A lot of the principles of code scanning for security misconfigurations translate well to identifying cost impact. Many times, people are surprised by how cloud resources are priced and how expensive they can be. It is also really unfair that engineers are never given a ‘checkout screen’ when buying infrastructure, and then are blamed for breaking cloud budgets.

    I believe engineers should have access to key information about cloud costs at the time of writing the code. So, I spent some time and built an Infracost plugin for the IntelliJ family of IDEs (https://plugins.jetbrains.com/plugin/24761-infracost).

    With this plugin installed, as you develop your Terraform code, you will get the cost impact of your current project, and quickly see where the expensive resources are hiding in your code (just hit save & it will recalculate). Two main use cases I’m thinking of:

    - As you change resources, you can see the cost impact. For example, I increased the instance size from my Dev to Prod environment to handle the prod-sized workloads, and I can see the increase costs.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • opencost

    Cost monitoring for Kubernetes workloads and cloud costs

    Project mention: Kubernetes Cost Management with the New OpenCost Plugin for Headlamp | news.ycombinator.com | 2024-08-14

    I believe for AWS, they use these ratios: https://github.com/opencost/opencost/blob/c2de805f66d0ba0e53...

    So in your example, 6 CPU + 16GiB is roughly 2x more than 2 CPU and 16GiB, so if that node cost say $6/hr, you'd expect it to be allocated $2 to the first and $4 to the second.

    They have these weights for various clouds here: https://github.com/opencost/opencost/tree/c2de805f66d0ba0e53...

  • komiser

    Open-source cloud-environment inspector. Supporting AWS, GCP, Azure, and more! Your cloud resources will have nowhere to hide!

    Project mention: Managing Cloud Costs and Security with Tailwarden | dev.to | 2024-09-09

    Another option is a similar product offered by Tailwarden, which is open source. It will offer a few different options and the hosting part will be up to you. This is Komiser, whose code is available on Github, and which provides a Docker image.

  • terracost

    Cloud cost estimation for Terraform in your CLI

  • kubesurvival

    💰 Significantly reduce Kubernetes costs by finding the cheapest machine types that can run your workloads

  • awsdtc

    AWS Data Transfer Cost Explorer

  • aws-ipv4-cost-viewer

    CLI tool that shows the future public IPv4 costs for a variety of AWS resources across all AWS regions from an account.

  • savings-estimator

    Desktop application for Windows, Mac and Linux that can be used to estimate your Spot savings and optionally prepare configuration for our AutoSpotting Spot optimization engine.

  • ckia

    ckia (cloud know it all), an open source tool for making recommendations for target cloud account. An open source alternative to AWS Trusted Advisor.

  • EBS-Optimizer

    Source code of the initial version of the EBS Optimizer tool made available on the AWS Marketplace.

    Project mention: Releasing my CLI FinOps tools and Terraform building blocks in the ONCE model | news.ycombinator.com | 2024-06-04

    - EBS Optimizer for GP3 converting EBS volumes to GP3, also available as OSS at https://github.com/LeanerCloud/EBS-Optimizer

    (I'm currently working on a few more, for example a NAT Gateway alternative and a tool to automate Savings plans purchases.)

    Over the last year I started to offer cost optimization as a service, mainly in order to get more ideas for such tools.

    Over multiple customer engagements I built almost a dozen CLI tools that can be used to optimize many of the AWS services at my customers.

    I also did a few DevOps engagements, out of which I developed a bunch of Terraform building blocks that can be used to create ECS Fargate or Lambda microservices with RDS Aurora for persistence, with automated CI/CD and other goodies included out of the box.

    My main FinOps CLI tool named Optimizer was evolved out of EBS Optimizer over multiple customer engagements, and now does automated conversion to GP3 for EC2 and RDS storage volumes, as well as rightsizing and conversion to Graviton for RDS, ElastiCache and OpenSearch, among other things.

    I recently started to offer Optimizer under the ONCE Source-Available license used by 37signals for Campfire, and I will gradually release all my CLI FinOps tools and Terraform building blocks as a bundle under the same license.

    Using this set of tools I was able to deliver some 70% cost optimizations in average at my services customers (over the supported resources), so if you're looking to optimize cloud costs and/or build serverless microservices on AWS, you may want to check this out.

  • custom-log-marshaler

    Attempt to R.I.P PII or unnecessary info in logs and reduce log ingestion costs in the process.

  • cloudcycle

    Cloud resource lifecycle scheduler to save and avoid surprising cost

    Project mention: CloudCycle - Set lifecycle for your cloud resources to avoid surprising costs | dev.to | 2024-05-25
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go cost-optimization discussion

Log in or Post with

Go cost-optimization related posts

  • Managing Cloud Costs and Security with Tailwarden

    1 project | dev.to | 9 Sep 2024
  • Chasquid – SMTP server focused on simplicity

    2 projects | news.ycombinator.com | 3 Dec 2023
  • CLI tool that shows the future public IPv4 costs for a variety of AWS resources

    1 project | news.ycombinator.com | 2 Oct 2023
  • ckia (cloud know it all) An open source alternative to AWS trusted Advisor

    1 project | /r/aws | 5 Apr 2023
  • Go: Don't log any data that is unnecessary or should not be logged in the first place

    1 project | /r/programming | 21 Feb 2023
  • Leverage marshal methods to contain PII/ingestion costs in Go

    1 project | /r/programming | 15 Feb 2023
  • Leverage Uber Zap/Zerolog's marshal methods to contain PII/ingestion costs

    1 project | news.ycombinator.com | 15 Feb 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 6 Dec 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

What are some of the best open-source cost-optimization projects in Go? This list will help you:

Project Stars
1 infracost 11,086
2 opencost 5,373
3 komiser 3,982
4 terracost 295
5 kubesurvival 185
6 awsdtc 90
7 aws-ipv4-cost-viewer 84
8 savings-estimator 29
9 ckia 21
10 EBS-Optimizer 15
11 custom-log-marshaler 14
12 cloudcycle 0

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you konow that Go is
the 4th most popular programming language
based on number of metions?