question

Narravula R. avatar image
Narravula R. asked ·

Does Dynatrace SaaS Timeseries APi give me data instance id wise?

I get the response JSON for my instances with data points. I can see the entity field gives me the mapping between dynatrace terminology and AWS instances. But I don't get all the instance id's. I get the name tags specified on the instance. Couple of questions for this use case..

1. How do I explicitly say that I need the instance id's and not the name tags in the api.

2. Or is there any separate API giving me mapping between the dynatrace terminology and the aws id or ARN corresponding to it?

3. What is my name tag if two instances have same name? Does my rest api show the same name for two different dynatrace id's or Does it show instance id for one of them?

Thanks.

rest apiamazon web services
1 comment
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Anyone could kindly suggest?

0 Likes 0 · ·
Kulwinder S. avatar image
Kulwinder S. answered ·

hi Narravula,

you will not be able to do that in API call. But you will have to wrap the api call in script which will further pull the details you need from the json file.

Something similar to what i have done here:

https://answers.dynatrace.com/search.html?c=&f=&type=question+OR+idea+OR+kbentry&redirect=search%2Fsearch&sort=relevance&q=lomas

do let me know if it still doesn't work for you will write something up then.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Andre B. avatar image
Andre B. answered ·

Hi Narravula,

Have you tried to create an automatic tag* with the ID placeholder and tested if you get that ID in the JSON response?

*Settings > Tags > Automatically applied tags > Create tag

Regards.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.