# Ingesting custom metric to custom device

**URL:** <https://community.dynatrace.com/t/ingesting-custom-metric-to-custom-device/35491>\
**Category:** Open Q&A\
**Tags:** dynatrace-managed, custom-devices, dynatrace-api\
**Created:** [June 15, 2022, 10:09am UTC](https://community.dynatrace.com/t/ingesting-custom-metric-to-custom-device/35491 "2022-06-15T10:09:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JAR](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@JAR](https://community.dynatrace.com/u/JAR)\
**Post date:** [June 15, 2022, 10:09am UTC](https://community.dynatrace.com/t/ingesting-custom-metric-to-custom-device/35491/1 "2022-06-15T10:09:59Z")

</div>

Hi!!

Is it possible to ingest a custom metric (via API v2) to a customDevice?  
I see in the documentation the example to a HOST-id, but not to CustomDevice-id

Br

Jose A

---

<div class="post-metadata">

**Author:** ![alvaro\_sanchez](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@alvaro\_sanchez](https://community.dynatrace.com/u/alvaro_sanchez)\
**Post date:** [June 15, 2022, 10:36am UTC](https://community.dynatrace.com/t/ingesting-custom-metric-to-custom-device/35491/2 "2022-06-15T10:36:22Z")

</div>

Hi!

You have a couple of options here:

- You can use that same API v2 ingest endpoint only using a&nbsp;dt.entity.custom\_device as the dimension to filter by. That way you can then create a chart in the data explorer that you can filter by custom device.  
- There’s also a specific endpoint, using a different format, for the reporting of metrics to custom devices:&nbsp;[Report custom device metric via Dynatrace API — Dynatrace Docs](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/topology-and-smartscape/custom-device-api/report-custom-device-metric-via-rest-api)

Regards,  
Álvaro

---

<div class="post-metadata">

**Author:** ![techean](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/techean/32/227_2.png) [@techean](https://community.dynatrace.com/u/techean)\
**Post date:** [June 21, 2022, 11:23am UTC](https://community.dynatrace.com/t/ingesting-custom-metric-to-custom-device/35491/3 "2022-06-21T11:23:34Z")

</div>

Hi&nbsp;[@JAR](https://community.dynatrace.com/user/48634)&nbsp; let me know if&nbsp;[@alvaro\_sanchez](https://community.dynatrace.com/user/18994)&nbsp; suggestion helped you as per your ask.

---

<div class="post-metadata">

**Author:** ![JAR](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@JAR](https://community.dynatrace.com/u/JAR)\
**Post date:** [June 21, 2022, 11:37am UTC](https://community.dynatrace.com/t/ingesting-custom-metric-to-custom-device/35491/4 "2022-06-21T11:37:38Z")

</div>

Hi.

Both ways ingest metric, OK.

But I see a difference, API v1 I can see the metrics in the CUSTOMDEVICE infographic.

Example:

 ![JAR_0-1655811393662.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/8/58e1d41d01cf522265e0372d30c88ebc62b198cf.png)

And with API v2, not.

Example:

 ![JAR_1-1655811419858.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/8/38de0c2f48faef13aca90b79c8cfbecb054a13bf.png)

Do you know if this is so? Or should i do something?

Thanks

BR Jose A

---

<div class="post-metadata">

**Author:** ![cjimenezb](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@cjimenezb](https://community.dynatrace.com/u/cjimenezb)\
**Post date:** [November 8, 2024, 1:57am UTC](https://community.dynatrace.com/t/ingesting-custom-metric-to-custom-device/35491/5 "2024-11-08T01:57:07Z")

</div>

Were you able to resolve the metric appearing with APIv2?
