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!
https://github.com/Appdynamics/AppDynamics.DEXTER/wiki/Phases-and-Job-Steps lists all APIs used by each of the steps.
The Controller log file (https://github.com/Appdynamics/AppDynamics.DEXTER/wiki/Log-Files) will show all the APIs and their parameters
Hi daniel,
how we can manually check the actual api calls which are done using Dexter. hiw to get actual rest API URL?
My problem solved. At least in our case local user is needed. ldap user didn't work. I asked our service provider to make local account and with that, rest inquiry worked. Lots of thanks for Binu.Mathew for advices!
dateI'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.
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
Hope you used incognito window.
Are you able to login to below AppD UI url with the same credntials?
http://hostname:port:/controller/
That produces same error:
Exception Id:f67c8504-f9ea-423a-a588-70628457897c
Use incognito window in Chrome and try to execute the url
http://hostname:port:/controller/rest/applications
username: username@accountname
try it
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|#]
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
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!
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
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|#]
Use incognito window in Chrome and try to execute the url
http://hostname:port:/controller/rest/applications
username: username@accountname
try it
That produces same error:
Exception Id:f67c8504-f9ea-423a-a588-70628457897c
Hope you used incognito window.
Are you able to login to below AppD UI url with the same credntials?
http://hostname:port:/controller/
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
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.
User | Count |
---|---|
14 | |
7 | |
3 | |
3 | |
3 | |
2 |