question

Virdavinder S. avatar image
Virdavinder S. asked ·

Do we have REST API for Dynatrace 6.5 to retrieve dashboard data in JSON ?

dashboard6.5rest apireportssplunk
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.

Dominik S. avatar image
Dominik S. answered ·

There is a community-supported JSON reporting plugin available at https://community.dynatrace.com/community/display... and https://github.com/Dynatrace/Dynatrace-AppMon-JSON-Reporting-Plugin, it internally takes the XML report and converts it to JSON on-the-fly, maybe it does what you are looking for here.

Dominik.

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.

Jacob P. avatar image
Jacob P. answered ·

Vir,

I am not aware of any JSON exporting capability in 6.1. If there was I can not tell you why it was removed, the product team would have to. However you can easily convert XML to JSON, you can just use the XSLT and python script from the Splunk app. You do not need to use the whole splunk app. You can just download it and pull those components out and incorporate into your existing scripts. You can also submit an RFE to maybe have this feature added in the future.

- Jacob

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.

Virdavinder S. avatar image
Virdavinder S. answered ·

I don't understand. Dynatrace has this feature in 6.1

why did they remove it from 6.5 ?

Vir

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.

Jacob P. avatar image
Jacob P. answered ·

Well what you could do is take the python script from the Splunk app and strip out the part that uses XSLT to convert the XML to JSON.

Otherwise you could try this analytics stream REST call which sends out JSON, but I am not sure if it will work as it seems to be geared towards ELK https://www.dynatrace.com/support/doc/appmon/integrations-and-extensions/realtime-streaming/purelytics-stream/

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.

Virdavinder S. avatar image
Virdavinder S. answered ·

hi Jacob

Thanks for the prompt reply.

Just to give you a little background on what we are doing, We are injecting dynatrace dashboards data into splunk using our "in-house" python scripts rather than using Splunk App. Now you know that we can't use Splunk App as we are filtering out DT Data using scripts, also we can't use XML as we already have scripts for JSON Data. we were using python scripts for 6.1 DT Dashboards, now as we are moving to 6.5, we need to have this JSON capability in 6.5.

Thanks

Vir

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.

Jacob P. avatar image
Jacob P. answered ·

Hi Virdavinder,

There is the ability to get it in XML, just take a look at https://community.dynatrace.com/community/pages/vi...

The Splunk app for Dynatrace AppMon has a script that converts the XML to JSON using XSLT.

https://community.dynatrace.com/community/display/...

May I ask what you are using JSON for? If it is for Splunk, which you have tagged in your question, then this will work for you.

Let me know how else I can help.

Thank you,

Jacob

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.