15 Jun 2022 11:09 AM - last edited on 19 Oct 2022 02:22 PM by MaciejNeumann
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
Solved! Go to Solution.
15 Jun 2022 11:36 AM
Hi!
You have a couple of options here:
- You can use that same API v2 ingest endpoint only using a 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: https://www.dynatrace.com/support/help/dynatrace-api/environment-api/topology-and-smartscape/custom-...
Regards,
Álvaro
21 Jun 2022 12:23 PM
Hi @JAR let me know if @alvaro_sanchez suggestion helped you as per your ask.
21 Jun 2022 12:37 PM
Hi.
Both ways ingest metric, OK.
But I see a difference, API v1 I can see the metrics in the CUSTOMDEVICE infographic.
Example:
And with API v2, not.
Example:
Do you know if this is so? Or should i do something?
Thanks
BR Jose A
08 Nov 2024 01:57 AM
Were you able to resolve the metric appearing with APIv2?