# How to read CSV data from server to build a dashboard

**URL:** <https://community.dynatrace.com/t/how-to-read-csv-data-from-server-to-build-a-dashboard/38091>\
**Category:** Open Q&A\
**Tags:** dashboards-classic\
**Created:** [January 20, 2023, 3:13pm UTC](https://community.dynatrace.com/t/how-to-read-csv-data-from-server-to-build-a-dashboard/38091 "2023-01-20T15:13:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sachin\_Jindal](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@Sachin\_Jindal](https://community.dynatrace.com/u/Sachin_Jindal)\
**Post date:** [January 20, 2023, 3:13pm UTC](https://community.dynatrace.com/t/how-to-read-csv-data-from-server-to-build-a-dashboard/38091/1 "2023-01-20T15:13:17Z")

</div>

Hi,

I have scripts running on the server for capturing the data every 5 mins and wanted to read those files/capture data and present them in the dashboard.

Note: OneAgent is already installed on a server.

Regards

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [January 20, 2023, 3:25pm UTC](https://community.dynatrace.com/t/how-to-read-csv-data-from-server-to-build-a-dashboard/38091/2 "2023-01-20T15:25:06Z")

</div>

You could call&nbsp;[the metrics api](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/post-ingest-metrics)&nbsp;in your script to push the data to dynatrace.

Or you could convert it to a&nbsp;[OneAgent Extension.](https://www.dynatrace.com/support/help/extend-dynatrace/extensions/oneagent-extensions/oneagent-extensions-hands-on)

---

<div class="post-metadata">

**Author:** ![Sachin\_Jindal](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@Sachin\_Jindal](https://community.dynatrace.com/u/Sachin_Jindal)\
**Post date:** [January 20, 2023, 4:02pm UTC](https://community.dynatrace.com/t/how-to-read-csv-data-from-server-to-build-a-dashboard/38091/3 "2023-01-20T16:02:42Z")

</div>

havent used API before , any example which can help?

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [January 20, 2023, 4:53pm UTC](https://community.dynatrace.com/t/how-to-read-csv-data-from-server-to-build-a-dashboard/38091/4 "2023-01-20T16:53:21Z")

</div>

The documentation I linked contains&nbsp;[an Example](https://www.dynatrace.com/support/help/shortlink/api-metrics-v2-post-datapoints#example)&nbsp;that should fit your use case. Adding a new metric to an existing host.
