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

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

vsingh
Participant

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

6 REPLIES 6

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

vsingh
Participant

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

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/

vsingh
Participant

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

why did they remove it from 6.5 ?

Vir

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

dominik_stadler
Dynatrace Pro
Dynatrace Pro

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.