cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynatrace V2 API - How do I call a custom device?

louis_gallo
Helper

Dynatrace V2 API - How do I call a custom device?

 

I have an Oracle custom device that I would like to pull Oracle database statistics for?

 

mydatabaseservername.example.com:1521/mydatabasename

 

entitySelector=type(HOST),tag(Custom~device:mydatabaseservername:1521/mydatabasename)

metricSelector=builtin:tech.oracleDb.cd.cpu.idle

 

I can see it in the UI and see this values. I am banging my head trying to figure out how to get that stat via the V2 API.

 

What am I doing wrong?

 

Help!!

 

Thanks,

 

Lou

3 REPLIES 3

Babar_Qayyum
DynaMight Guru
DynaMight Guru

Hello @louis_gallo 

It seems at the moment we can perform only the following to the custom device:

  • Report custom device metrics via REST API.
  • Creates or updates a custom device.
  • Lists all the available logs on the specified custom device.
  • Gets the filtered content of the specified log.

Regards,

Babar

I am able to do this and it gets all the custom devices.

 

entitySelector=type(CUSTOM_DEVICE)

metricSelector=builtin:tech.oracleDb.cd.cpu.idle:names:merge(dt.entity.custom_device)

 

This actually works but returns the data for all custom devices.

 

Can I create a tag for a custom device to help break it down further?

 

Lou

Yes you can also Tag custom devices, either in the GUI directly on the Entity under Technologies or via Settings -> Tags -> Manually applied Tags. Another option would be to use automated tagging rules or the tagging API.

Dynatrace Certified Master, AppMon Certified Master - Dynatrace Partner - 360Performance.net

Featured Posts