Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
12-18-2017 12:04 PM
12-18-2017 03:36 PM - edited 12-18-2017 03:37 PM
Hi Stephen!
We have a rest API that you can use to pull metrics. Easiest way to get the metric path is to go to your Controller -> (Select your Application under "Applications") -> Metric Browser (left menu)
Select the metric(s) you want and right click on it and you should get a "copy REST Url". That should do the trick to grab the metric information you require..
If you are running this from a script you will probably need to authenticate wit HTTP which is described here..https://docs.appdynamics.com/display/PRO44/Using+the+Controller+APIs#UsingtheControllerAPIs-Authenti...
-Kevin
12-19-2017 07:41 AM
Thanks for the reply Kevin. I am aware of how to get the URL via the Web UI but I'd like to replicate that action from a script. I couldn't find anything specific in the API docs that pointed me to how to do that without using the UI. Does that help clear up what I am trying to accomplish?
For App FooBar use API call to get REST URL for all metrics/specific metric
Cheers,
-Stephen
03-07-2018 07:40 AM - edited 03-07-2018 07:46 AM
Hi,
I'll second Stephen's request/question. It would be really helpful if there's some mechanism/endpoint one could hit that exposes a comprehensive list of metrics exposed by AppDynamics. This would enable complete automation of extracting metric data. If there's no endpoint that lists out metrics, is it possible to derive the metric path by making successive calls to the metrics hierarchy endpoint and looking at the child elements with each metric item?
Thanks,
Akash
07-27-2018 12:49 AM
Use 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
02-16-2020 05:14 PM - last edited on 02-17-2020 12:52 PM by Ryan.Paredez
Hi,
Did anyone solve this?
I need to collect the rest URL without using UI. i.e. Using command line or using any code.
Please let us know if anyone has an idea to overcome this.
Thanks in advance!
Shivanand
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form