# Web application metrics collecting using REST (Dynatrace API)

**URL:** <https://community.dynatrace.com/t/web-application-metrics-collecting-using-rest-dynatrace-api/20400>\
**Category:** Dynatrace API\
**Tags:** real-user-monitoring-classic, dashboards-classic, dynatrace-api\
**Created:** [September 24, 2020, 12:18pm UTC](https://community.dynatrace.com/t/web-application-metrics-collecting-using-rest-dynatrace-api/20400 "2020-09-24T12:18:24Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![bpisarenko](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@bpisarenko](https://community.dynatrace.com/u/bpisarenko)\
**Post date:** [September 24, 2020, 12:18pm UTC](https://community.dynatrace.com/t/web-application-metrics-collecting-using-rest-dynatrace-api/20400/1 "2020-09-24T12:18:24Z")

</div>

Hello everyone!

I am new in the Dynatrace. And I started to investigate this great product recently. At the moment I have a task which I should solve with Dynatrace. The short explanation of my problem:

1. There is the web-application where I have to measure some user activities and operations.
2. I have no access to the server-side that reason I can’t use OneAgent.
3. I have no access to the client source code that reason I can’t use RUM JS code.
4. In my browser I can’t use any extensions that reason I can’t use the RUM browser extension.
5. I only have a Dynatrace SaaS account where I created a new application. And I can send data to Dynatrace API only.

Consequently, I have several questions:

1. Can I send via REST (Dynatrace API) some metrics(user operations/application time execution) using external instruments (e.g. Selenium Web Driver & RestAssure or, stupidly using Postman)?
2. If I can, how can I attach/bind those metrics to an existing application?
3. Should I use existing metrics or create my custom ones?
4. Where can I watch them next? In standard charts or in custom ones?

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [September 24, 2020, 12:50pm UTC](https://community.dynatrace.com/t/web-application-metrics-collecting-using-rest-dynatrace-api/20400/2 "2020-09-24T12:50:34Z")

</div>

[@Bohdan P.](https://answers.dynatrace.com/users/41769/view.html) This is quite a unique situation. Ideally, you’d want to have the Dynatrace Oneagent installed. If you are unable to install the oneagent, you can grab metrics via Agentless monitoring. You can also leverage bringing in data from other platforms via the API, and the beauty of this is that once this data is in Dynatrace, for the most part, you can use all of the charting, sorting, filtering and alerting within Dynatrace.

> **[Set up agentless monitoring in RUM Classic](https://docs.dynatrace.com/docs/observe/digital-experience/rum-classic/web-applications/initial-setup/set-up-agentless-real-user-monitoring)**
>
> Set up agentless monitoring for your web applications.

---

<div class="post-metadata">

**Author:** ![bpisarenko](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@bpisarenko](https://community.dynatrace.com/u/bpisarenko)\
**Post date:** [September 24, 2020, 1:12pm UTC](https://community.dynatrace.com/t/web-application-metrics-collecting-using-rest-dynatrace-api/20400/3 "2020-09-24T13:12:24Z")

</div>

[@Chad T.](https://answers.dynatrace.com/users/36422/view.html) Thanks for your flash reaction on my question.

I had explored the documentation that you pointed. But I didn’t find an answer to my questions there. No approaches from described are fit me.

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [September 24, 2020, 1:21pm UTC](https://community.dynatrace.com/t/web-application-metrics-collecting-using-rest-dynatrace-api/20400/4 "2020-09-24T13:21:53Z")

</div>

since your situation is so unique due to access - i would highly recommend putting in a support ticket so support staff can assist you and get your data flowing.

---

<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:** [September 24, 2020, 1:27pm UTC](https://community.dynatrace.com/t/web-application-metrics-collecting-using-rest-dynatrace-api/20400/5 "2020-09-24T13:27:55Z")

</div>

Why not use the newly introduced metrics ingest API endpoint. Its extremely flexible, powerful and you can add any combination of key value pairs to describe your custom data. And best of all you can easily attach it to any manual created RUM application or any other kind of Smartscape entity.

See help here:

> **[Metrics API - POST ingest data points](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/metric-v2/post-ingest-metrics)**
>
> Ingest custom metrics to Dynatrace via Metrics v2 API.

Best greetings,

Wolfgang

---

<div class="post-metadata">

**Author:** ![bpisarenko](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@bpisarenko](https://community.dynatrace.com/u/bpisarenko)\
**Post date:** [September 24, 2020, 1:31pm UTC](https://community.dynatrace.com/t/web-application-metrics-collecting-using-rest-dynatrace-api/20400/6 "2020-09-24T13:31:18Z")

</div>

Thanks for your advice. I will try it.

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [September 24, 2020, 1:35pm UTC](https://community.dynatrace.com/t/web-application-metrics-collecting-using-rest-dynatrace-api/20400/7 "2020-09-24T13:35:02Z")

</div>

[@Wolfgang B.](https://answers.dynatrace.com/users/12838/view.html) just posted a possible solution, I’d give that a shot!

---

<div class="post-metadata">

**Author:** ![bpisarenko](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@bpisarenko](https://community.dynatrace.com/u/bpisarenko)\
**Post date:** [September 25, 2020, 6:57am UTC](https://community.dynatrace.com/t/web-application-metrics-collecting-using-rest-dynatrace-api/20400/8 "2020-09-25T06:57:44Z")

</div>

Thanks. I will try.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [September 26, 2020, 2:18pm UTC](https://community.dynatrace.com/t/web-application-metrics-collecting-using-rest-dynatrace-api/20400/9 "2020-09-26T14:18:33Z")

</div>

[@Wolfgang B.,](https://answers.dynatrace.com/users/12838/view.html)

I hadn’t noticed the metrics ingest API 😞 It seems much alike ingesting into Influxdb. Is there some sort of standardization in this domain. I’ll clearly be using it 🙂

---

<div class="post-metadata">

**Author:** ![DanteP](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dantep/32/41603_2.png) [@DanteP](https://community.dynatrace.com/u/DanteP)\
**Post date:** [September 26, 2020, 7:18pm UTC](https://community.dynatrace.com/t/web-application-metrics-collecting-using-rest-dynatrace-api/20400/10 "2020-09-26T19:18:02Z")

</div>

Hey [@Wolfgang B.](https://answers.dynatrace.com/users/12838/view.html) that ingest metrics look pretty neat. Does Davis use them in any way?

---

<div class="post-metadata">

**Author:** ![bpisarenko](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@bpisarenko](https://community.dynatrace.com/u/bpisarenko)\
**Post date:** [October 1, 2020, 12:54pm UTC](https://community.dynatrace.com/t/web-application-metrics-collecting-using-rest-dynatrace-api/20400/11 "2020-10-01T12:54:13Z")

</div>

Hi [@Wolfgang B.](https://answers.dynatrace.com/users/12838/view.html)

I did as you advised. I tried to use new metrics ingest API. But I got a fail. All metrics that I sent via ingest API are not available in Dynatrace Web. I can extract information about them via REST(Definitely, they were created). But I can’t use them in the web interface to create data charts. Moreover, I can’t even find them in the web interface. )

In Dynatrace documentation metrics ingest request is marked as “Early Adopted”. And I suppose it’s the reason for this behavior.

Actually, all metrics in the web interface that I came across have some prefix separated with a colon. But metrics ingest endpoint rejects metrics id with a colon. And at this point, we get a collision.

Moreover, I can’t edit metrics created via metrics ingest API, I can’t set name, can’t set description.

I think, at the moment it is a raw tool and we need to wait for a new API release.

P.S.

I solved my case using RUM browser extension. Thanks much for your help.

---

<div class="post-metadata">

**Author:** ![robert\_schausbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/robert_schausbe/32/13152_2.png) [@robert\_schausbe](https://community.dynatrace.com/u/robert_schausbe)\
**Post date:** [November 5, 2020, 9:42am UTC](https://community.dynatrace.com/t/web-application-metrics-collecting-using-rest-dynatrace-api/20400/12 "2020-11-05T09:42:13Z")

</div>

Hi [@Bohdan P.](https://answers.dynatrace.com/users/41769/view.html),

you can access metrics ingested via new ingest API in the Web UI via Explorer. You can find/navigate to if you access custom charts and look after the banner “Analyze multidimensional metrics from Prometheus, StatsD and others channels right on your dashboards”.

In the future we will also provide the capability to store metadata on top of those metrics like description, display-name, unit.
