Splunk AppDynamics

Metric Data using REST API - Faulty frequency in older timestamps

Ashmita_Thapar
Explorer

Hi

I am trying to request metric data from my controller using metric-data rest api. Though, the frequency of data points is showing some inconsistent behaviour while giving time frame of current data and older dates.

e.g. Fetch Business Transactions' Calls per minute metric data for 15 minute frame in today.

Frequency - ONE_MIN in response and number of data points is 15 which is accurate.

But for older date, say 9th May 2022 data being requested on 11th May 2022 for a data frame of 15 mins, similar to above scenario. Then,

Frequency - TEN_MIN in response and only 1 data point which is inaccurate.

Note: rollup is false in both cases.

https://xx.saas.appdynamics.com/controller/rest/applications/xx/metric-data?metric-path=Service+Endp...

[
    {
        "metricId": 2960604,
        "metricName": "BTM|Application Diagnostic Data|SEP:211315|Calls per Minute",
        "metricPath": "Service Endpoints|xx|/xx|Individual Nodes|baseapp|Calls per Minute",
        "frequency": "TEN_MIN",
        "metricValues": [
            {
                "startTimeInMillis": 1652107200000,
                "occurrences": 1,
                "current": 141,
                "min": 0,
                "max": 167,
                "useRange": true,
                "count": 10,
                "sum": 1264,
                "value": 126,
                "standardDeviation": 0
            }
        ]
    }
]

 Urgent help required over this one...

Labels (3)
Tags (2)
0 Karma
1 Solution

Morelz
Motivator

Hi Ashmita

What you are describing is exactly how it works.

Raw per minute data is no kept indefinitely , it is aggregated at certain time periods and stored in the aggregated time sections.

You can read more here which explains how that works

https://docs.appdynamics.com/22.5/en/appdynamics-essentials/metrics-and-graphs/metric-data-resolutio...

Ciao

View solution in original post

kalyan
New Member

Can i please which api you were using to get these data values?

0 Karma

Ashmita_Thapar
Explorer

Adding to my set of observations, in older dates if i request data for timeframe less than ten minutes long e.g. 5 minutes. Then, the data set is empty and no data points are returned.

0 Karma

Morelz
Motivator

Hi Ashmita

What you are describing is exactly how it works.

Raw per minute data is no kept indefinitely , it is aggregated at certain time periods and stored in the aggregated time sections.

You can read more here which explains how that works

https://docs.appdynamics.com/22.5/en/appdynamics-essentials/metrics-and-graphs/metric-data-resolutio...

Ciao

Ashmita_Thapar
Explorer

Hey Mario,

Thanks for answering my doubts. Even though i understand the concept, but i would like to understand the difference between behaviour of UI and Rest. The UI is still capable to plotting the data with frequency ONE_MIN whereas the same time frame is served with minimum frequency TEN_MIN for rest. 

Also, the minimum TEN_MIN frequency restricts user from accessing data if the time frame of interest is smaller than 10 minutes.

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Mastering Threat Intelligence in ES 8.5, Splunk AI Assistant v2, and More from Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...

Break the Build: Inside the KubeDoom Lounge at .conf26

    You step up to the machine. The pixelated corridors of a certain 1993 FPS load in front of you, EMP Pulse ...

Splunk Auto Ingestion Parallel Pipeline Scaling

Why this feature matters Many Splunk environments experience ingestion pressure long before the host is fully ...