Splunk AppDynamics

How to return data inside folders using the REST API?

CommunityUser
Splunk Employee
Splunk Employee

I am having some difficulty constructing a query which is able to return metric names from within a folder. I am able to successfully return the names of the folders by using the "controller/rest/applications/<application_name>/metrics" query which gives the result: 

image.png

What I would like to do is to have the contents of each folder returned in an API call. For example, what would be the query needed to return the name of all of the metrics inside of the "Overall Application Performance" folder?

image.png

Labels (3)
0 Karma
1 Solution

Yogesh_Chouk
Builder

Hi,

 

Can you try below and let us know if it helps. Replace username, account name and password with the correct credentials and run the below Rest API.

 

 

curl --user username@account_name:secret http://<controller_host>:<port>/controller/rest/applications/app_id/metrics?metric-path=Overall%20Application%20Performance

 

Thanks,

Yogesh

View solution in original post

0 Karma

Yogesh_Chouk
Builder

Hi,

 

Can you try below and let us know if it helps. Replace username, account name and password with the correct credentials and run the below Rest API.

 

 

curl --user username@account_name:secret http://<controller_host>:<port>/controller/rest/applications/app_id/metrics?metric-path=Overall%20Application%20Performance

 

Thanks,

Yogesh

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Many thanks yogesh.chouk, that has done it! 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...