cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Controller (SaaS, On Premises)

Pull Metric browser REST url without using UI

sunadmn
New Poster

Pull Metric browser REST url without using UI

Is there a way to get the REST URLs for a given set of metrics without using the UI? I need to create a compiled list and going to the UI for each is going to be painful so I hope there is a way to easily do this from the command line.

 

Cheers,

-Stephen

Tags (2)
By replying you agree to the Terms and Conditions of the AppDynamics Community.
Pull Metric browser REST url without using UI
5 REPLIES 5
Kevin.Brunette
AppDynamics Team (Retired)

Re: Pull Metric browser REST url without using UI

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..

 

Screen Shot 2017-12-18 at 3.33.03 PM.png

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

sunadmn
New Poster

Re: Pull Metric browser REST url without using UI

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

akash
Creator

Re: Pull Metric browser REST url without using UI

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

Tags (3)
Binu.Mathew
Builder

Re: Pull Metric browser REST url without using UI

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

Re: Pull Metric browser REST url without using UI

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

Tags (1)