Software Development Kit (SDK) and API Discussions

OnCommand Api Services errno 3003 MetricService

acjackson
2,389 Views
I'm trying to get any metrics of a cluster component, eg:
 
e.g. 
https://:8443/api/1.0/ontap/aggregates/metrics
 
But I always get the following error:
 
Response Code: 404
 
 
<apiServerResponse>
   <status>
      <code>FAILED</code>
      <error>
      <errno>3003</errno>
      <message>
         Management service instance not found for the specified request.
      </message>
      <reason>
         Unable to find a management-service instance for the 'MetricService'. Please check if the management-service instances have discovered the resource or if management-service instances are added in API Services.
      </reason>
      </error>
   </status>
</apiServerResponse>
I can access the monitoring and event rest apis, but not the metrics rest api calls.
 
 
OCUM: 6.4RC1
OPM: 2.1.0RC1 in Full Integration Mode
OCAPI: 1.1
 
OCAPI Settings:
Access to Unified Manager Database with Database User/Integration Schema
API access to Unified Manager Server with Local User/OnCommand Administrator
 
 
Any ideas?
 
2 REPLIES 2

pukale
2,309 Views

pl. check the "connection" status with OPM. This can be checked in API1.1 UI:

 

below is example:

https://<IP Address>:8443/api-admin/#/management-services

 

check "Access to OnCommand Performance Manager Database" is fine. If not , resolve it and check for metrics.

 

rohancmr
2,257 Views
You can get the cluster performance matrices by connecting to the OPM Mysql DB directly using the database user.
Public