THE LINUX FOUNDATION PROJECTS
See what is coming in v1.5 FOCUS 1.5
Docs navigation
On this page

    Analyze service costs by region

    This query uses the Provider column. Provider is deprecated in v1.3 and will be removed in v1.4.

    FOCUS Versions

    v1.0 v1.1 v1.2

    Context

    Analyzing Service level spending trends over a time period can expose expected and unexpected growth in the consumption of various services, by region, across all providers and is a good way for the FinOps team to prioritize usage and rate optimization conversations with product, engineering and finance leaders within the organization.

    FOCUS SQL Query

    SELECT
      ChargePeriodStart,
      ProviderName,
      RegionId,
      ServiceName,
      SUM(EffectiveCost) AS TotalEffectiveCost
    FROM focus_data_table
    WHERE ChargePeriodStart >= ? and ChargePeriodEnd  < ?
    GROUP BY
      ChargePeriodStart,
      ProviderName,
      RegionId,
      ServiceName
    ORDER BY ChargePeriodStart,
      SUM(EffectiveCost) DESC

    FOCUS Datasets

    FOCUS Columns

    Anomaly-Detected Cost Avoidance Measures amount of cost avoidance as a result of identifying and correcting an anomaly.