Our finance team needed a solution to export cost data from Dynatrace for forecasting so we built a solution for finance users to view this data inside PowerBI. This enabled users to massage the data to their needs and share it amongst others on their team.
Data flow:
The diagram above gives a visual representation of how the data is delivered to the user. The data automation process is described below:
- Dynatrace workflow runs daily pulling data from multiple endpoints under the Dynatrace Platform Subscription path via the Account Management API. More information on this path and API can be found here: Dynatrace Platform Subscription API — Dynatrace Docs
- Data from these endpoints gets delivered to Azure Blob Storage each in an individual JSON doc
- User pulls JSON docs from Azure Blob Storage with SAS token via PowerBI to view cost data
-
When you go to map the first doc’s URL it will ask you for the SAS token that will be utilized. This token will be used for the rest of the files in the same blob container:
-
Once data is being ingested, finance team members can use this to make custom graphs and queries like the one shown below:
-
Further information:
- I have attached a template for the workflow with placeholders (“<placeholder>”) to input your own variables.
- The Dynatrace credential vault is utilized for the blob SAS token and OAuth client ID and secret. The OAuth client ID and secret are used to generate the bearer token that is used to authenticate against the account management API (needs to have account-uac-read scope) which has a lifetime of 5 minutes. More information on the credential vault and creating an OAuth 2.0 client can be found here: Credential vault — Dynatrace Docs
and here: https://docs.dynatrace.com/docs/platform-modules/automations/cloud-automation/setup-cloud-automation/authentication - 5 endpoints are specified in the workflow that will get you started and logic may have to be edited depending on how many accounts and environments you have.
wftpl_account_cost_reporting.txt (6.59 KB)



