1 answer
- 10-1
For that particular getMetrics API, try this (this is assuming default configuration):
curl -vvv --user "testpap:alpah123" --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' http://<policy-vm-host>:8081/pdp/getMetricsMay be the easiest way to go is to use the swagger interface at
http://<policy-vm-host>:8081/pdp/swagger-ui.html- Swapnil Pathak
Thanks Jorge. I tried with curl command to getMatrics api. Below parameters I got the response body. Please help me knowing below parameter's meaning.
pdpMetrics, papMetrics, metrics Total.
Response I got :
{"responseMessage":"Transaction ID: 1e505909-8d15-4f95-9e86-b85f1a41fa42 --Policy Metrics Retrieved {\"","pdpMetrics":8,"papMetrics":8,"metricsTotal":16,"responseCode":200}
- Michael Mokry
These are the total number of policies, for example:
pdpMetric is number of policies on the PDPs
papMetric is number of policies on the PAPs
metricTotal is the sum of each.
Add your comment...
I am unable to access policy api
In our onap lab setup floating ip configured for policy vm is 172.24.4.62.
ONAP version - 1.1-STAGING-latest.
I followed Policy api posted in wiki page to check whether policy module is up and running or not.
http://172.24.4.62:8443/pdp/getMetrics
I am getting 404 error Not Found,