# Push third party metrics to Dynatrace SaaS

**URL:** <https://community.dynatrace.com/t/push-third-party-metrics-to-dynatrace-saas/32718>\
**Category:** Dynatrace API\
**Tags:** integrations, extensions\
**Created:** [September 17, 2021, 6:06am UTC](https://community.dynatrace.com/t/push-third-party-metrics-to-dynatrace-saas/32718 "2021-09-17T06:06:54Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Venkata\_Sainath\_Ghanachari](https://avatars.discourse-cdn.com/v4/letter/v/3ab097/32.png) [@Venkata\_Sainath\_Ghanachari](https://community.dynatrace.com/u/Venkata_Sainath_Ghanachari)\
**Post date:** [September 17, 2021, 6:06am UTC](https://community.dynatrace.com/t/push-third-party-metrics-to-dynatrace-saas/32718/1 "2021-09-17T06:06:54Z")

</div>

Hi All,

We have one 3rd party tool which is tool have REST API capability, Now we want push metrics to Dynatrace using the 3rd party tool REST API.

Is there any way we can Do it.

I saw we have Metric ingestion methodes using Dynatrace API [Extend metric observability — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/metric-ingestion) , But this case we have API from 3rd party tool.

Please provide any suggestions.

Regards,

Venkat

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [September 17, 2021, 6:17am UTC](https://community.dynatrace.com/t/push-third-party-metrics-to-dynatrace-saas/32718/2 "2021-09-17T06:17:56Z")

</div>

Hello&nbsp;[@VenkataSainath](https://community.dynatrace.com/user/41639)&nbsp;,

you have several options:

- write a script/daemon fetching the source metrics and push the metrics using Dynatrace REST API
- create an ActiveGate extension to pull the metrics and use the Extensions SDK to push them to Dynatrace

It depends on the particular use case. Pulling from REST API is not (yet) available, but it’s on the roadmap as far as I know.

---

<div class="post-metadata">

**Author:** ![Venkata\_Sainath\_Ghanachari](https://avatars.discourse-cdn.com/v4/letter/v/3ab097/32.png) [@Venkata\_Sainath\_Ghanachari](https://community.dynatrace.com/u/Venkata_Sainath_Ghanachari)\
**Post date:** [September 17, 2021, 6:27am UTC](https://community.dynatrace.com/t/push-third-party-metrics-to-dynatrace-saas/32718/3 "2021-09-17T06:27:29Z")

</div>

Hi [@Julius\_Loman](https://community.dynatrace.com/user/3364)

Thanks you so much for inputs.

And one more option I have here, We have installed oneagent in the target server and here we need Capture more metrics which was not captured By one agent.

In the Case which method Metric ingestion can be used , If any examples of available Please suggest us.

and I went through the [https://www.dynatrace.com/support/help/shortlink/metric-ingestion#anchor\_local](https://www.dynatrace.com/support/help/shortlink/metric-ingestion#anchor_local), But still not yet clear.

If you can provide any examples that would be great

Regards,

Venkat

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [September 17, 2021, 7:38am UTC](https://community.dynatrace.com/t/push-third-party-metrics-to-dynatrace-saas/32718/4 "2021-09-17T07:38:24Z")

</div>

Yes, for metric ingestion you can also use the local port on OneAgent (typically localhost:14499) or use the oneagent ingest tool available with oneagent. The advantage here is, that you don’t need any authorization (Api-Tokens) for sending metrics to Dynatrace. It’s probably the best way to ingest the metrics in your case.

You can also create a OneAgent extension and send metrics using the extensions (that’s similar to the ActiveGate extension), but the OneAgent extension can bind metrics only to the host itself.

---

<div class="post-metadata">

**Author:** ![Venkata\_Sainath\_Ghanachari](https://avatars.discourse-cdn.com/v4/letter/v/3ab097/32.png) [@Venkata\_Sainath\_Ghanachari](https://community.dynatrace.com/u/Venkata_Sainath_Ghanachari)\
**Post date:** [September 17, 2021, 8:35am UTC](https://community.dynatrace.com/t/push-third-party-metrics-to-dynatrace-saas/32718/5 "2021-09-17T08:35:14Z")

</div>

[@Julius\_Loman](https://community.dynatrace.com/user/3364) Thanks For your inputs, Could you please provide if any examples are available.

Regards,

Venkat

---

<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 17, 2021, 10:01am UTC](https://community.dynatrace.com/t/push-third-party-metrics-to-dynatrace-saas/32718/6 "2021-09-17T10:01:54Z")

</div>

One advantage of using ingestion through OneAgent is that you have a free-tier of metrics, which will not exist if you do it through the API:

> **[DDUs for metrics](https://docs.dynatrace.com/docs/license/classic-licensing/davis-data-units/metric-cost-calculation)**
>
> Understand how to calculate Davis data unit consumption and costs related to monitored metrics.

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [September 17, 2021, 10:55am UTC](https://community.dynatrace.com/t/push-third-party-metrics-to-dynatrace-saas/32718/7 "2021-09-17T10:55:29Z")

</div>

Hi,

That’s actually not an advantage. If you use the metric ingest and assign the metric to a host/process it will first use the free tier metrics.

Mike

---

<div class="post-metadata">

**Author:** ![Venkata\_Sainath\_Ghanachari](https://avatars.discourse-cdn.com/v4/letter/v/3ab097/32.png) [@Venkata\_Sainath\_Ghanachari](https://community.dynatrace.com/u/Venkata_Sainath_Ghanachari)\
**Post date:** [September 20, 2021, 5:50am UTC](https://community.dynatrace.com/t/push-third-party-metrics-to-dynatrace-saas/32718/8 "2021-09-20T05:50:36Z")

</div>

Hi [@Julius\_Loman](https://community.dynatrace.com/user/3364) ,

Thanks for your information, Today I went Through the OneAgent metric API Document, Once I have Prepared Curl Command , How i need schedule the Command and here the content type is text \Plain.

 ![VenkataSainath_0-1632116950933.png](https://global.discourse-cdn.com/dynatrace/original/2X/6/65345fe7e2cab738d2337ad04c9fe7c2d95acea4.png)

> **[OneAgent metric API](https://docs.dynatrace.com/docs/ingest-from/extend-dynatrace/extend-metrics/ingestion-methods/oneagent-metric-api)**
>
> Use the Dynatrace API to retrieve the metrics of monitored entities.

Could you please provide your inputs here .

Regards,

Venkat

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [September 20, 2021, 6:09am UTC](https://community.dynatrace.com/t/push-third-party-metrics-to-dynatrace-saas/32718/9 "2021-09-20T06:09:57Z")

</div>

[@VenkataSainath](https://community.dynatrace.com/user/41639)&nbsp;you can one the [dynatrace\_ingest instead of curl.](https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/ingestion-methods/pipe/)

For scheduling - it’s up to you… use infinite loop in script, cron scheduler, systemd unit&nbsp; (if you are on Linux).

---

<div class="post-metadata">

**Author:** ![Venkata\_Sainath\_Ghanachari](https://avatars.discourse-cdn.com/v4/letter/v/3ab097/32.png) [@Venkata\_Sainath\_Ghanachari](https://community.dynatrace.com/u/Venkata_Sainath_Ghanachari)\
**Post date:** [September 22, 2021, 5:20pm UTC](https://community.dynatrace.com/t/push-third-party-metrics-to-dynatrace-saas/32718/10 "2021-09-22T17:20:38Z")

</div>

Hi All,

Thanks for updates,

As per Metrics V2 in Documentation we can able push the Data only in “text” format, In our case , the data which we need to push the metrics to Dynatrace available in Json Format.

Any suggestions for pushing the Data in json format

Venkat

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [September 22, 2021, 9:05pm UTC](https://community.dynatrace.com/t/push-third-party-metrics-to-dynatrace-saas/32718/11 "2021-09-22T21:05:42Z")

</div>

How does your JSON format look like? You can use utils such as jq or any scripting language to transform the metrics to the line protocol accepted by Dynatrace. Actually, it’s very similar to the InfluxDB line protocol.
