{"id":80524,"date":"2026-12-02T07:09:54","date_gmt":"2026-12-02T07:09:54","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=80524"},"modified":"2026-12-02T07:09:56","modified_gmt":"2026-12-02T07:09:56","slug":"best-free-and-open-source-finops-tools-the-complete-practical-guide","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/best-free-and-open-source-finops-tools-the-complete-practical-guide\/","title":{"rendered":"Best Free and Open-Source FinOps Tools: The Complete Practical Guide"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"630\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/featured-graphic-showing-eight-actual-open-source.png\" alt=\"Featured graphic showing eight actual open-source or open-core FinOps tools and a cost trend chart.\" class=\"wp-image-80525\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/featured-graphic-showing-eight-actual-open-source.png 1200w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/featured-graphic-showing-eight-actual-open-source-300x158.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/featured-graphic-showing-eight-actual-open-source-1024x538.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/featured-graphic-showing-eight-actual-open-source-768x403.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/featured-graphic-showing-eight-actual-open-source-820x430.png 820w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"figure-caption wp-block-paragraph\">\n  Featured image: Open-source FinOps tools for cost visibility, forecasting and optimization.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Cloud and SaaS make it easy to deploy technology and equally easy to lose track of spending. When AWS, Google Cloud, Kubernetes, MongoDB Atlas, Confluent, Datadog and software subscriptions each have separate bills, the finance and engineering teams need a reliable way to understand, allocate, predict and optimize the total cost.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  This hands-on guide compares 14 tools, from complete multi-cloud cost management platforms to Kubernetes allocation engines, policy automation, pre-deployment estimation, financial dashboards and statistical forecasting. It also shows how to combine them into a practical enterprise FinOps system.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  The short answer: evaluate OptScale for ready-made multi-cloud management and OpenCost for Kubernetes. For consolidated cloud and SaaS expenditure, build a FOCUS-aligned billing ledger and use Apache Superset or Grafana to visualize it. Add forecasting and governance tools when the data is reliable.\n<\/p>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Technical scope: documentation reviewed in December 2026. Cloud, Kubernetes and installation examples are documented, independently untested; the local Python\/SQLite lab is executed and verified. Check supported release versions and permissions before deployment.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. FinOps fundamentals and the tool landscape<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">What are FinOps tools?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  FinOps is a collaborative practice that helps teams maximize the business value of technology spending. FinOps tools collect and analyze cost and usage data, help assign ownership, improve forecasting and guide operational decisions. Reducing waste is important, but financial efficiency must be balanced with reliability, security and business growth.\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"532\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/four-stage-flow-from-cloud-saas-and-kubernetes-in.png\" alt=\"Four-stage flow from cloud, SaaS and Kubernetes inputs to standardized cost data, analytics, optimization and operational decisions.\" class=\"wp-image-80526\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/four-stage-flow-from-cloud-saas-and-kubernetes-in.png 1200w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/four-stage-flow-from-cloud-saas-and-kubernetes-in-300x133.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/four-stage-flow-from-cloud-saas-and-kubernetes-in-1024x454.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/four-stage-flow-from-cloud-saas-and-kubernetes-in-768x340.png 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"figure-caption wp-block-paragraph\">\n  Figure 1. A typical FinOps data and action lifecycle.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Different kinds of FinOps tools<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  Category\n<\/p><\/th><th><p>\n  What it delivers\n<\/p><\/th><th><p>\n  Examples\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  Cost management\n<\/p><\/td><td><p>\n  Billing visibility, allocations, forecasts\n<\/p><\/td><td><p>\n  OptScale, Koku, OpenCost\n<\/p><\/td><\/tr><tr><td><p>\n  Shift-left\n<\/p><\/td><td><p>\n  Estimated cost before deployment\n<\/p><\/td><td><p>\n  Infracost\n<\/p><\/td><\/tr><tr><td><p>\n  Optimization\n<\/p><\/td><td><p>\n  Resource recommendations or actions\n<\/p><\/td><td><p>\n  KRR, Goldilocks, Karpenter\n<\/p><\/td><\/tr><tr><td><p>\n  Governance\n<\/p><\/td><td><p>\n  Policies and approved workflows\n<\/p><\/td><td><p>\n  Cloud Custodian, OpenOps\n<\/p><\/td><\/tr><tr><td><p>\n  Analytics\n<\/p><\/td><td><p>\n  SQL, dashboards, forecasting models\n<\/p><\/td><td><p>\n  Steampipe, Powerpipe, Superset, Grafana, StatsForecast\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Official resources: <a href=\"https:\/\/www.finops.org\/framework\/\" rel=\"noopener\">FinOps Foundation framework<\/a>  |  <a href=\"https:\/\/focus.finops.org\/\" rel=\"noopener\">FOCUS specification<\/a>\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. Best open-source FinOps tools at a glance<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  The table compares distinct capabilities, not a single ranking. A \u201cfree\u201d license covers the named software, not infrastructure, provider API fees, support, or commercial add-ons. Check each component and dependency before enterprise adoption.\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  Tool\n<\/p><\/th><th><p>\n  License \/ model\n<\/p><\/th><th><p>\n  Primary capability\n<\/p><\/th><th><p>\n  Best for\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  OpenCost\n<\/p><\/td><td><p>\n  Apache-2.0\n<\/p><\/td><td><p>\n  Cost allocation, cloud billing\n<\/p><\/td><td><p>\n  Kubernetes and shared clusters\n<\/p><\/td><\/tr><tr><td><p>\n  OptScale\n<\/p><\/td><td><p>\n  Apache-2.0\n<\/p><\/td><td><p>\n  Multi-cloud management\n<\/p><\/td><td><p>\n  Ready-made FinOps portal\n<\/p><\/td><\/tr><tr><td><p>\n  Project Koku\n<\/p><\/td><td><p>\n  Open source; review notices\n<\/p><\/td><td><p>\n  Cost-processing backend\n<\/p><\/td><td><p>\n  Hybrid cloud analytics\n<\/p><\/td><\/tr><tr><td><p>\n  Cloud Custodian\n<\/p><\/td><td><p>\n  Apache-2.0\n<\/p><\/td><td><p>\n  Policy-as-code\n<\/p><\/td><td><p>\n  Cloud governance\n<\/p><\/td><\/tr><tr><td><p>\n  OpenOps\n<\/p><\/td><td><p>\n  Apache-2.0 community\n<\/p><\/td><td><p>\n  FinOps workflows\n<\/p><\/td><td><p>\n  Approval-based automation\n<\/p><\/td><\/tr><tr><td><p>\n  Infracost\n<\/p><\/td><td><p>\n  Apache-2.0 core; hosted service\n<\/p><\/td><td><p>\n  IaC cost estimation\n<\/p><\/td><td><p>\n  Terraform\/CI reviews\n<\/p><\/td><\/tr><tr><td><p>\n  Steampipe\n<\/p><\/td><td><p>\n  AGPL-3.0 core\n<\/p><\/td><td><p>\n  SQL resource queries\n<\/p><\/td><td><p>\n  Waste audits and inventory\n<\/p><\/td><\/tr><tr><td><p>\n  Powerpipe\n<\/p><\/td><td><p>\n  AGPL-3.0 core\n<\/p><\/td><td><p>\n  Dashboards and benchmarks\n<\/p><\/td><td><p>\n  Optimization checks\n<\/p><\/td><\/tr><tr><td><p>\n  KRR\n<\/p><\/td><td><p>\n  MIT\n<\/p><\/td><td><p>\n  CPU and memory recommendations\n<\/p><\/td><td><p>\n  Kubernetes workload sizing\n<\/p><\/td><\/tr><tr><td><p>\n  Goldilocks\n<\/p><\/td><td><p>\n  Apache-2.0\n<\/p><\/td><td><p>\n  VPA recommendations\n<\/p><\/td><td><p>\n  Visual workload sizing\n<\/p><\/td><\/tr><tr><td><p>\n  Karpenter\n<\/p><\/td><td><p>\n  Apache-2.0\n<\/p><\/td><td><p>\n  Node provisioning and consolidation\n<\/p><\/td><td><p>\n  Kubernetes capacity\n<\/p><\/td><\/tr><tr><td><p>\n  Apache Superset\n<\/p><\/td><td><p>\n  Apache-2.0\n<\/p><\/td><td><p>\n  Business intelligence\n<\/p><\/td><td><p>\n  Financial dashboards\n<\/p><\/td><\/tr><tr><td><p>\n  Grafana OSS\n<\/p><\/td><td><p>\n  AGPL-3.0 core\n<\/p><\/td><td><p>\n  Monitoring and alerting\n<\/p><\/td><td><p>\n  Operational costs\n<\/p><\/td><\/tr><tr><td><p>\n  StatsForecast\n<\/p><\/td><td><p>\n  Apache-2.0\n<\/p><\/td><td><p>\n  Time-series models\n<\/p><\/td><td><p>\n  Forecasting engine\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">How to evaluate an open-source tool<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Verify license obligations, release activity, support policy, authentication, billing integrations, data export and operational complexity. Start with read-only access and real billing reconciliation rather than assuming a visually impressive dashboard is financially accurate.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  A tool can estimate savings without measuring actual expenditure. A dashboard can display expenditure without collecting it. A workload cost allocator can split an invoice but must not be added to that invoice as a second expense.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. OpenCost: Kubernetes cost allocation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  OpenCost is a CNCF project that estimates and allocates Kubernetes infrastructure costs using resource metrics, pricing and optional cloud billing integrations. It is especially helpful when multiple teams or environments share a cluster.\n<\/p>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Official resources: <a href=\"https:\/\/github.com\/opencost\/opencost\" rel=\"noopener\">Project<\/a>  |  <a href=\"https:\/\/opencost.io\/docs\/installation\/helm\/\" rel=\"noopener\">Helm installation<\/a>  |  <a href=\"https:\/\/github.com\/opencost\/opencost-plugins\" rel=\"noopener\">Plugins<\/a>\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Capabilities and architecture<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Allocate node, CPU, memory, GPU, volume and other supported costs across namespaces, workloads and labels; query historical windows; and use cloud-cost integrations where configured. Prometheus is a dependency for resource metrics. Custom cost plugins can import external costs, including supported MongoDB and Datadog sources, but coverage and historical behavior vary.\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"532\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/opencost-connects-kubernetes-metrics-in-prometheus.png\" alt=\"OpenCost connects Kubernetes metrics in Prometheus and cloud billing inputs to an allocation model, UI and API.\" class=\"wp-image-80527\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/opencost-connects-kubernetes-metrics-in-prometheus.png 1200w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/opencost-connects-kubernetes-metrics-in-prometheus-300x133.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/opencost-connects-kubernetes-metrics-in-prometheus-1024x454.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/opencost-connects-kubernetes-metrics-in-prometheus-768x340.png 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"figure-caption wp-block-paragraph\">\n  Figure 2. OpenCost allocation architecture.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why it matters<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  Example cost category\n<\/p><\/th><th><p>\n  Monthly cost (USD)\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  Backend workloads\n<\/p><\/td><td><p>\n  $1,200\n<\/p><\/td><\/tr><tr><td><p>\n  Data processing\n<\/p><\/td><td><p>\n  $800\n<\/p><\/td><\/tr><tr><td><p>\n  Monitoring\n<\/p><\/td><td><p>\n  $450\n<\/p><\/td><\/tr><tr><td><p>\n  Shared infrastructure\n<\/p><\/td><td><p>\n  $350\n<\/p><\/td><\/tr><tr><td><p>\n  Frontend workloads\n<\/p><\/td><td><p>\n  $300\n<\/p><\/td><\/tr><tr><td><p>\n  Idle capacity\n<\/p><\/td><td><p>\n  $200\n<\/p><\/td><\/tr><tr><td><p>\n  Total\n<\/p><\/td><td><p>\n  $3,300\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  These hypothetical amounts show how shared cluster costs can be explained to service owners. OpenCost is not a general ledger or a full SaaS contract-management system.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">OpenCost lab: install, query and verify<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Prerequisites<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Use a non-production Kubernetes cluster, kubectl, Helm and permissions to create the required resources. If Prometheus already exists, reuse it with the documented metrics and service connection. For production, pin chart versions and the scrape configuration to reviewed releases.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1 \u2014 Install Prometheus if needed<\/h4>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">kubectl cluster-info\nhelm repo add prometheus-community \\\n  <span class=\"hljs-attr\">https<\/span>:<span class=\"hljs-comment\">\/\/prometheus-community.github.io\/helm-charts<\/span>\nhelm repo update\ncurl -fL https:<span class=\"hljs-comment\">\/\/raw.githubusercontent.com\/opencost\/opencost\/develop\/\\<\/span>\nkubernetes\/prometheus\/extraScrapeConfigs.yaml -o extraScrapeConfigs.yaml\nhelm upgrade --install prometheus prometheus-community\/prometheus \\\n  -n prometheus-system --create-namespace \\\n  --<span class=\"hljs-keyword\">set<\/span> prometheus-pushgateway.enabled=false \\\n  --<span class=\"hljs-keyword\">set<\/span> alertmanager.enabled=false -f extraScrapeConfigs.yaml<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Review the downloaded scrape file before installation. This upstream development URL is convenient for a lab; use a pinned commit in controlled deployments.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2 \u2014 Configure and install OpenCost<\/h4>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">helm repo add opencost https:<span class=\"hljs-comment\">\/\/opencost.github.io\/opencost-helm-chart<\/span>\nhelm repo update\nkubectl <span class=\"hljs-keyword\">get<\/span> svc -n prometheus-system\nhelm show values opencost\/opencost<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Create values.yaml. Confirm the service name, port and chart values against your installation:\n<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">opencost:\n  prometheus:\n    internal:\n      enabled: <span class=\"hljs-literal\">true<\/span>\n      <span class=\"hljs-attr\">namespaceName<\/span>: prometheus-system\n      <span class=\"hljs-attr\">serviceName<\/span>: prometheus-server\n      <span class=\"hljs-attr\">port<\/span>: <span class=\"hljs-number\">80<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Save values.yaml, then deploy and verify:\n<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">helm upgrade --install opencost opencost\/opencost \\\n  -n opencost --create-namespace -f values.yaml\nkubectl <span class=\"hljs-keyword\">get<\/span> pods,svc -n opencost\nkubectl port-forward -n opencost svc\/opencost 9003:9003 9090:9090<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h4 class=\"wp-block-heading\">Step 3 \u2014 Query allocations<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Visit http:\/\/localhost:9090. In a second terminal, query the API. A newly installed cluster will not have a complete seven-day history.\n<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">curl -G http:<span class=\"hljs-comment\">\/\/localhost:9003\/allocation\/compute \\<\/span>\n  --data-urlencode <span class=\"hljs-string\">'window=7d'<\/span> \\\n  --data-urlencode <span class=\"hljs-string\">'aggregate=namespace'<\/span> <\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Acceptance: workloads appear after scraping, totals make sense against pricing, and unallocated\/idle costs are visible. For actual invoice reconciliation, configure provider-specific cloud billing exports separately.\n<\/p>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Official resources: <a href=\"https:\/\/opencost.io\/docs\/installation\/prometheus\/\" rel=\"noopener\">Prometheus setup<\/a>  |  <a href=\"https:\/\/opencost.io\/docs\/integrations\/api\/\" rel=\"noopener\">API documentation<\/a>\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4. OptScale: multi-cloud cost management<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  OptScale is a self-hostable FinOps application that combines supported cloud billing and resource discovery with cost dashboards, budgets, cost projections, resource ownership and optimization recommendations. It is closer to a ready-made infrastructure FinOps portal than most of the specialized tools in this guide.\n<\/p>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Official resources: <a href=\"https:\/\/github.com\/hystax\/optscale\" rel=\"noopener\">Repository<\/a>  |  <a href=\"https:\/\/hystax.com\/documentation\/optscale\/index.html\" rel=\"noopener\">Documentation<\/a>  |  <a href=\"https:\/\/github.com\/hystax\/optscale\/blob\/integration\/optscale-deploy\/compose\/README.md\" rel=\"noopener\">Compose evaluation<\/a>\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Capabilities and trade-offs<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  OptScale supports AWS, Azure, Google Cloud, Alibaba Cloud and Kubernetes integrations documented by the project. Evaluate the available integrations and forecast accuracy with actual accounts. It does not automatically provide complete subscription and invoice coverage for every SaaS provider.\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  Evaluation prerequisites\n<\/p><\/th><th><p>\n  Documented minimum\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  CPU\n<\/p><\/td><td><p>\n  8 cores\n<\/p><\/td><\/tr><tr><td><p>\n  RAM\n<\/p><\/td><td><p>\n  16 GB (32 GB recommended)\n<\/p><\/td><\/tr><tr><td><p>\n  Disk\n<\/p><\/td><td><p>\n  40 GB available\n<\/p><\/td><\/tr><tr><td><p>\n  Runtime\n<\/p><\/td><td><p>\n  Docker Engine 24+ and Compose 2.20+\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Lab: run the Compose evaluation deployment<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1 \u2014 Clone and prepare<\/h4>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">git <span class=\"hljs-keyword\">clone<\/span> https:<span class=\"hljs-comment\">\/\/github.com\/hystax\/optscale.git<\/span>\ncd optscale\/optscale-deploy\/compose\ncp .env.example .env<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Inspect .env, config.yml and thanos_conf.yaml; change and synchronize credentials as documented. Select a reviewed code revision. The stack is large and may encounter registry pull limits.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2 \u2014 Start and inspect<\/h4>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">.\/pull.sh\ndocker compose up -d\ndocker compose ps\ndocker compose logs -f configurator<\/code><\/span><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  After the configurator succeeds, open http:\/\/localhost (or the configured edge port), create an organization and use the provider-specific setup guide to attach a read-only billing source.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 3 \u2014 Validate results<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Compare the most recent closed billing period to the provider console. Check project or account filters, the projected spend and a sample of rightsizing recommendations. Stop the evaluation when done:\n<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">docker compose down<\/code><\/span><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Compose is for evaluation and development only. Use the project\u2019s supported Kubernetes production deployment, with adequate storage, backup, authentication and monitoring, before relying on it for enterprise reporting.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5. Project Koku: cloud cost analytics backend<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Koku is an open-source cost management project used for processing cloud and OpenShift cost and usage data. It is an attractive engineering foundation for custom hybrid-cloud reporting, especially if you are comfortable integrating multiple backend services.\n<\/p>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Official resources: <a href=\"https:\/\/github.com\/project-koku\/koku\" rel=\"noopener\">Project<\/a>  |  <a href=\"https:\/\/project-koku.github.io\/\" rel=\"noopener\">Documentation<\/a>  |  <a href=\"https:\/\/github.com\/project-koku\/nise\" rel=\"noopener\">Synthetic data generator<\/a>\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What it provides<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><br>    Cost and usage data processing across supported public cloud sources and OpenShift.<br>  <\/li>\n\n\n\n<li><br>    APIs and cost reporting models for allocations and historical analysis.<br>  <\/li>\n\n\n\n<li><br>    Extensibility for engineering teams that need custom processing.<br>  <\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Lab: evaluate the development architecture<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  This is a repository evaluation rather than a claim of a one-command production installation. Koku relies on a coordinated application stack, data stores, background processing and integration configuration. Read the current README and development instructions for the selected branch.\n<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">git <span class=\"hljs-keyword\">clone<\/span> https:<span class=\"hljs-comment\">\/\/github.com\/project-koku\/koku.git<\/span>\ngit <span class=\"hljs-keyword\">clone<\/span> https:<span class=\"hljs-comment\">\/\/github.com\/project-koku\/nise.git<\/span>\ncd koku\ngit log <span class=\"hljs-number\">-1<\/span>\ncp .env.example .env<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  The upstream development workflow requires Python 3.12, Docker or Rancher Desktop, Make and platform-specific build dependencies. Configure .env and follow the current README; for on-premises development without Red Hat SaaS, set ONPREM=True. Do not use production credentials in this lab.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Start dependencies and load test data<\/h4>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">python3 -m pip install pipenv\npipenv install --dev\nmake docker-up-min\nmake docker-logs<\/code><\/span><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  In a second terminal, from the configured Koku repository:\n<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">make create-test-customer\nmake load-test-customer-data<\/code><\/span><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  The documented workflow processes test data into local object storage and summary tables. Use the project\u2019s API\/report examples to query a known period and compare totals with synthetic input before connecting real billing data.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">When Koku is a good choice<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  Good fit\n<\/p><\/th><th><p>\n  Potential blocker\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  Customizable processing backend\n<\/p><\/td><td><p>\n  More engineering and operational work\n<\/p><\/td><\/tr><tr><td><p>\n  Hybrid cloud \/ OpenShift cost data\n<\/p><\/td><td><p>\n  Not a turnkey all-vendor SaaS ledger\n<\/p><\/td><\/tr><tr><td><p>\n  Existing data platform or API consumers\n<\/p><\/td><td><p>\n  Evaluate end-to-end UI and forecast functionality\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Recommendation: consider Koku when you need control over the cost-processing pipeline, rather than as the fastest path to a small centralized dashboard.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">6. Cloud Custodian: policy-as-code governance<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Cloud Custodian identifies resources that match declarative policies. It can report idle assets, enforce tags or execute approved actions. Unlike a cost ledger, it primarily inspects resource configuration and usage, allowing financial governance to be version-controlled.\n<\/p>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Official resources: <a href=\"https:\/\/cloudcustodian.io\/docs\/\" rel=\"noopener\">Documentation<\/a>  |  <a href=\"https:\/\/cloudcustodian.io\/docs\/quickstart\/index.html\" rel=\"noopener\">Quickstart<\/a>  |  <a href=\"https:\/\/github.com\/cloud-custodian\/cloud-custodian\" rel=\"noopener\">Repository<\/a>\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Lab: find unattached EBS volumes and missing ownership<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1 \u2014 Set up the CLI and verify identity<\/h4>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-8\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">python3 -m venv finops-env\nsource finops-env\/bin\/activate\npython -m pip install c7n\ncustodian version\naws sts <span class=\"hljs-keyword\">get<\/span>-caller-identity<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Use a restricted read-only AWS identity. Other providers have separate packages and policies, such as c7n-gcp and c7n-azure.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2 \u2014 Create finops-policy.yml<\/h4>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-9\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css\"><span class=\"hljs-selector-tag\">policies<\/span>:\n  <span class=\"hljs-selector-tag\">-<\/span> <span class=\"hljs-selector-tag\">name<\/span>: <span class=\"hljs-selector-tag\">identify-unattached-ebs-volumes<\/span>\n    <span class=\"hljs-selector-tag\">resource<\/span>: <span class=\"hljs-selector-tag\">aws<\/span><span class=\"hljs-selector-class\">.ebs<\/span>\n    <span class=\"hljs-selector-tag\">filters<\/span>:\n      <span class=\"hljs-selector-tag\">-<\/span> <span class=\"hljs-selector-tag\">State<\/span>: <span class=\"hljs-selector-tag\">available<\/span>\n  <span class=\"hljs-selector-tag\">-<\/span> <span class=\"hljs-selector-tag\">name<\/span>: <span class=\"hljs-selector-tag\">identify-untagged-ec2-instances<\/span>\n    <span class=\"hljs-selector-tag\">resource<\/span>: <span class=\"hljs-selector-tag\">aws<\/span><span class=\"hljs-selector-class\">.ec2<\/span>\n    <span class=\"hljs-selector-tag\">filters<\/span>:\n      <span class=\"hljs-selector-tag\">-<\/span> \"<span class=\"hljs-selector-tag\">tag<\/span><span class=\"hljs-selector-pseudo\">:Owner\"<\/span>: <span class=\"hljs-selector-tag\">absent<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-9\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h4 class=\"wp-block-heading\">Step 3 \u2014 Validate and run in dry-run mode<\/h4>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-10\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css\"><span class=\"hljs-selector-tag\">custodian<\/span> <span class=\"hljs-selector-tag\">validate<\/span> <span class=\"hljs-selector-tag\">finops-policy<\/span><span class=\"hljs-selector-class\">.yml<\/span>\n<span class=\"hljs-selector-tag\">custodian<\/span> <span class=\"hljs-selector-tag\">run<\/span> <span class=\"hljs-selector-tag\">--dryrun<\/span> <span class=\"hljs-selector-tag\">--region<\/span> <span class=\"hljs-selector-tag\">ap-northeast-1<\/span> \\\n  <span class=\"hljs-selector-tag\">-s<\/span> <span class=\"hljs-selector-tag\">output<\/span> <span class=\"hljs-selector-tag\">finops-policy<\/span><span class=\"hljs-selector-class\">.yml<\/span>\n<span class=\"hljs-selector-tag\">find<\/span> <span class=\"hljs-selector-tag\">output<\/span> <span class=\"hljs-selector-tag\">-name<\/span> <span class=\"hljs-selector-tag\">resources<\/span><span class=\"hljs-selector-class\">.json<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-10\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  The policy has no destructive actions. Review results with owners: unattached volumes may be intentional, retained for recovery, or awaiting attachment. Estimate storage savings using the actual regional and storage-type rate. Snapshot retention may still cost money.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Operational best practices<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><br>    Maintain policies in Git; require reviews and dry runs before enabling actions.<br>  <\/li>\n\n\n\n<li><br>    Separate discovery identities from remediation identities.<br>  <\/li>\n\n\n\n<li><br>    Track exemptions, owner approvals, rollback plans and verified realized savings.<br>  <\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">7. OpenOps: FinOps workflow automation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  OpenOps provides a visual workflow platform for executing FinOps processes across cloud and operational systems. Its self-managed community offering can connect cost optimization discovery to approval, ticketing and controlled execution. Some features and managed services may require a commercial plan.\n<\/p>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Official resources: <a href=\"https:\/\/github.com\/openops-cloud\/openops\" rel=\"noopener\">Project<\/a>  |  <a href=\"https:\/\/docs.openops.com\/\" rel=\"noopener\">Documentation<\/a>  |  <a href=\"https:\/\/www.openops.com\/\" rel=\"noopener\">Website<\/a>\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Workflow example<\/h3>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"532\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/approval-based-cost-optimization-workflow-from-dis.png\" alt=\"Approval-based cost optimization workflow from discovery and estimates to ticket, approval, remediation and verification.\" class=\"wp-image-80528\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/approval-based-cost-optimization-workflow-from-dis.png 1200w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/approval-based-cost-optimization-workflow-from-dis-300x133.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/approval-based-cost-optimization-workflow-from-dis-1024x454.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/approval-based-cost-optimization-workflow-from-dis-768x340.png 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"figure-caption wp-block-paragraph\">\n  Figure 3. Safe FinOps workflow automation.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Lab: evaluate an approval-based workflow<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><br>  Install the community edition using the version-pinned self-hosted instructions in the project documentation. Review ports, secrets, databases and authentication.<br><\/li>\n\n\n\n<li><br>  Connect a non-production cloud account with read-only discovery permissions.<br><\/li>\n\n\n\n<li><br>  Choose a workflow template or create a scheduled unused-resource scan.<br><\/li>\n\n\n\n<li><br>  Add a filter, an owner notification and an approval stage. Route proposed actions into a ticket rather than immediately modifying resources.<br><\/li>\n\n\n\n<li><br>  Run manually, inspect execution logs and test rejection, approval and failure paths.<br><\/li>\n\n\n\n<li><br>  Only after review, attach an independently scoped execution credential and record outcomes.<br><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Acceptance: the workflow can identify an example opportunity, create an actionable ticket and stop safely when approval is rejected. Verify edition-specific connector and approval availability before rolling out.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">8. Infracost: shift-left infrastructure cost estimation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Infracost estimates the cost impact of infrastructure-as-code before changes are deployed. Its open-source core and hosted pricing workflow are not equivalent to an unlimited, isolated self-hosted billing platform; authentication, service dependencies and free-tier limits must be reviewed. The published CI\/CD free plan lists 1,000 runs per month as of December 2026; check current terms.\n<\/p>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Official resources: <a href=\"https:\/\/github.com\/infracost\/infracost\" rel=\"noopener\">Project<\/a>  |  <a href=\"https:\/\/www.infracost.io\/docs\/features\/cli_commands\/\" rel=\"noopener\">CLI commands<\/a>  |  <a href=\"https:\/\/www.infracost.io\/pricing\/\" rel=\"noopener\">Pricing<\/a>\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"424\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/comparison-of-traditional-post-deployment-cost-vis.png\" alt=\"Comparison of traditional post-deployment cost visibility and shift-left cost estimation during code review.\" class=\"wp-image-80529\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/comparison-of-traditional-post-deployment-cost-vis.png 1200w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/comparison-of-traditional-post-deployment-cost-vis-300x106.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/comparison-of-traditional-post-deployment-cost-vis-1024x362.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/comparison-of-traditional-post-deployment-cost-vis-768x271.png 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"figure-caption wp-block-paragraph\">\n  Figure 4. Shift-left FinOps places cost review before deployment.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Lab: estimate a Terraform change<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Install the CLI using the current upstream instructions. The documented newer CLI uses setup and scan; older versions may use breakdown. Setup is interactive and can connect an organization; avoid using sensitive or production code without approval.\n<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">infracost --version\ninfracost setup<\/code><\/span><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Create main.tf in a lab directory. The AMI is a placeholder; this is static cost estimation, not deployable infrastructure.\n<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-11\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">provider <span class=\"hljs-string\">\"aws\"<\/span> {\n  region = <span class=\"hljs-string\">\"ap-northeast-1\"<\/span>\n}\nresource <span class=\"hljs-string\">\"aws_instance\"<\/span> <span class=\"hljs-string\">\"web\"<\/span> {\n  ami           = <span class=\"hljs-string\">\"ami-example\"<\/span>\n  instance_type = <span class=\"hljs-string\">\"t3.medium\"<\/span>\n  root_block_device {\n    volume_size = <span class=\"hljs-number\">50<\/span>\n    volume_type = <span class=\"hljs-string\">\"gp3\"<\/span>\n  }\n}<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-11\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Run from the directory containing main.tf:\n<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">infracost scan<\/code><\/span><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Change the instance_type to t3.large and scan again. Compare the monthly estimates without applying Terraform. Usage-based charges, taxes, discounts and actual workload behavior can make invoices differ from estimates.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">9. Steampipe: SQL-driven FinOps analysis<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Steampipe exposes cloud APIs as queryable SQL tables through plugins. It is useful for flexible resource inventory and waste discovery without writing a separate API client for each query. It is not an authoritative billing system. The core repository is AGPL-3.0; review the vendor distribution terms separately.\n<\/p>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Official resources: <a href=\"https:\/\/github.com\/turbot\/steampipe\" rel=\"noopener\">Project<\/a>  |  <a href=\"https:\/\/steampipe.io\/downloads\" rel=\"noopener\">Downloads<\/a>  |  <a href=\"https:\/\/hub.steampipe.io\/plugins\/turbot\/aws\/tables\" rel=\"noopener\">AWS plugin tables<\/a>\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Lab: discover unused cloud storage<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1 \u2014 Install and start a query session<\/h4>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">brew install turbot\/tap\/steampipe\nsteampipe plugin install aws\nsteampipe query<\/code><\/span><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  The first command is for Homebrew environments. Use the official downloads for other systems. Configure the AWS plugin with a read-only AWS profile or temporary credentials; verify region coverage.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2 \u2014 Identify unattached EBS volumes<\/h4>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-12\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">SELECT volume_id, region, volume_type, size, state\nFROM aws_ebs_volume\nWHERE state = <span class=\"hljs-string\">'available'<\/span>\nORDER BY size DESC;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-12\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h4 class=\"wp-block-heading\">Step 3 \u2014 Aggregate potential waste<\/h4>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-13\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">SELECT region, volume_type,\n       COUNT(*) <span class=\"hljs-keyword\">AS<\/span> volume_count,\n       SUM(size) <span class=\"hljs-keyword\">AS<\/span> total_storage_gib\nFROM aws_ebs_volume\nWHERE state = <span class=\"hljs-string\">'available'<\/span>\nGROUP BY region, volume_type\nORDER BY total_storage_gib DESC;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-13\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h4 class=\"wp-block-heading\">Step 4 \u2014 Check missing ownership<\/h4>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-14\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">SELECT instance_id, instance_type, region, tags\nFROM aws_ec2_instance\nWHERE instance_state = <span class=\"hljs-string\">'running'<\/span>\n  <span class=\"hljs-keyword\">AND<\/span> tags -&gt;&gt; <span class=\"hljs-string\">'Owner'<\/span> IS <span class=\"hljs-keyword\">NULL<\/span>;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-14\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Suppose you find 2,000 GiB of unused storage and the actual price is $0.096 per GiB-month. The theoretical storage cost is $192\/month or $2,304\/year, before discounts, snapshots and taxes. Do not delete resources merely because they match a query.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">10. Powerpipe: cost optimization dashboards and benchmarks<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Powerpipe builds SQL-based dashboards and benchmarks. With Steampipe and the AWS Thrifty module, it can run a library of optimization checks over cloud resources. Treat the output as potential opportunities, not confirmed invoice savings.\n<\/p>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Official resources: <a href=\"https:\/\/github.com\/turbot\/powerpipe\" rel=\"noopener\">Project<\/a>  |  <a href=\"https:\/\/powerpipe.io\/docs\" rel=\"noopener\">Documentation<\/a>  |  <a href=\"https:\/\/github.com\/turbot\/steampipe-mod-aws-thrifty\" rel=\"noopener\">AWS Thrifty module<\/a>\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Lab: run AWS Thrifty checks<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Install Powerpipe and Steampipe using their official releases. Use a read-only AWS identity. Confirm the module and plugin versions are compatible and review the module before running it.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1 \u2014 Initialize a module<\/h4>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">steampipe plugin install aws\nmkdir finops-dashboards\ncd finops-dashboards\npowerpipe mod init\npowerpipe mod install github.com\/turbot\/steampipe-mod-aws-thrifty<\/code><\/span><\/pre>\n\n\n<h4 class=\"wp-block-heading\">Step 2 \u2014 Start the services<\/h4>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">steampipe service start\npowerpipe server<\/code><\/span><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Open http:\/\/localhost:9033, find the installed Thrifty benchmarks and run the checks. If your version requires explicit database connectivity, configure the connection to the Steampipe service according to Powerpipe\u2019s documentation.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 3 \u2014 Review and prioritize<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  Finding type\n<\/p><\/th><th><p>\n  Validate before action\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  Unattached storage\n<\/p><\/td><td><p>\n  Recovery needs and ownership\n<\/p><\/td><\/tr><tr><td><p>\n  Idle compute\n<\/p><\/td><td><p>\n  Utilization history and service obligations\n<\/p><\/td><\/tr><tr><td><p>\n  Overprovisioned databases\n<\/p><\/td><td><p>\n  Peak load, availability and capacity\n<\/p><\/td><\/tr><tr><td><p>\n  Unused network resources\n<\/p><\/td><td><p>\n  Dependencies, routing and security\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Export or record the findings in a ticketing workflow. Use the billing ledger to calculate the actual avoided cost after remediation. For large environments, schedule checks thoughtfully to avoid cloud API throttling.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">11. KRR: Kubernetes Resource Recommender<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  KRR uses Prometheus utilization data to suggest workload CPU and memory configurations. Reducing excessive requests can improve bin packing and make node consolidation possible. A reduction in requested resources alone does not guarantee a smaller bill.\n<\/p>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Official resources: <a href=\"https:\/\/github.com\/robusta-dev\/krr\" rel=\"noopener\">Repository and installation<\/a>\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"430\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/bar-chart-showing-a-hypothetical-current-cpu-reque.png\" alt=\"Bar chart showing a hypothetical current CPU request of two cores, observed usage of 0.4 cores, and suggested request of 0.75 cores.\" class=\"wp-image-80530\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/bar-chart-showing-a-hypothetical-current-cpu-reque.png 1200w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/bar-chart-showing-a-hypothetical-current-cpu-reque-300x108.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/bar-chart-showing-a-hypothetical-current-cpu-reque-1024x367.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/bar-chart-showing-a-hypothetical-current-cpu-reque-768x275.png 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"figure-caption wp-block-paragraph\">\n  Figure 5. Example CPU request versus actual usage and recommendation.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Lab: generate workload recommendations<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Prerequisites: Kubernetes connectivity, Prometheus 2.26+ and the required container and Kubernetes ownership metrics. KRR supports other compatible metric backends; verify the configuration and history before running.\n<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">brew tap robusta-dev\/homebrew-krr\nbrew install krr\nkrr --help\nkrr simple<\/code><\/span><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Filter an existing namespace or specify a reachable Prometheus endpoint:\n<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-15\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">krr simple -n staging\nkrr simple -p http:<span class=\"hljs-comment\">\/\/127.0.0.1:9090<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-15\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  If Prometheus is internal to the cluster, use an authorized port-forward to the actual service before the second command. Review the resulting CPU and memory suggestions, historical time window and excluded workloads.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Production safeguards<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Validate memory headroom, OOM events, CPU throttling, HPA settings, burst traffic, rollout behavior and service-level objectives. Apply reviewed request changes through GitOps in staging. Confirm node-hour reduction and application performance before claiming savings.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">12. Goldilocks: visual Kubernetes rightsizing<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Goldilocks uses the Vertical Pod Autoscaler (VPA) recommendation engine to help teams understand appropriate CPU and memory requests. It adds a visual interface for namespace-level resource review and is a useful alternative to CLI-first KRR.\n<\/p>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Official resources: <a href=\"https:\/\/github.com\/FairwindsOps\/goldilocks\" rel=\"noopener\">Repository<\/a>  |  <a href=\"https:\/\/goldilocks.docs.fairwinds.com\/\" rel=\"noopener\">Documentation<\/a>\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Lab: install and inspect recommendations<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Use a test cluster with metrics-server and an existing compatible VPA recommender, or install the supported VPA subchart. Ensure the VPA updater\/admission components will not unexpectedly modify or evict workloads.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1 \u2014 Install the chart<\/h4>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-16\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">helm repo add fairwinds-stable https:<span class=\"hljs-comment\">\/\/charts.fairwinds.com\/stable<\/span>\nhelm repo update\nhelm upgrade --install goldilocks fairwinds-stable\/goldilocks \\\n  -n goldilocks --create-namespace --<span class=\"hljs-keyword\">set<\/span> vpa.enabled=true<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-16\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  The VPA installation flag is for a test cluster where VPA is not already installed. If it exists, disable the subchart as documented and use the existing recommender.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2 \u2014 Enable an application namespace<\/h4>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-17\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">kubectl label namespace staging goldilocks.fairwinds.com\/enabled=<span class=\"hljs-literal\">true<\/span>\nkubectl <span class=\"hljs-keyword\">get<\/span> pods -n goldilocks\nkubectl <span class=\"hljs-keyword\">get<\/span> vpa -n staging\nkubectl port-forward -n goldilocks svc\/goldilocks-dashboard 8080:80<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-17\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Visit http:\/\/localhost:8080 and compare configured requests with the recommended values. Allow time for meaningful metrics; recommendations on short observation windows may be misleading.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">KRR versus Goldilocks<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  Aspect\n<\/p><\/th><th><p>\n  KRR\n<\/p><\/th><th><p>\n  Goldilocks\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  Engine\n<\/p><\/td><td><p>\n  Prometheus-based strategies\n<\/p><\/td><td><p>\n  VPA recommender\n<\/p><\/td><\/tr><tr><td><p>\n  Interface\n<\/p><\/td><td><p>\n  CLI and exported results\n<\/p><\/td><td><p>\n  Web dashboard\n<\/p><\/td><\/tr><tr><td><p>\n  VPA required\n<\/p><\/td><td><p>\n  No\n<\/p><\/td><td><p>\n  Yes\n<\/p><\/td><\/tr><tr><td><p>\n  Primary use\n<\/p><\/td><td><p>\n  Batch workload sizing\n<\/p><\/td><td><p>\n  Visual review of workloads\n<\/p><\/td><\/tr><tr><td><p>\n  Actual billing analysis\n<\/p><\/td><td><p>\n  No\n<\/p><\/td><td><p>\n  No\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">13. Karpenter: node capacity optimization<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Karpenter dynamically provisions nodes for Kubernetes workloads and can remove or replace inefficient capacity. Node consolidation can convert workload resource improvements into infrastructure savings, but must be balanced against disruption, availability and topology constraints.\n<\/p>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Official resources: <a href=\"https:\/\/github.com\/kubernetes-sigs\/karpenter\" rel=\"noopener\">Core project<\/a>  |  <a href=\"https:\/\/karpenter.sh\/docs\/concepts\/disruption\/\" rel=\"noopener\">Disruption documentation<\/a>\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Lab: review consolidation policy<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Karpenter installation differs by provider and version. Begin with the provider-specific installation guide in a sandbox and an existing valid NodePool. In Amazon EKS Auto Mode, use its supported NodePool configuration and built-in node management rather than installing a redundant controller.\n<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-18\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">kubectl <span class=\"hljs-keyword\">get<\/span> nodepools\nkubectl <span class=\"hljs-keyword\">get<\/span> nodes\nNODEPOOL=replace-with-existing-name\nkubectl describe nodepool \"$NODEPOOL\"<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-18\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  The following is a partial configuration of an existing compatible NodePool, not a standalone manifest. Merge into the reviewed source manifest and validate the selected version and provider schema.\n<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-19\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">spec:\n  disruption:\n    consolidationPolicy: WhenEmptyOrUnderutilized\n    <span class=\"hljs-attr\">consolidateAfter<\/span>: <span class=\"hljs-number\">10<\/span>m\n    <span class=\"hljs-attr\">budgets<\/span>:\n      - nodes: <span class=\"hljs-string\">\"10%\"<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-19\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Consider WhenEmpty first for conservative trials. Review pod disruption budgets, node pool constraints, local storage, workload restart behavior, minimum availability and the specific disruption budget semantics. Use GitOps and stage changes before production.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Illustrative financial impact<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  Scenario\n<\/p><\/th><th><p>\n  Nodes\n<\/p><\/th><th><p>\n  Monthly cost\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  Before\n<\/p><\/td><td><p>\n  12\n<\/p><\/td><td><p>\n  $1,200\n<\/p><\/td><\/tr><tr><td><p>\n  After\n<\/p><\/td><td><p>\n  8\n<\/p><\/td><td><p>\n  $800\n<\/p><\/td><\/tr><tr><td><p>\n  Potential reduction\n<\/p><\/td><td><p>\n  4\n<\/p><\/td><td><p>\n  $400 (33.3%)\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Assumes identical node rates and sufficient remaining capacity. The actual reduction depends on instance selection, discounts, commitments, scaling and the ability to remove nodes. Compare billable node hours before and after, normalized for workload volume.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">14. Apache Superset: centralized financial dashboards<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Apache Superset is an open-source business intelligence platform. It is not a billing collector, but is an excellent frontend for a reconciled financial warehouse. Finance teams can analyze provider, project, team, service and environment expenditure through SQL-backed datasets.\n<\/p>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Official resources: <a href=\"https:\/\/github.com\/apache\/superset\" rel=\"noopener\">Project<\/a>  |  <a href=\"https:\/\/superset.apache.org\/user-docs\/6.0.0\/quickstart\/\" rel=\"noopener\">Versioned quickstart<\/a>\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Lab: run a sandbox deployment<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Prerequisites: Git, Docker and Docker Compose. The example pins the documented Superset 6.0.0 quickstart; check supported releases before real deployment.\n<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-20\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">git <span class=\"hljs-keyword\">clone<\/span> https:<span class=\"hljs-comment\">\/\/github.com\/apache\/superset.git<\/span>\ncd superset\ngit checkout tags\/<span class=\"hljs-number\">6.0<\/span><span class=\"hljs-number\">.0<\/span>\ndocker compose -f docker-compose-image-tag.yml up<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-20\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Open http:\/\/localhost:8088 after initialization. The quickstart documents demo credentials; do not expose the demo to the internet, and configure secure credentials, SSO and backup before enterprise deployment. Compose is not recommended for production.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Connect the billing database<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Add a PostgreSQL data source using a restricted reporting account. Use the correct network hostname from the Superset container, not localhost unless the database is actually in the same container. Keep source billing tables inaccessible to dashboard users who do not need them.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Assuming a normalized finops_costs table with provider, usage_date, billed_cost and currency columns, create a SQL dataset:\n<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-21\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">SELECT provider,\n       DATE_TRUNC(<span class=\"hljs-string\">'month'<\/span>, usage_date) <span class=\"hljs-keyword\">AS<\/span> month,\n       SUM(billed_cost) <span class=\"hljs-keyword\">AS<\/span> total_cost\nFROM finops_costs\nWHERE currency = <span class=\"hljs-string\">'USD'<\/span>\nGROUP BY provider, DATE_TRUNC(<span class=\"hljs-string\">'month'<\/span>, usage_date)\nORDER BY month, provider;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-21\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Create a stacked monthly bar chart grouped by provider. Add account, team, service and date filters as appropriate. For production, use materialized rollups and reconcile totals to closed invoices.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">15. Grafana OSS: operational FinOps monitoring<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Grafana OSS visualizes time-series and SQL data. It is particularly useful for connecting financial and operational metrics, such as cost per API request, database cost versus throughput and cost trends after deployments. The open-source core is AGPL-licensed; enterprise extensions and hosted services may be commercial.\n<\/p>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Official resources: <a href=\"https:\/\/github.com\/grafana\/grafana\" rel=\"noopener\">Project<\/a>  |  <a href=\"https:\/\/grafana.com\/docs\/grafana\/latest\/datasources\/postgres\/\" rel=\"noopener\">PostgreSQL data source<\/a>  |  <a href=\"https:\/\/grafana.com\/docs\/grafana\/latest\/datasources\/postgres\/alerting\/\" rel=\"noopener\">PostgreSQL alerting<\/a>\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Lab: build a daily cost panel and alert<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><br>  Install Grafana OSS using the supported package or pinned container release from the official documentation.<br><\/li>\n\n\n\n<li><br>  Configure a PostgreSQL data source with a read-only user and secure network connection.<br><\/li>\n\n\n\n<li><br>  Create a time-series panel and select the PostgreSQL data source.<br><\/li>\n\n\n\n<li><br>  Run the following SQL query in Time series format; verify the time column and currency.<br><\/li>\n<\/ol>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-22\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">SELECT usage_date::timestamp <span class=\"hljs-keyword\">AS<\/span> time,\n       SUM(billed_cost) <span class=\"hljs-keyword\">AS<\/span> daily_cost\nFROM finops_costs\nWHERE $__timeFilter(usage_date)\n  <span class=\"hljs-keyword\">AND<\/span> currency = <span class=\"hljs-string\">'USD'<\/span>\nGROUP BY usage_date\nORDER BY usage_date;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-22\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Create a Grafana-managed alert rule for a verified daily spend threshold. Use a time-series query returning a time column and numerical values; set appropriate evaluation frequency, missing-data behavior, contact points and alert routing. Do not rely on dashboard template variables in alerts.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Superset versus Grafana<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  Aspect\n<\/p><\/th><th><p>\n  Superset\n<\/p><\/th><th><p>\n  Grafana OSS\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  Primary audience\n<\/p><\/td><td><p>\n  Finance, BI, management\n<\/p><\/td><td><p>\n  Engineering and operations\n<\/p><\/td><\/tr><tr><td><p>\n  Financial exploration\n<\/p><\/td><td><p>\n  Strong SQL and BI workflows\n<\/p><\/td><td><p>\n  Useful SQL panels\n<\/p><\/td><\/tr><tr><td><p>\n  Metrics correlation\n<\/p><\/td><td><p>\n  Possible\n<\/p><\/td><td><p>\n  Strong\n<\/p><\/td><\/tr><tr><td><p>\n  Alerting\n<\/p><\/td><td><p>\n  Depends on setup\n<\/p><\/td><td><p>\n  Native alerting\n<\/p><\/td><\/tr><tr><td><p>\n  Best initial choice\n<\/p><\/td><td><p>\n  Financial reporting first\n<\/p><\/td><td><p>\n  Monitoring and budget alerts first\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Avoid maintaining both if one covers the use cases. Store actual costs in the same reconciled ledger to prevent reporting inconsistencies.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">16. StatsForecast: statistical cost forecasting<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  StatsForecast is an Apache-2.0 Python library for time-series forecasting. It offers models such as AutoARIMA, AutoETS, seasonal baselines and prediction intervals. It provides the forecasting calculation, not a complete FinOps dashboard or billing system.\n<\/p>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Official resources: <a href=\"https:\/\/github.com\/Nixtla\/statsforecast\" rel=\"noopener\">Project<\/a>  |  <a href=\"https:\/\/nixtlaverse.nixtla.io\/statsforecast\/\" rel=\"noopener\">Documentation<\/a>\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Lab: forecast a synthetic monthly series<\/h3>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">python3 -m venv forecast-env\nsource forecast-env\/bin\/activate\npython -m pip install pandas statsforecast<\/code><\/span><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Create forecast.py. Use complete historical periods, not a partial current month mixed into monthly training data.\n<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-23\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\"><span class=\"hljs-keyword\">import<\/span> pandas <span class=\"hljs-keyword\">as<\/span> pd\n<span class=\"hljs-keyword\">from<\/span> statsforecast <span class=\"hljs-keyword\">import<\/span> StatsForecast\n<span class=\"hljs-keyword\">from<\/span> statsforecast.models <span class=\"hljs-keyword\">import<\/span> AutoETS, Naive\ncosts = &#91;<span class=\"hljs-number\">4200<\/span>, <span class=\"hljs-number\">4350<\/span>, <span class=\"hljs-number\">4400<\/span>, <span class=\"hljs-number\">4600<\/span>, <span class=\"hljs-number\">4750<\/span>, <span class=\"hljs-number\">4900<\/span>,\n         <span class=\"hljs-number\">5050<\/span>, <span class=\"hljs-number\">5100<\/span>, <span class=\"hljs-number\">5300<\/span>, <span class=\"hljs-number\">5450<\/span>, <span class=\"hljs-number\">5600<\/span>, <span class=\"hljs-number\">5800<\/span>,\n         <span class=\"hljs-number\">5900<\/span>, <span class=\"hljs-number\">6100<\/span>, <span class=\"hljs-number\">6250<\/span>, <span class=\"hljs-number\">6400<\/span>, <span class=\"hljs-number\">6500<\/span>, <span class=\"hljs-number\">6750<\/span>,\n         <span class=\"hljs-number\">6900<\/span>, <span class=\"hljs-number\">7100<\/span>, <span class=\"hljs-number\">7250<\/span>, <span class=\"hljs-number\">7400<\/span>, <span class=\"hljs-number\">7600<\/span>, <span class=\"hljs-number\">7850<\/span>]\ndf = pd.DataFrame({\n    <span class=\"hljs-string\">\"unique_id\"<\/span>: <span class=\"hljs-string\">\"aws\"<\/span>,\n    <span class=\"hljs-string\">\"ds\"<\/span>: pd.date_range(<span class=\"hljs-string\">\"2024-01-01\"<\/span>, periods=len(costs), freq=<span class=\"hljs-string\">\"MS\"<\/span>),\n    <span class=\"hljs-string\">\"y\"<\/span>: costs,\n})\nsf = StatsForecast(models=&#91;AutoETS(season_length=<span class=\"hljs-number\">1<\/span>), Naive()],\n                   freq=<span class=\"hljs-string\">\"MS\"<\/span>, n_jobs=<span class=\"hljs-number\">1<\/span>)\nforecast = sf.forecast(df=df, h=<span class=\"hljs-number\">3<\/span>, level=&#91;<span class=\"hljs-number\">80<\/span>, <span class=\"hljs-number\">95<\/span>])\nprint(forecast.to_string(index=False))<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-23\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Save the file and execute it:\n<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-24\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css\"><span class=\"hljs-selector-tag\">python<\/span> <span class=\"hljs-selector-tag\">forecast<\/span><span class=\"hljs-selector-class\">.py<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-24\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  The output should contain forecast timestamps, model predictions and interval columns. The example has not been run with StatsForecast in this environment; a separate standard-library forecasting baseline is tested in the integrated lab below.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Forecasting best practices<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Use rolling-origin backtesting and compare MAE or WAPE with a naive baseline. Model fixed contracts separately, add planned deployments and renewals as known business events, and present uncertainty ranges. Negative credits or refunds may require separate treatment. Prediction intervals are not guarantees.\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"440\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/illustrative-line-chart-of-historical-technology-e.png\" alt=\"Illustrative line chart of historical technology expenditure followed by projected spend for two future months.\" class=\"wp-image-80531\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/illustrative-line-chart-of-historical-technology-e.png 1200w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/illustrative-line-chart-of-historical-technology-e-300x110.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/illustrative-line-chart-of-historical-technology-e-1024x375.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/illustrative-line-chart-of-historical-technology-e-768x282.png 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"figure-caption wp-block-paragraph\">\n  Figure 6. Historical and projected spend are separate series; chart values are illustrative, not model output.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">17. More tools and standards worth evaluating<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  Tool \/ framework\n<\/p><\/th><th><p>\n  Use case\n<\/p><\/th><th><p>\n  Consideration\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  Microsoft FinOps Toolkit\n<\/p><\/td><td><p>\n  Microsoft Cloud and FOCUS reporting\n<\/p><\/td><td><p>\n  MIT code; Azure and BI services may cost money\n<\/p><\/td><\/tr><tr><td><p>\n  AWS Cloud Intelligence Dashboards\n<\/p><\/td><td><p>\n  AWS billing analytics\n<\/p><\/td><td><p>\n  Dependent cloud services may incur charges\n<\/p><\/td><\/tr><tr><td><p>\n  DuckDB\n<\/p><\/td><td><p>\n  Local analytics of Parquet billing exports\n<\/p><\/td><td><p>\n  Requires data ingestion and reporting\n<\/p><\/td><\/tr><tr><td><p>\n  PostgreSQL\n<\/p><\/td><td><p>\n  Central financial data warehouse\n<\/p><\/td><td><p>\n  Requires normalized datasets\n<\/p><\/td><\/tr><tr><td><p>\n  Apache Airflow\n<\/p><\/td><td><p>\n  Scheduled billing pipelines\n<\/p><\/td><td><p>\n  Needs custom collectors\n<\/p><\/td><\/tr><tr><td><p>\n  dbt Core\n<\/p><\/td><td><p>\n  SQL transformations and tests\n<\/p><\/td><td><p>\n  Requires warehouse and sources\n<\/p><\/td><\/tr><tr><td><p>\n  Prometheus\n<\/p><\/td><td><p>\n  Infrastructure metrics\n<\/p><\/td><td><p>\n  Not an invoice ledger\n<\/p><\/td><\/tr><tr><td><p>\n  FOCUS\n<\/p><\/td><td><p>\n  Billing schema and semantics\n<\/p><\/td><td><p>\n  Specification, not an application\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Official resources: <a href=\"https:\/\/github.com\/microsoft\/finops-toolkit\" rel=\"noopener\">Microsoft FinOps Toolkit<\/a>  |  <a href=\"https:\/\/docs.aws.amazon.com\/guidance\/latest\/cloud-intelligence-dashboards\/\" rel=\"noopener\">AWS dashboards<\/a>  |  <a href=\"https:\/\/duckdb.org\/\" rel=\"noopener\">DuckDB<\/a>  |  <a href=\"https:\/\/github.com\/dbt-labs\/dbt-core\" rel=\"noopener\">dbt Core<\/a>\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Evaluate open-source, open-core, source-available and free proprietary editions separately. A free trial, free tier or public repository alone does not establish rights to use all features commercially. This is particularly important for commercial offerings marketed alongside upstream projects.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">18. FOCUS: standardize billing data before reporting<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  The FinOps Open Cost and Usage Specification (FOCUS) defines common terminology and billing datasets. Version 1.4, ratified June 4, 2026, adds invoice reconciliation and commitment detail. Provider exports may still target earlier versions; maintain version-aware adapters and preserve source records.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Important fields<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  FOCUS field \/ group\n<\/p><\/th><th><p>\n  Why it matters\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  ServiceProviderName\n<\/p><\/td><td><p>\n  Seller or provider; replaces ProviderName from v1.3\n<\/p><\/td><\/tr><tr><td><p>\n  HostProviderName, InvoiceIssuerName\n<\/p><\/td><td><p>\n  Infrastructure host and invoicing entity\n<\/p><\/td><\/tr><tr><td><p>\n  BillingAccountId, BillingCurrency\n<\/p><\/td><td><p>\n  Account identity and currency\n<\/p><\/td><\/tr><tr><td><p>\n  BillingPeriodStart \/ End\n<\/p><\/td><td><p>\n  Invoice billing window\n<\/p><\/td><\/tr><tr><td><p>\n  ChargePeriodStart \/ End\n<\/p><\/td><td><p>\n  Usage or charge window\n<\/p><\/td><\/tr><tr><td><p>\n  ServiceName, ResourceId, Tags\n<\/p><\/td><td><p>\n  Service and allocation details\n<\/p><\/td><\/tr><tr><td><p>\n  BilledCost\n<\/p><\/td><td><p>\n  Invoice reconciliation measure\n<\/p><\/td><\/tr><tr><td><p>\n  EffectiveCost\n<\/p><\/td><td><p>\n  Amortized\/discount-adjusted cost measure\n<\/p><\/td><\/tr><tr><td><p>\n  ListCost, ChargeCategory\n<\/p><\/td><td><p>\n  List-rate and charge classification\n<\/p><\/td><\/tr><tr><td><p>\n  InvoiceId, InvoiceDetailId\n<\/p><\/td><td><p>\n  Lineage to invoice detail where supported\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Keep distinct cost views<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Use BilledCost for the invoice-oriented ledger and EffectiveCost for amortized consumption analytics. Do not sum both into one total. Preserve credits, discounts, taxes and adjustments with their signed values and charge categories. Do not compare different currencies without approved conversion rates and a defined FX date.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Example: a $1,200 annual software license may be paid in January but represented as $100\/month in a separately labeled amortized view. Both views describe the same expenditure; they should not be added together.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Marketplace reconciliation matters: if Atlas or Datadog is invoiced through AWS Marketplace, the AWS bill may be the authoritative payment source. Vendor usage detail enriches the allocation but must not be counted a second time. Reconcile with actual invoices using source and invoice identifiers, not just matching vendor names and amounts.\n<\/p>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Official resources: <a href=\"https:\/\/focus.finops.org\/docs\/specification\/v1-4\/\" rel=\"noopener\">FOCUS v1.4<\/a>  |  <a href=\"https:\/\/focus.finops.org\/docs\/specification\/v1-4\/columns\/cost-and-usage\/service-provider-name\/\" rel=\"noopener\">ServiceProviderName<\/a>  |  <a href=\"https:\/\/focus.finops.org\/docs\/specification\/v1-4\/features\/invoice-reconciliation\/\" rel=\"noopener\">Invoice reconciliation<\/a>\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">19. Enterprise architecture: unify cloud and SaaS costs<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"748\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/six-layer-architecture-for-cloud-and-saas-billing.png\" alt=\"Six-layer architecture for cloud and SaaS billing ingestion, normalized PostgreSQL ledger, dashboards, forecasting, allocation and governed actions.\" class=\"wp-image-80532\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/six-layer-architecture-for-cloud-and-saas-billing.png 1200w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/six-layer-architecture-for-cloud-and-saas-billing-300x187.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/six-layer-architecture-for-cloud-and-saas-billing-1024x638.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/six-layer-architecture-for-cloud-and-saas-billing-768x479.png 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"figure-caption wp-block-paragraph\">\n  Figure 7. Recommended enterprise FinOps architecture.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The minimal deployable stack<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Begin with Python collectors, a scheduled job runner, PostgreSQL and one dashboard. Adopt FOCUS-compatible exports where available and maintain adapters for other data. Store source facts with immutable raw lineage, source freshness, currency, account and invoice references. Add OpenCost as a separate allocation layer, StatsForecast for variable costs, and governance automation only when the data is trustworthy.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Enterprise operational controls<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Use read-only billing credentials, temporary access, a secret manager, SSO\/RBAC, TLS, backups, audit trails, import validation, alerting on stale data and a documented recovery process. Keep dashboards separate from write-enabled remediation. Restrict contract pricing and financial data by role.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">20. Vendor billing integration strategy<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  A self-hosted FinOps portal is only as complete as its inputs. The table maps likely collection paths for commonly used services. Confirm account access, contractual terms, data freshness and available API history with your actual tenant; vendor APIs and export formats evolve.\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  Provider\n<\/p><\/th><th><p>\n  Recommended input\n<\/p><\/th><th><p>\n  Practical caveat\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  AWS\n<\/p><\/td><td><p>\n  Data Exports \/ FOCUS or CUR 2.0\n<\/p><\/td><td><p>\n  Use S3 export; billing APIs and queries can incur fees\n<\/p><\/td><\/tr><tr><td><p>\n  Google Cloud\n<\/p><\/td><td><p>\n  BigQuery billing export \/ FOCUS where available\n<\/p><\/td><td><p>\n  Check export version and query costs\n<\/p><\/td><\/tr><tr><td><p>\n  MongoDB Atlas\n<\/p><\/td><td><p>\n  FOCUS \/ invoice and billing APIs\n<\/p><\/td><td><p>\n  Confirm billing role and historical access\n<\/p><\/td><\/tr><tr><td><p>\n  Confluent Cloud\n<\/p><\/td><td><p>\n  Billing Costs API\n<\/p><\/td><td><p>\n  Daily usage costs may lag; backfill limits apply\n<\/p><\/td><\/tr><tr><td><p>\n  Datadog\n<\/p><\/td><td><p>\n  Estimated and historical cost APIs\n<\/p><\/td><td><p>\n  Contracted rates and delayed data may differ\n<\/p><\/td><\/tr><tr><td><p>\n  SonarQube\n<\/p><\/td><td><p>\n  Commercial invoices and license contracts\n<\/p><\/td><td><p>\n  Server vs Cloud licensing differs; import manually if needed\n<\/p><\/td><\/tr><tr><td><p>\n  Tailscale\n<\/p><\/td><td><p>\n  Invoices, contract schedule, seat inventory\n<\/p><\/td><td><p>\n  User counts alone do not establish billed cost\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Implementation pattern<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Fetch incremental periods and periodically re-fetch open periods to incorporate corrections. Store raw exports and ingestion run metadata. Replace or upsert provider records deterministically using stable source identifiers; never use a simple amount\/date pair as a unique key. Maintain a mapping from invoice issuer to the actual technology provider and separate allocation records from ledger records.\n<\/p>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Official resources: <a href=\"https:\/\/docs.aws.amazon.com\/cur\/latest\/userguide\/\" rel=\"noopener\">AWS exports<\/a>  |  <a href=\"https:\/\/cloud.google.com\/billing\/docs\/how-to\/export-data-bigquery\" rel=\"noopener\">Google Cloud billing export<\/a>  |  <a href=\"https:\/\/www.mongodb.com\/docs\/atlas\/billing\/\" rel=\"noopener\">Atlas billing<\/a>  |  <a href=\"https:\/\/docs.confluent.io\/cloud\/current\/ccloud\/list-billing-v-1-costs\/\" rel=\"noopener\">Confluent costs<\/a>\n<\/p>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Official resources: <a href=\"https:\/\/docs.datadoghq.com\/api\/latest\/usage-metering\/\" rel=\"noopener\">Datadog usage metering<\/a>  |  <a href=\"https:\/\/docs.sonarsource.com\/\" rel=\"noopener\">SonarQube documentation<\/a>  |  <a href=\"https:\/\/tailscale.com\/docs\/account\/billing\/manage-invoices\" rel=\"noopener\">Tailscale invoices<\/a>\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">21. Integrated hands-on lab: create a small billing ledger<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  This local exercise is intentionally independent of cloud credentials, external packages, Docker and paid APIs. It uses Python 3 and the built-in SQLite library. The sample data is simplified and FOCUS-inspired, not a complete conformant FOCUS dataset. All costs are USD integer cents to avoid floating-point rounding.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Goal and expected output<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Create three closed monthly periods, include a marketplace charge and an informational vendor-detail row, rerun ingestion without duplicating charges, and calculate a naive forecast. This demonstrates the ledger boundary, not production vendor integration.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1 \u2014 Create ledger.py<\/h4>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-25\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">import sqlite3\nfrom pathlib import Path\nDB = Path(<span class=\"hljs-string\">\"finops_demo.sqlite\"<\/span>)\nrows = &#91;\n    (<span class=\"hljs-string\">\"aws-jan\"<\/span>, <span class=\"hljs-string\">\"2026-01\"<\/span>, <span class=\"hljs-string\">\"AWS\"<\/span>, <span class=\"hljs-number\">120000<\/span>, <span class=\"hljs-number\">1<\/span>),\n    (<span class=\"hljs-string\">\"atlas-jan\"<\/span>, <span class=\"hljs-string\">\"2026-01\"<\/span>, <span class=\"hljs-string\">\"Atlas\"<\/span>, <span class=\"hljs-number\">40000<\/span>, <span class=\"hljs-number\">1<\/span>),\n    (<span class=\"hljs-string\">\"aws-feb\"<\/span>, <span class=\"hljs-string\">\"2026-02\"<\/span>, <span class=\"hljs-string\">\"AWS\"<\/span>, <span class=\"hljs-number\">130000<\/span>, <span class=\"hljs-number\">1<\/span>),\n    (<span class=\"hljs-string\">\"atlas-feb\"<\/span>, <span class=\"hljs-string\">\"2026-02\"<\/span>, <span class=\"hljs-string\">\"Atlas\"<\/span>, <span class=\"hljs-number\">45000<\/span>, <span class=\"hljs-number\">1<\/span>),\n    (<span class=\"hljs-string\">\"aws-mar\"<\/span>, <span class=\"hljs-string\">\"2026-03\"<\/span>, <span class=\"hljs-string\">\"AWS\"<\/span>, <span class=\"hljs-number\">140000<\/span>, <span class=\"hljs-number\">1<\/span>),\n    (<span class=\"hljs-string\">\"atlas-mar\"<\/span>, <span class=\"hljs-string\">\"2026-03\"<\/span>, <span class=\"hljs-string\">\"Atlas\"<\/span>, <span class=\"hljs-number\">50000<\/span>, <span class=\"hljs-number\">1<\/span>),\n    (<span class=\"hljs-string\">\"market-mar\"<\/span>, <span class=\"hljs-string\">\"2026-03\"<\/span>, <span class=\"hljs-string\">\"Datadog\"<\/span>, <span class=\"hljs-number\">20000<\/span>, <span class=\"hljs-number\">1<\/span>),\n    (<span class=\"hljs-string\">\"detail-mar\"<\/span>, <span class=\"hljs-string\">\"2026-03\"<\/span>, <span class=\"hljs-string\">\"Datadog\"<\/span>, <span class=\"hljs-number\">20000<\/span>, <span class=\"hljs-number\">0<\/span>),\n]\nwith sqlite3.connect(DB) <span class=\"hljs-keyword\">as<\/span> conn:\n    conn.execute(<span class=\"hljs-string\">\"\"<\/span><span class=\"hljs-string\">\"CREATE TABLE IF NOT EXISTS charges (\n        source_id TEXT PRIMARY KEY,\n        period TEXT NOT NULL,\n        provider TEXT NOT NULL,\n        cents INTEGER NOT NULL,\n        authoritative INTEGER NOT NULL\n            CHECK(authoritative IN (0, 1)))\"<\/span><span class=\"hljs-string\">\"\"<\/span>)\n    conn.executemany(<span class=\"hljs-string\">\"\"<\/span><span class=\"hljs-string\">\"INSERT INTO charges VALUES (?, ?, ?, ?, ?)\n        ON CONFLICT(source_id) DO UPDATE SET\n        period=excluded.period, provider=excluded.provider,\n        cents=excluded.cents,\n        authoritative=excluded.authoritative\"<\/span><span class=\"hljs-string\">\"\"<\/span>, rows)\n    totals = conn.execute(<span class=\"hljs-string\">\"\"<\/span><span class=\"hljs-string\">\"SELECT period, SUM(cents)\n        FROM charges WHERE authoritative=1\n        GROUP BY period ORDER BY period\"<\/span><span class=\"hljs-string\">\"\"<\/span>).fetchall()\n    count = conn.execute(<span class=\"hljs-string\">\"SELECT COUNT(*) FROM charges\"<\/span>).fetchone()&#91;<span class=\"hljs-number\">0<\/span>]\nassert count == <span class=\"hljs-number\">8<\/span>\nassert totals == &#91;(<span class=\"hljs-string\">\"2026-01\"<\/span>, <span class=\"hljs-number\">160000<\/span>), (<span class=\"hljs-string\">\"2026-02\"<\/span>, <span class=\"hljs-number\">175000<\/span>),\n                  (<span class=\"hljs-string\">\"2026-03\"<\/span>, <span class=\"hljs-number\">210000<\/span>)]\n<span class=\"hljs-keyword\">for<\/span> period, cents in totals:\n    <span class=\"hljs-keyword\">print<\/span>(f<span class=\"hljs-string\">\"{period}: ${cents \/ 100:,.2f}\"<\/span>)\n<span class=\"hljs-keyword\">print<\/span>(f<span class=\"hljs-string\">\"Naive next-month forecast: ${totals&#91;-1]&#91;1] \/ 100:,.2f}\"<\/span>)<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-25\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\">Integrated lab: validate results and extend the model<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2 \u2014 Run twice<\/h4>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-26\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css\"><span class=\"hljs-selector-tag\">python3<\/span> <span class=\"hljs-selector-tag\">ledger<\/span><span class=\"hljs-selector-class\">.py<\/span>\n<span class=\"hljs-selector-tag\">python3<\/span> <span class=\"hljs-selector-tag\">ledger<\/span><span class=\"hljs-selector-class\">.py<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-26\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  Expected output on each run:\n<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">2026-01: $1,600.00\n2026-02: $1,750.00\n2026-03: $2,100.00\nNaive next-month forecast: $2,100.00<\/code><\/span><\/pre>\n\n\n<p class=\"wp-block-paragraph\">\n  The informational Datadog vendor-detail row is retained but excluded from the authoritative actuals. The marketplace charge is counted once. The source_id key makes repeated ingestion idempotent for this illustrative dataset. The simple last-observation forecast is a baseline, not a statistical model.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 3 \u2014 Exercise: check deduplication<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Create a separate test copy of the script and change detail-mar to authoritative=1. The March total assertion should fail, demonstrating that the informational row would otherwise duplicate $200. Restore the flag and rerun the original. Use a fresh database file if experimenting with source IDs.\n<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 4 \u2014 Build reporting views<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\n  In a production PostgreSQL database, maintain normalized cost records and separate budget, contract, forecast and allocation tables. Expose only reconciled authoritative billing totals to financial dashboards. For forecasts, write predictions by period, provider, model version and generated timestamp, plus uncertainty bounds and actual comparison.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Forecast method by cost type<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  Expense type\n<\/p><\/th><th><p>\n  Preferred approach\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  Usage-based cloud, Atlas, Kafka\n<\/p><\/td><td><p>\n  Historical time-series models and scenario adjustments\n<\/p><\/td><\/tr><tr><td><p>\n  Datadog variable usage\n<\/p><\/td><td><p>\n  Historical usage and contracted rates; include changes to instrumentation\n<\/p><\/td><\/tr><tr><td><p>\n  Tailscale seats and fixed SaaS\n<\/p><\/td><td><p>\n  Contract quantities, planned seats and renewal terms\n<\/p><\/td><\/tr><tr><td><p>\n  Annual SonarQube license\n<\/p><\/td><td><p>\n  Known invoice or amortization schedule; plan renewal and tier changes\n<\/p><\/td><\/tr><tr><td><p>\n  Commitments\n<\/p><\/td><td><p>\n  Model payments, benefits and planned overages separately\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Backtest with closed periods. MAE measures mean absolute error in currency; WAPE divides total absolute error by total absolute actual spend (undefined if the denominator is zero). Reforecast after major architecture or pricing changes.\n<\/p>\n\n\n\n<p class=\"source-note wp-block-paragraph\">\n  Test status: the Python\/SQLite script and its expected output were executed twice in a clean local workspace. No live cloud credentials, SaaS APIs, Kubernetes cluster or StatsForecast installation were used.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">22. Example enterprise FinOps dashboard<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"700\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/mock-dashboard-with-month-to-date-spend-of-dollar19800.png\" alt=\"Mock dashboard with month-to-date spend of $19,800, forecast of $28,400, budget of $30,000, and cost breakdown for seven technology providers.\" class=\"wp-image-80533\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/mock-dashboard-with-month-to-date-spend-of-dollar19800.png 1200w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/mock-dashboard-with-month-to-date-spend-of-dollar19800-300x175.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/mock-dashboard-with-month-to-date-spend-of-dollar19800-1024x597.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2026\/12\/mock-dashboard-with-month-to-date-spend-of-dollar19800-768x448.png 768w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"figure-caption wp-block-paragraph\">\n  Figure 8. Example dashboard using hypothetical financial data.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Essential reporting pages<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  Page\n<\/p><\/th><th><p>\n  Decision supported\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  Executive overview\n<\/p><\/td><td><p>\n  Budget versus actual and forecast; overall trends\n<\/p><\/td><\/tr><tr><td><p>\n  Vendor and service costs\n<\/p><\/td><td><p>\n  What is driving the invoice?\n<\/p><\/td><\/tr><tr><td><p>\n  Environment and team costs\n<\/p><\/td><td><p>\n  Who owns spending and shared allocations?\n<\/p><\/td><\/tr><tr><td><p>\n  Forecast and budgets\n<\/p><\/td><td><p>\n  What will the end-of-period expenditure be?\n<\/p><\/td><\/tr><tr><td><p>\n  Optimization\n<\/p><\/td><td><p>\n  Which opportunities are approved, implemented and verified?\n<\/p><\/td><\/tr><tr><td><p>\n  Contracts and renewals\n<\/p><\/td><td><p>\n  What licenses, commitments and renewals are due?\n<\/p><\/td><\/tr><tr><td><p>\n  Data quality\n<\/p><\/td><td><p>\n  Which sources are stale, incomplete or unreconciled?\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Every dashboard should display the reporting period, currency, data freshness and whether amounts are estimated or invoice-final. Use the same source of truth for finance and engineering.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">23. Compare the tools by capability and select a stack<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  Tool\n<\/p><\/th><th><p>\n  Visibility\n<\/p><\/th><th><p>\n  Forecast\n<\/p><\/th><th><p>\n  Optimization \/ automation\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  OpenCost\n<\/p><\/td><td><p>\n  Workload allocation\n<\/p><\/td><td><p>\n  Not core\n<\/p><\/td><td><p>\n  Allocation insights\n<\/p><\/td><\/tr><tr><td><p>\n  OptScale\n<\/p><\/td><td><p>\n  Infrastructure billing\n<\/p><\/td><td><p>\n  Projections\n<\/p><\/td><td><p>\n  Recommendations \/ selected actions\n<\/p><\/td><\/tr><tr><td><p>\n  Koku\n<\/p><\/td><td><p>\n  Cost analytics\n<\/p><\/td><td><p>\n  Evaluate\n<\/p><\/td><td><p>\n  Processing and reporting\n<\/p><\/td><\/tr><tr><td><p>\n  Cloud Custodian\n<\/p><\/td><td><p>\n  Resource discovery\n<\/p><\/td><td><p>\n  No\n<\/p><\/td><td><p>\n  Policies and actions\n<\/p><\/td><\/tr><tr><td><p>\n  OpenOps\n<\/p><\/td><td><p>\n  Workflow results\n<\/p><\/td><td><p>\n  Not core\n<\/p><\/td><td><p>\n  Approval-based actions\n<\/p><\/td><\/tr><tr><td><p>\n  Infracost\n<\/p><\/td><td><p>\n  Estimated IaC cost\n<\/p><\/td><td><p>\n  Pre-deploy estimates\n<\/p><\/td><td><p>\n  CI cost guardrails\n<\/p><\/td><\/tr><tr><td><p>\n  Steampipe\n<\/p><\/td><td><p>\n  SQL resource inventory\n<\/p><\/td><td><p>\n  Custom\n<\/p><\/td><td><p>\n  Discovery and queries\n<\/p><\/td><\/tr><tr><td><p>\n  Powerpipe\n<\/p><\/td><td><p>\n  SQL dashboards\n<\/p><\/td><td><p>\n  Custom\n<\/p><\/td><td><p>\n  Benchmarks\n<\/p><\/td><\/tr><tr><td><p>\n  KRR\n<\/p><\/td><td><p>\n  Resource metrics\n<\/p><\/td><td><p>\n  No\n<\/p><\/td><td><p>\n  Workload recommendations\n<\/p><\/td><\/tr><tr><td><p>\n  Goldilocks\n<\/p><\/td><td><p>\n  VPA recommendations\n<\/p><\/td><td><p>\n  No\n<\/p><\/td><td><p>\n  Visual rightsizing\n<\/p><\/td><\/tr><tr><td><p>\n  Karpenter\n<\/p><\/td><td><p>\n  Node operations\n<\/p><\/td><td><p>\n  No\n<\/p><\/td><td><p>\n  Provisioning\/consolidation\n<\/p><\/td><\/tr><tr><td><p>\n  Superset\n<\/p><\/td><td><p>\n  Billing DB dashboards\n<\/p><\/td><td><p>\n  Custom\n<\/p><\/td><td><p>\n  BI analysis\n<\/p><\/td><\/tr><tr><td><p>\n  Grafana OSS\n<\/p><\/td><td><p>\n  Billing\/metrics dashboards\n<\/p><\/td><td><p>\n  Custom\n<\/p><\/td><td><p>\n  Alerts\n<\/p><\/td><\/tr><tr><td><p>\n  StatsForecast\n<\/p><\/td><td><p>\n  Historical data input\n<\/p><\/td><td><p>\n  Statistical models\n<\/p><\/td><td><p>\n  Not applicable\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Recommended combinations<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  For multi-cloud infrastructure: start with OptScale and evaluate source coverage. For Kubernetes: use OpenCost plus KRR or Goldilocks, then a compatible node consolidation mechanism. For cloud and SaaS: choose FOCUS-aligned collectors, PostgreSQL, Superset and a forecasting library. For cost prevention: add Infracost subject to its service and plan requirements. For execution: choose Cloud Custodian or OpenOps based on policy and approval needs.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  A small, reliable architecture is preferable to running 14 overlapping applications. Introduce new tools only where they solve a verified gap.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">24. Total cost of ownership and implementation roadmap<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Are the tools really free?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Open-source licenses can remove software licensing fees for the covered code. They do not remove hosting, storage, API query charges, security reviews, staffing, backups, commercial support or optional hosted features. Include these in the financial evaluation.\n<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  Example monthly amount\n<\/p><\/th><th><p>\n  USD\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  Technology expenditure\n<\/p><\/td><td><p>\n  $30,000\n<\/p><\/td><\/tr><tr><td><p>\n  Assumed reduction (10%)\n<\/p><\/td><td><p>\n  $3,000\n<\/p><\/td><\/tr><tr><td><p>\n  FinOps platform operating cost\n<\/p><\/td><td><p>\n  $500\n<\/p><\/td><\/tr><tr><td><p>\n  Net monthly savings\n<\/p><\/td><td><p>\n  $2,500\n<\/p><\/td><\/tr><tr><td><p>\n  Net annual savings at steady state\n<\/p><\/td><td><p>\n  $30,000\n<\/p><\/td><\/tr><tr><td><p>\n  Operating ROI: net savings \/ operating cost\n<\/p><\/td><td><p>\n  500%\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Illustrative calculation only. Validate the baseline, account for migration and implementation cost, and measure actual bills and business volume. Savings opportunities are not realized savings.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">A practical 12-week roadmap<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  Phase\n<\/p><\/th><th><p>\n  Activities\n<\/p><\/th><th><p>\n  Acceptance measure\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  Weeks 1\u20132\n<\/p><\/td><td><p>\n  Inventory providers, invoices, account ownership\n<\/p><\/td><td><p>\n  All in-scope payment sources identified\n<\/p><\/td><\/tr><tr><td><p>\n  Weeks 3\u20134\n<\/p><\/td><td><p>\n  Build read-only collectors and raw archive\n<\/p><\/td><td><p>\n  Sources ingest and report freshness\n<\/p><\/td><\/tr><tr><td><p>\n  Weeks 5\u20136\n<\/p><\/td><td><p>\n  Normalize, reconcile and deduplicate\n<\/p><\/td><td><p>\n  Closed invoice totals reconcile\n<\/p><\/td><\/tr><tr><td><p>\n  Weeks 7\u20138\n<\/p><\/td><td><p>\n  Build dashboards and ownership mapping\n<\/p><\/td><td><p>\n  Cost by provider and team is usable\n<\/p><\/td><\/tr><tr><td><p>\n  Weeks 9\u201310\n<\/p><\/td><td><p>\n  Add budgets and baseline forecasts\n<\/p><\/td><td><p>\n  Forecast error measured\n<\/p><\/td><\/tr><tr><td><p>\n  Weeks 11\u201312\n<\/p><\/td><td><p>\n  Pilot approved optimization\n<\/p><\/td><td><p>\n  One verified improvement with no SLO regression\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\n  The schedule is illustrative; actual effort depends on access, vendor coverage and data quality. Prefer an MVP with a single cloud provider and one SaaS source before expanding.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">25. Enterprise best practices and troubleshooting<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Best practices<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><br>    Use distinct read-only collection, reporting and remediation identities. Keep secrets out of Git and logs.<br>  <\/li>\n\n\n\n<li><br>    Version cost schemas, collectors, chart releases and policy definitions. Preserve raw billing data for audit and replay.<br>  <\/li>\n\n\n\n<li><br>    Track data freshness, duplicate records, missing identifiers, currencies and reconciliation variance. Mark estimates and partial periods.<br>  <\/li>\n\n\n\n<li><br>    Normalize cost allocation tags and team ownership. Establish shared cost allocation rules with finance and engineering.<br>  <\/li>\n\n\n\n<li><br>    Review optimization recommendations against SLOs, recovery requirements, regulatory obligations and commitments.<br>  <\/li>\n\n\n\n<li><br>    Forecast recurring and variable expenses separately; validate against a naive baseline. Record realized savings and operational impact.<br>  <\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Troubleshooting guide<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><p>\n  Symptom\n<\/p><\/th><th><p>\n  Likely cause \/ corrective action\n<\/p><\/th><\/tr><\/thead><tbody><tr><td><p>\n  OpenCost shows zero cost\n<\/p><\/td><td><p>\n  Verify Prometheus targets, service connection, pricing configuration and metric retention.\n<\/p><\/td><\/tr><tr><td><p>\n  Missing historical data\n<\/p><\/td><td><p>\n  Backfill provider exports; verify retention, API windows and closed vs open periods.\n<\/p><\/td><\/tr><tr><td><p>\n  Dashboard and invoice differ\n<\/p><\/td><td><p>\n  Check taxes, credits, discounts, timing, currencies and invoice scope.\n<\/p><\/td><\/tr><tr><td><p>\n  SaaS charge counted twice\n<\/p><\/td><td><p>\n  Check marketplace payment source and vendor-detail lineage; count authoritative rows once.\n<\/p><\/td><\/tr><tr><td><p>\n  Forecast inaccurate\n<\/p><\/td><td><p>\n  Check incomplete months, pricing changes, outliers and backtesting results.\n<\/p><\/td><\/tr><tr><td><p>\n  Rightsizing has no financial effect\n<\/p><\/td><td><p>\n  Check whether nodes were actually released and commitments still apply.\n<\/p><\/td><\/tr><tr><td><p>\n  Optimization breaks workloads\n<\/p><\/td><td><p>\n  Stop automation, use rollback, inspect SLOs and disruption controls.\n<\/p><\/td><\/tr><tr><td><p>\n  Billing API returns access errors\n<\/p><\/td><td><p>\n  Verify scoped billing permissions, account ID, region and tenant access.\n<\/p><\/td><\/tr><tr><td><p>\n  Slow cost dashboards\n<\/p><\/td><td><p>\n  Use partitioning, indexed date\/account fields and pre-aggregated reporting datasets.\n<\/p><\/td><\/tr><tr><td><p>\n  Alerts fail or show no data\n<\/p><\/td><td><p>\n  Check time-series format, source freshness, time range and alert no-data behavior.\n<\/p><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">26. Frequently asked questions about open-source FinOps tools<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. What is the best free FinOps tool?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  OptScale is a strong starting point for multi-cloud management, and OpenCost specializes in Kubernetes. Broader SaaS and software billing generally needs a normalized ledger and connectors.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Is OpenCost completely free?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  The Apache-2.0 code is available without license fees. Metrics storage, hosting, cloud billing exports and maintenance may incur costs.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Can open-source FinOps replace commercial software?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Often it can cover many core functions, but compare integration coverage, governance, support, identity controls and operational cost against your requirements.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. Which tool should AWS users choose?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Evaluate OptScale for billing, Cloud Custodian for policy automation, and Steampipe plus Powerpipe for resource checks. The AWS billing export is still a source of actual costs.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. Which tools work best for Kubernetes?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Use OpenCost for allocation, KRR or Goldilocks for requests, and a compatible node provisioner or built-in capacity manager for consolidation.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">6. Which open-source tools forecast costs?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  OptScale supports projections; StatsForecast offers statistical models. Contract-based expenses may be more accurately forecast using contractual schedules.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">7. Can Grafana be used for FinOps?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Yes. Connect a reconciled billing database and use dashboards or SQL time-series alerts. Grafana does not collect or reconcile all vendor bills by itself.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">8. Can I consolidate SaaS and cloud costs?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Yes, using billing APIs, FOCUS exports and invoice imports. Vendor integrations must distinguish actual billing, allocations, estimates and marketplace duplicates.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">9. Does Infracost replace cloud bills?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  No. It estimates IaC costs before changes are applied. Actual usage, contractual prices, discounts and taxes still need invoice analysis.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">10. What is the best self-hosted stack?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\n  A practical starting point is Python, FOCUS, PostgreSQL, Superset, StatsForecast and OpenCost where Kubernetes allocation is needed.\n<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">27. Conclusion and official learning resources<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\n  There is no single open-source application that provides perfect billing visibility, SaaS contracts, invoice reconciliation, forecasting, Kubernetes allocation and safe automation for every provider. The open-source ecosystem is valuable because you can combine specialized components and retain ownership of your financial data.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Start with the actual payment sources. Normalize and reconcile costs with a FOCUS-aware ledger. Publish trustworthy dashboards, then add forecasting and targeted optimization. Evaluate OptScale for out-of-the-box cloud management, OpenCost for workload allocation, Superset or Grafana for reporting, StatsForecast for forecasts, and policy automation when approvals and safeguards are ready.\n<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\n  Successful FinOps is not simply a smaller bill. It is better financial visibility, measurable business value and accountable technology decisions.\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Official resources and documentation<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.finops.org\/\" rel=\"noopener\">FinOps Foundation<\/a><br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/www.finops.org\/framework\/\" rel=\"noopener\">FinOps Framework<\/a><br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/focus.finops.org\/\" rel=\"noopener\">FOCUS<\/a><br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/opencost.io\/docs\/\" rel=\"noopener\">OpenCost<\/a><br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/hystax\/optscale\" rel=\"noopener\">OptScale<\/a><br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/project-koku\/koku\" rel=\"noopener\">Koku<\/a><br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/cloudcustodian.io\/docs\/\" rel=\"noopener\">Cloud Custodian<\/a><br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/docs.openops.com\/\" rel=\"noopener\">OpenOps<\/a><br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/www.infracost.io\/docs\/\" rel=\"noopener\">Infracost<\/a><br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/steampipe.io\/docs\" rel=\"noopener\">Steampipe<\/a><br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/powerpipe.io\/docs\" rel=\"noopener\">Powerpipe<\/a><br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/robusta-dev\/krr\" rel=\"noopener\">KRR<\/a><br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/goldilocks.docs.fairwinds.com\/\" rel=\"noopener\">Goldilocks<\/a><br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/karpenter.sh\/docs\/\" rel=\"noopener\">Karpenter<\/a><br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/superset.apache.org\/\" rel=\"noopener\">Apache Superset<\/a><br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/grafana.com\/docs\/\" rel=\"noopener\">Grafana<\/a><br>  <\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/Nixtla\/statsforecast\" rel=\"noopener\">StatsForecast<\/a><br>  <\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Featured image: Open-source FinOps tools for cost visibility, forecasting and optimization. Cloud and SaaS make it easy to deploy technology and equally easy to lose track of&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[49],"tags":[],"class_list":["post-80524","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/80524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=80524"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/80524\/revisions"}],"predecessor-version":[{"id":80534,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/80524\/revisions\/80534"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=80524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=80524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=80524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}