Controller (SaaS, On Premise)

cancel
Showing results for 
Search instead for 
Did you mean: 

Fetch all metrics of an application via API

New Poster

Fetch all metrics of an application via API

Hi all,

 

I'm trying to download all metrics from an application in Appdynamics.

 

By saying all metrics I really mean all the metrics in the metric browser tree.

 

What I'm doing ATM is:

1. Mapping all the metrics via RESTUI

2. Downloading all the mapped metrics via REST

 

The problem is that it's taking too long.

In step 1 when the metric is a folder type e.g. "Overall Application Performance" I've to issue a new API request to get its contents and so on.. So this is a sequential procedure.

In step 2 sometimes it takes over 2 hours to download a 2 hour (1/1minute) of metrics running 30 threads simultaneously.

 

Some benchmarks:

[START] Map Metrics
Pulled 901070 data paths
[END] Map Metrics. Took 1h 32m
[START] Download Metrics
[END] Download Metrics. Took 1h 3m
[START] Map Metrics
Pulled 43653 data paths
[END] Map Metrics. Took 3m 52s
[START] Download Metrics
[END] Download Metrics. Took 3m 24s

The first example now has over 2M data paths taking around 4 hours to download.

Is there any other way I could try to optimize it?

Fetch all metrics of an application via API