Controller (SaaS, On Premise)

cancel
Showing results for 
Search instead for 
Did you mean: 

need api calls to pull the data from appd

need api calls to pull the data from appd

Hello ,

I would like to know how can i pull tthe data from our metric browser as we dnt have rest api access.

i have used curl commands for the health rules , But i'd like to know if this is the only way to pull the data from Appd as its saas.

Help appreiciated!

 

 

Tags (1)
need api calls to pull the data from appd
15 REPLIES 15
AppDynamics Team

Re: need api calls to pull the data from appd

If you have access to the application from the UI, you do have REST API access. You can call https://docs.appdynamics.com/display/PRO45/Metric+and+Snapshot+API and pull data.

 

Alternatively, you can extract data (via Metric API calls done for you) using https://github.com/Appdynamics/AppDynamics.DEXTER



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Tags (1)

Re: need api calls to pull the data from appd

Hello,

 

Does the rest api support other authentication than AppDynamics authentication? Dexter job file documentation says that only AppDynamics authentication is supported. I think, it will use rest api. I have tried to use rest api, without success. I always get error:

<html><body><h1>500 Internal Server Error</h1><br/>Exception Id:5b8e7dc6-8e78-43f6-8dbf-485f8f994276<br/></body></html>

 

And in controllers server.log file there is corresponding error, which don't tell actual reason:

 

[#|2018-07-17T10:52:57.576+0300|SEVERE|glassfish 4.1|com.singularity.ee.controller.servlet.handlers.ad|_ThreadID=191;_ThreadName=http-listener-2(20);_TimeMillis=1531813977576;_LevelValue=1000;|500 Error with Exception Id:f1b27ea0-e515-4726-b3df-334a26d03ab8|#]

 

Producer

Re: need api calls to pull the data from appd

Use incognito window in Chrome and try to execute the url
http://hostname:port:/controller/rest/applications

username: username@accountname

try it

Re: need api calls to pull the data from appd

That produces same error:

500 Internal Server Error


Exception Id:f67c8504-f9ea-423a-a588-70628457897c

Highlighted
Producer

Re: need api calls to pull the data from appd

Hope you used incognito window.  

 

Are you able to login to below AppD UI url with the same credntials?

http://hostname:port:/controller/

Re: need api calls to pull the data from appd

Yes, I used incognito window and I can log in to AppDynamics, but I can't use http. I have to use https, so my url was: https://our.url:8181/controller/rest/applications. 

 

When I am trying rest api with curl, I'll use key file like this:

curl --cacert keyfile --user username@customer1:password https://xxx.xxx.xxx.xx:8181/controller/rest/applications/Application_name

Producer

Re: need api calls to pull the data from appd

Try this

curl -k -K /home/appdynamics/test/password http://hostname:port/controller/rest/applications/<ApplicationName>/business-transactions?output=JSON

in /home/appdynamics/test/password update data as below
user = username@accountname:passowrd

Re: need api calls to pull the data from appd

I'll always get either exception response (https) or empty response (http). I think empty response has something to do with network access (firewall etc), because when I try same in incognito window, response is:

xxx.xxx.xxx.xx did not send data.

ERR_EMPTY_RESPONSE
 
 

Re: need api calls to pull the data from appd

Can you pls ellobarate more about it , Either way I am not able to get the solution. pls help me