<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Exporting Cost Data via Account Management API to View in Power BI in Dynatrace tips</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-tips/Exporting-Cost-Data-via-Account-Management-API-to-View-in-Power/m-p/260387#M1474</link>
    <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cschmalz_1-1729706337990.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24049i5711232C65667AF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cschmalz_1-1729706337990.png" alt="cschmalz_1-1729706337990.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data flow:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The diagram above gives a visual representation of how the data is delivered to the user. The data automation process is described below:&lt;/P&gt;&lt;OL class=""&gt;&lt;LI&gt;&lt;P&gt;Dynatrace workflow runs daily pulling data from multiple endpoints under the&amp;nbsp;Dynatrace Platform Subscription path&amp;nbsp;via the Account Management API. More information on this path and API can be found here:&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/dynatrace-api/account-management-api/dynatrace-platform-subscription-api" target="_blank"&gt;https://docs.dynatrace.com/docs/dynatrace-api/account-management-api/dynatrace-platform-subscription-api&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Data from these endpoints gets delivered to Azure Blob Storage each in an individual JSON doc&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;User pulls JSON docs from Azure Blob Storage with SAS token via PowerBI to view cost data&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;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:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cschmalz_6-1729713551371.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24054iDC86566FCD52F23F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cschmalz_6-1729713551371.png" alt="cschmalz_6-1729713551371.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cschmalz_4-1729707244420.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24052i582A614659A832E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cschmalz_4-1729707244420.png" alt="cschmalz_4-1729707244420.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Once data is being ingested, finance team members can use this to make custom graphs and queries like the one shown below:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cschmalz_5-1729709814895.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24053i02DC8C086599A76C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cschmalz_5-1729709814895.png" alt="cschmalz_5-1729709814895.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Further information:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have attached a template for the workflow with placeholders ("&amp;lt;placeholder&amp;gt;") to input your own variables.&lt;/LI&gt;&lt;LI&gt;The Dynatrace credential vault is utilized for the blob SAS token and OAuth client ID and secret. The&amp;nbsp;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 &lt;STRONG&gt;account-uac-read&lt;/STRONG&gt; 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:&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/manage/credential-vault" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/manage/credential-vault&lt;/A&gt;&lt;BR /&gt;and here:&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/platform-modules/automations/cloud-automation/setup-cloud-automation/authentication" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/platform-modules/automations/cloud-automation/setup-cloud-automation/authentication&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;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.&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Thu, 24 Oct 2024 13:24:06 GMT</pubDate>
    <dc:creator>cschmalz</dc:creator>
    <dc:date>2024-10-24T13:24:06Z</dc:date>
    <item>
      <title>Exporting Cost Data via Account Management API to View in Power BI</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Exporting-Cost-Data-via-Account-Management-API-to-View-in-Power/m-p/260387#M1474</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cschmalz_1-1729706337990.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24049i5711232C65667AF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cschmalz_1-1729706337990.png" alt="cschmalz_1-1729706337990.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data flow:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The diagram above gives a visual representation of how the data is delivered to the user. The data automation process is described below:&lt;/P&gt;&lt;OL class=""&gt;&lt;LI&gt;&lt;P&gt;Dynatrace workflow runs daily pulling data from multiple endpoints under the&amp;nbsp;Dynatrace Platform Subscription path&amp;nbsp;via the Account Management API. More information on this path and API can be found here:&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/dynatrace-api/account-management-api/dynatrace-platform-subscription-api" target="_blank"&gt;https://docs.dynatrace.com/docs/dynatrace-api/account-management-api/dynatrace-platform-subscription-api&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Data from these endpoints gets delivered to Azure Blob Storage each in an individual JSON doc&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;User pulls JSON docs from Azure Blob Storage with SAS token via PowerBI to view cost data&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;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:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cschmalz_6-1729713551371.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24054iDC86566FCD52F23F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cschmalz_6-1729713551371.png" alt="cschmalz_6-1729713551371.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cschmalz_4-1729707244420.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24052i582A614659A832E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cschmalz_4-1729707244420.png" alt="cschmalz_4-1729707244420.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Once data is being ingested, finance team members can use this to make custom graphs and queries like the one shown below:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cschmalz_5-1729709814895.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24053i02DC8C086599A76C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cschmalz_5-1729709814895.png" alt="cschmalz_5-1729709814895.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Further information:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have attached a template for the workflow with placeholders ("&amp;lt;placeholder&amp;gt;") to input your own variables.&lt;/LI&gt;&lt;LI&gt;The Dynatrace credential vault is utilized for the blob SAS token and OAuth client ID and secret. The&amp;nbsp;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 &lt;STRONG&gt;account-uac-read&lt;/STRONG&gt; 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:&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/manage/credential-vault" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/manage/credential-vault&lt;/A&gt;&lt;BR /&gt;and here:&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/platform-modules/automations/cloud-automation/setup-cloud-automation/authentication" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/platform-modules/automations/cloud-automation/setup-cloud-automation/authentication&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;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.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 24 Oct 2024 13:24:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Exporting-Cost-Data-via-Account-Management-API-to-View-in-Power/m-p/260387#M1474</guid>
      <dc:creator>cschmalz</dc:creator>
      <dc:date>2024-10-24T13:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Cost Data via Account Management API to View in Power BI</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/Exporting-Cost-Data-via-Account-Management-API-to-View-in-Power/m-p/260388#M1475</link>
      <description>&lt;P&gt;Great topic&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 20:13:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/Exporting-Cost-Data-via-Account-Management-API-to-View-in-Power/m-p/260388#M1475</guid>
      <dc:creator>MostafaHussein</dc:creator>
      <dc:date>2024-10-23T20:13:32Z</dc:date>
    </item>
  </channel>
</rss>

