dt-biz-cloud-costs

Analyze AWS cloud infrastructure costs in Dynatrace using DQL queries over FOCUS billing events.

Updated Dec 12, 2025
One-click install
npx skills add https://github.com/ricardojjulia/ESACompanion --skill dt-biz-cloud-costs-ricardojjulia
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: dt-biz-cloud-costs
Source: https://github.com/ricardojjulia/ESACompanion/tree/main/.github/skills/dt-biz-cloud-costs
Command: npx skills add https://github.com/ricardojjulia/ESACompanion --skill dt-biz-cloud-costs-ricardojjulia

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Cloud teams struggle to answer questions about AWS spending, cost allocation, and trends without manually exporting billing data. This Skill queries cloud cost data already ingested into Dynatrace Grail as FOCUS business events, turning natural-language cost questions into correct DQL queries. ## Core Features & Use Cases - Cost Overviews: Compute total spend and break it down by service category (Compute, Storage, etc.) or individual service using effective, billed, contracted, and list cost fields. - Cost Trends: Build daily time-series trends with makeTimeseries, overall or segmented by service category and account. - Cost Attribution: Perform chargeback/showback by sub-account or by resource tags, including a two-step tag enumeration and value breakdown workflow. - Use Case: A FinOps analyst asks "How much did each team spend on AWS last month?" The Skill verifies ingestion, filters to usage charges within the billing period, and summarizes effective cost per sub-account. ## Quick Start Ask the assistant to show your total AWS cloud spend for the last 10 days broken down by service category.

Frequently Asked Questions about dt-biz-cloud-costs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze AWS cloud costs in Dynatrace?▼

Query bizevents with event.type cost.real.spend in Grail using DQL, filtering to focus.ChargeCategory Usage and the desired ChargePeriodStart billing period. Summarize focus.EffectiveCost by dimensions like ServiceCategory or SubAccountName.

How do I break down cloud costs by team or account?▼

Use sub-account attribution by summarizing costs grouped by focus.SubAccountId and focus.SubAccountName for chargeback or showback. For finer granularity, parse the focus.Tags JSON string and group by a specific tag such as dt_owner_email.

What prerequisites are needed for Dynatrace cloud cost analysis?▼

The Cost & Carbon Optimization app must be installed and cloud cost ingestion must be configured to pull FOCUS cost and usage data from your provider. You also need Grail access with appropriate scopes to query bizevents.

Why do my cloud cost totals look wrong in DQL queries?▼

Totals are distorted when queries omit the focus.ChargeCategory Usage filter, which excludes credits, refunds, and taxes. Also filter on toTimestamp(focus.ChargePeriodStart) rather than ingestion time, since billing events arrive at end of cycle.

Does this skill cover Dynatrace platform billing costs?▼

No, it covers only AWS cloud infrastructure costs ingested as FOCUS billing events. For Dynatrace platform billing and DPS consumption questions, use the dt-platform-costs skill instead.