# Use REST call to publish results as Dynatrace metrics

**URL:** <https://community.dynatrace.com/t/use-rest-call-to-publish-results-as-dynatrace-metrics/41547>\
**Category:** Dynatrace API\
**Tags:** dynatrace-managed, dynatrace-api, tokens\
**Created:** [September 7, 2023, 12:29am UTC](https://community.dynatrace.com/t/use-rest-call-to-publish-results-as-dynatrace-metrics/41547 "2023-09-07T00:29:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dramacher](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dramacher](https://community.dynatrace.com/u/dramacher)\
**Post date:** [September 7, 2023, 12:29am UTC](https://community.dynatrace.com/t/use-rest-call-to-publish-results-as-dynatrace-metrics/41547/1 "2023-09-07T00:29:28Z")

</div>

Similar to “custom/generic database query” we are looking for a plug-in that allows us to make REST calls and store the result as custom metric in dynatrace.

Is there a tool available to do so. The query should run every minute to create useful metrics over time.

---

<div class="post-metadata">

**Author:** ![MateuszKacprzak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mateuszkacprzak/32/5197_2.png) [@MateuszKacprzak](https://community.dynatrace.com/u/MateuszKacprzak)\
**Post date:** [September 8, 2023, 2:17pm UTC](https://community.dynatrace.com/t/use-rest-call-to-publish-results-as-dynatrace-metrics/41547/2 "2023-09-08T14:17:52Z")

</div>

Hi,

There are a few ways to do that.

- [Extensions and Scripting integration](https://www.dynatrace.com/support/help/extend-dynatrace/extend-metrics/ingestion-methods/oneagent-pipe)
- [Extensions SDK 1.0](https://www.dynatrace.com/support/help/extend-dynatrace/extensions)
- You can write your own script/simple app and use [REST API](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/metric-v2/post-ingest-metrics)

See also [other ways](https://www.dynatrace.com/support/help/extend-dynatrace) to extend Dynatrace.

Best regards,

Mateusz

---

<div class="post-metadata">

**Author:** ![dramacher](https://avatars.discourse-cdn.com/v4/letter/d/d2c977/32.png) [@dramacher](https://community.dynatrace.com/u/dramacher)\
**Post date:** [September 11, 2023, 5:02pm UTC](https://community.dynatrace.com/t/use-rest-call-to-publish-results-as-dynatrace-metrics/41547/3 "2023-09-11T17:02:20Z")

</div>

The challenge is nit the Rest API but the fact that the endpoint called is providing ODATA 4.0 response that has to be parsed and converted into a metric. It does not seem there is any out-of-the-box solution that supports that within synthetic scripts.
