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