SAP / alm-plug-in-for-grafana

Extend your analytics for application life-cycle management with the datasource plugins for SAP Cloud ALM and SAP Focused Run. With the SAP Cloud ALM Plugin for Rest interface, you are able to connect your SAP Cloud ALM tenants and get data in Table format or Time-series format to get new insights on your different ALM processes.
Apache License 2.0
12 stars 5 forks source link

alm-plug-in-for-grafana --> An unexpected error happened during exploring Data Providers #109

Closed mehusa82 closed 5 months ago

mehusa82 commented 7 months ago

Hello everyone, we are using the Grafana plugin for SAP Cloud ALM and always get the error message "An unexpected error happened" when using the data provider (ALM Business Process Monitoring - KPI_HISTORY_TOTALS). In the Dev Tools under Network I see the following error regarding "PRECONDITION_REQUIRED : Missing filter for dimension 'kpiId'", but I cannot define the filter because the unexpected error appears first. { "error": { "code": "PRECONDITION_REQUIRED", "message": "PRECONDITION_REQUIRED : Missing filter for dimension 'kpiId'", "target": "", "details": [ { "code": "x-correlationid", "message": "d0b2e6fe-bc37-4a4c-6ee6-bb0e9917ab8e" } ] } } With (ALM Real User Monitoring - DP_RUM_REQUEST_TYPES) the unexpected error also appears, with the info "PRECONDITION_REQUIRED : At most 5 services or systems allowed in scope. Add filters to restrict number of services or systems.", but again the unexpected error occurs before I can define a filter. { "error": { "code": "PRECONDITION_REQUIRED", "message": "PRECONDITION_REQUIRED : At most 5 services or systems allowed in scope. Add filters to restrict number of services or systems.", "target": "", "details": [ { "code": "x-correlationid", "message": "f906cc9a-2e9f-4b14-7c16-045ca9dce2ef" } ] } } The service instance has the required scope calm-api.bm.read and calm-api.rum.read

Thanks & best regards, Sascha

andreacampo commented 5 months ago

Hello,

The error means that one of the mandatory filters is missing. In case of BPM this is the "Kpid" which describes the metric to be displayed:

image

When mandatory filters are missing, you get the displayed error as explained here:

https://help.sap.com/docs/cloud-alm/apis/business-process-monitoring-analytics-api?locale=en-us

From the "Restriction" section:

If the kpiID is not selected as filter, an HTTP 428 exception is raised.

Best Regards,

Andrea