GET API to pull metrics from AIOPS
search cancel

GET API to pull metrics from AIOPS

book

Article ID: 382991

calendar_today

Updated On:

Products

DX APM SaaS

Issue/Introduction

Is there any GET API to pull metrics from AIOPS

local Services -> POST Metrics to AIOPS -> DX Dashboard

We need these metrics for different component to decide on resources.

Is there any GET API to pull the above metrics?

Resolution

There is POST API that you get from the Dashboard. Open the DEV tools and you can see the API call and payload.  

One Example is as below:

POST:

https://apmgw.dxi-na1.saas.broadcom.com/atc/metric/queryMetric

payload:

{
    "querySpecifier": {
        "op": "SPEC",
        "sourceNameSpecifier": {
            "ignoreCase": true,
            "op": "REGEX",
            "pattern": "SuperDomain\\|hostanme\\|ClusterDeployment.*"
         },
        "attributeNameSpecifier": {
            "ignoreCase": true,
            "op": "REGEX",
            "pattern": "(LagMonitor\\|)?(Prod|PROD):.....*-lag"
        }
    },
    "queryRange": {
        "endTime": 0,
        "rangeSize": 3600,
        "frequency": 30
    },
    "clampSize": 10
}

Once it is working for you, then you can adjust the query range and clamping as you need. we would suggest keep clamping around 1000.