- Use Cases
- Anomaly Management
- Analyze service costs by region
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