# Export Dashboard Data to CSV in Dynatrace

**URL:** <https://community.dynatrace.com/t/export-dashboard-data-to-csv-in-dynatrace/19682>\
**Category:** Dashboarding\
**Tags:** dynatrace-managed, dashboards\
**Created:** [June 25, 2020, 3:37pm UTC](https://community.dynatrace.com/t/export-dashboard-data-to-csv-in-dynatrace/19682 "2020-06-25T15:37:21Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![shashank\_b\_agra](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@shashank\_b\_agra](https://community.dynatrace.com/u/shashank_b_agra)\
**Post date:** [June 25, 2020, 3:37pm UTC](https://community.dynatrace.com/t/export-dashboard-data-to-csv-in-dynatrace/19682/1 "2020-06-25T15:37:21Z")

</div>

_Summary: At version 1.244, the table CSV exports have been introduced into the Dynatrace Data Explorer._

Hi, Is there a way to export the raw

 ![25493-api-export.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/8/4/84c19954d1b1c125ee5308e29dd8475171b5b889.jpeg)  
data into a CSV? I have a API/service and i need to export the data on per minute basis for that API. Is there a way to achieve that in Dynatrace?

What i am doing is this -

I am going to “Transaction and Services” → Enter my request as above in the screenshot i copied and i get that chart. From the chart you can see there is a spike around 10 AM. So what i want is export the raw data and see the per minute request from 09:00 AM to 12:00 PM.

---

<div class="post-metadata">

**Author:** ![wolfgang\_beer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/wolfgang_beer/32/14717_2.png) [@wolfgang\_beer](https://community.dynatrace.com/u/wolfgang_beer)\
**Post date:** [June 25, 2020, 3:50pm UTC](https://community.dynatrace.com/t/export-dashboard-data-to-csv-in-dynatrace/19682/2 "2020-06-25T15:50:57Z")

</div>

In case you are using the /api/v2/metrics api, you can simply switch the output type to CSV by specifying the Content-Type: CSV in the HTTP Request header.

See the in product API Explorer for details.

See below:

 ![25522-bildschirmfoto-2020-06-25-um-175035.png](https://global.discourse-cdn.com/dynatrace/original/2X/9/9899b4a77776a1cc397bda6d9854520005947c2d.png)

---

<div class="post-metadata">

**Author:** ![shashank\_b\_agra](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@shashank\_b\_agra](https://community.dynatrace.com/u/shashank_b_agra)\
**Post date:** [June 25, 2020, 3:56pm UTC](https://community.dynatrace.com/t/export-dashboard-data-to-csv-in-dynatrace/19682/3 "2020-06-25T15:56:39Z")

</div>

Not really. I am going to “Transaction and Services” → Enter my request as above in the screenshot i copied and i get that chart. From the chart you can see there is a spike around 10 AM. So what i want is export the raw data and see the per minute request from 09:00 AM to 12:00 PM.

---

<div class="post-metadata">

**Author:** ![Dallas](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dallas/32/31233_2.png) [@Dallas](https://community.dynatrace.com/u/Dallas)\
**Post date:** [June 25, 2020, 4:08pm UTC](https://community.dynatrace.com/t/export-dashboard-data-to-csv-in-dynatrace/19682/4 "2020-06-25T16:08:57Z")

</div>

Hi Shashank,

There is no way to directly export to CSV from the screen you are viewing.

However there are two options you could take:

1. Recreate the graph in a “custom chart” where you have the ability to export to csv.
2. Use the metrics API like Wolfgang suggested and pull the throughput metric for the key request.

Let me know if you need help with either of those methods.

Thanks

-Dallas

---

<div class="post-metadata">

**Author:** ![shashank\_b\_agra](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@shashank\_b\_agra](https://community.dynatrace.com/u/shashank_b_agra)\
**Post date:** [June 25, 2020, 4:29pm UTC](https://community.dynatrace.com/t/export-dashboard-data-to-csv-in-dynatrace/19682/5 "2020-06-25T16:29:57Z")

</div>

[@Dallas P.](https://answers.dynatrace.com/users/19223/view.html) Thank you for the response. So I have tried the 1st method where I am creating a customer chart and then Add metric → Request count - client (Sum) as attached. I select the time range as 03:00 AM to 11: AM and export the result in CSV.

When i see the exported CSV, I see the time difference is 5 minutes and the count. So that count average number because it contains decimal? It seems the the longer the time range i select, the time range gets increased in the exported CSV. Please if you can confirm if this is expected?

|   
 |   
 |
| 

| 25/06/2020 03:00 | 10.8 |
| 25/06/2020 03:05 | 11 |
| 25/06/2020 03:10 | 12.2 |
| 25/06/2020 03:15 | 7.2 |

 |   
 |
|   
 |   
 |

Also, Request count - client (Sum) - Is this the correct metric I have selected?

Also I have no idea how to do that using metrics API. If you can advice, that would be hugely appreciated.

 ![25494-request-per-minute.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/7/d/7d498c57c1b9f83dbc983692b212ef9867ed620a.jpeg)

---

<div class="post-metadata">

**Author:** ![Dallas](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dallas/32/31233_2.png) [@Dallas](https://community.dynatrace.com/u/Dallas)\
**Post date:** [June 25, 2020, 5:01pm UTC](https://community.dynatrace.com/t/export-dashboard-data-to-csv-in-dynatrace/19682/6 "2020-06-25T17:01:48Z")

</div>

Hi Shashank,

Yes, the time interval change you see is expected. The larger the timeframe you are viewing the more time will be in each data point interval. The only way to get around this and to accurately plot every single minute would be to use the metrics api.

I would use “Request count” metric without " - client" at the end:

 ![25502-1593103896620.png](https://global.discourse-cdn.com/dynatrace/original/2X/3/36c94a5d9e4e6675123cf1b81fe19c9ac63533fa.png)

As for querying the API for the metric you are looking for the best way to do that would be to:

1. Query the “GET all metrics” endpoint to find the metric you are looking at. In this case it is “builtin:service.keyRequest.count.total”
2. Query the “GET metric descriptor” endpoint
3. Query the “GET metric datapoint” endpoint

You can use an API testing program to test these endpoint out (I use Talend API Tester Chrome extension)

Here is the link to the Dynatrace documents with the info on how to do all of this. If you run into issues querying these API’s post them below and I will help troubleshoot when possible.

> **[Metrics API v2](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/metric-v2)**
>
> Retrieve metric information via Metrics v2 API.

-Dallas

---

<div class="post-metadata">

**Author:** ![shashank\_b\_agra](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@shashank\_b\_agra](https://community.dynatrace.com/u/shashank_b_agra)\
**Post date:** [June 26, 2020, 2:02pm UTC](https://community.dynatrace.com/t/export-dashboard-data-to-csv-in-dynatrace/19682/7 "2020-06-26T14:02:25Z")

</div>

[@Dallas P.](https://answers.dynatrace.com/users/19223/view.html) Thanks for the detailed response. I looked into the metrics API and tried to hit the URL with some params but I received this error "

```auto
{"error":{"code":401,"message":"Missing authorization parameter."}}

```

"

I believe there are some extra steps required to generate some kind of authentication. Not sure if i can do that with the rights I have so I am seeking my DT admin help for the same.

If you can add your inputs that will be really helpful. Many thanks again.

---

<div class="post-metadata">

**Author:** ![Dallas](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dallas/32/31233_2.png) [@Dallas](https://community.dynatrace.com/u/Dallas)\
**Post date:** [June 26, 2020, 3:55pm UTC](https://community.dynatrace.com/t/export-dashboard-data-to-csv-in-dynatrace/19682/8 "2020-06-26T15:55:30Z")

</div>

Hey Shashank,

You need to get a token from your administrator to authenticate with the API.

They should be able to find it in Settings → Integration → Dynatrace API

Once you have a token with the correct permissions you can append the token onto the end of your query and you should no longer see that message. 🙂

-Dallas

---

<div class="post-metadata">

**Author:** ![shashank\_b\_agra](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@shashank\_b\_agra](https://community.dynatrace.com/u/shashank_b_agra)\
**Post date:** [June 26, 2020, 4:19pm UTC](https://community.dynatrace.com/t/export-dashboard-data-to-csv-in-dynatrace/19682/9 "2020-06-26T16:19:41Z")

</div>

[@Dallas P.](https://answers.dynatrace.com/users/19223/view.html) Brilliant. You are a star and this forum is really helpful. I will check this and get back if i face any further issues. Thanks again very much 🙂

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [May 24, 2022, 6:36pm UTC](https://community.dynatrace.com/t/export-dashboard-data-to-csv-in-dynatrace/19682/10 "2022-05-24T18:36:04Z")

</div>

Starting with 1.239 you can also use the Data explorer to export your metrics data to CSV.

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [June 2, 2022, 1:53pm UTC](https://community.dynatrace.com/t/export-dashboard-data-to-csv-in-dynatrace/19682/11 "2022-06-02T13:53:02Z")

</div>

And with **1.244 say hello to table csv exports**.  
Based on your feedback we kept it simple and what you see is what you get!

Enjoy!

 ![Screenshot 2022-06-02 at 15.41.00.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/8/48867923ff9135bbaad9374a4ee8ae0a58e46c80.png)

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [June 13, 2022, 7:59am UTC](https://community.dynatrace.com/t/export-dashboard-data-to-csv-in-dynatrace/19682/12 "2022-06-13T07:59:33Z")

</div>

Related product idea for the rest of Dynatrace:&nbsp;[https://community.dynatrace.com/t5/Dynatrace-product-ideas/Export-to-CSV-option-throughout-the-UI/idi-p/181354](https://community.dynatrace.com/post/181354)

---

<div class="post-metadata">

**Author:** ![eugenm](https://avatars.discourse-cdn.com/v4/letter/e/b487fb/32.png) [@eugenm](https://community.dynatrace.com/u/eugenm)\
**Post date:** [January 12, 2023, 10:30pm UTC](https://community.dynatrace.com/t/export-dashboard-data-to-csv-in-dynatrace/19682/13 "2023-01-12T22:30:10Z")

</div>

uSQL export to csv is a must.

Really surprised that such functionality is not available.

At the very least, make it available from the uSQL window, after the results are displayed in a table mode.

---

<div class="post-metadata">

**Author:** ![atul420](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@atul420](https://community.dynatrace.com/u/atul420)\
**Post date:** [July 29, 2024, 2:09am UTC](https://community.dynatrace.com/t/export-dashboard-data-to-csv-in-dynatrace/19682/14 "2024-07-29T02:09:13Z")

</div>

Can I use the same approach to get the USQL date in tabular form using running query.

 ![atul420_0-1722218943773.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/b/7b030bf9f8e8f08ab42eb8fd135a86f2293ebc18.png)
