Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
Xavier
Product and Topic Expert
Product and Topic Expert
2,694

Goal of this blog post


In this blog, we will create a simple panel displaying analytics for Health Monitoring data managed by SAP Cloud ALM with the ALM Grafana plugin.

This plug-in lets you extend your analytics solutions for application life-cycle management. This plugin is based on the SAP ALM analytics API. The main concepts of the SAP ALM Analytics API can be found in this blog.

 




Pre-requisites



  • You have created a service key to your SAP Cloud ALM tenants (check this blog).

  • You should configure a Grafana data source connected to your SAP Cloud ALM tenant.

  • You have configured at least one project in your SAP Cloud ALM tenant. (check the SAP support portal)


 

ALM Health Monitoring Data Provider


The SAP Cloud ALM Health Monitoring data provider supports the following dimension:




































































Dimensions Description Filter
serviceType Service type yes
serviceId Service id yes
serviceName Service name
metricId Metric Id yes
metricName Metric Name
metricLabel Metric Label yes
value value of the metric
limit Maximum value for the metric (Measures)
usage Used capacity from limit in % (Measures)
okStatus % of ok status (Measures)
warningStatus % of warning status (Measures)
criticalStatus % of critical status (Measures)

 

Query


From your Grafana instance, create a query for each service type to be displayed in your dashboard:

  • Add a Panel

  • Select your SAP Cloud ALM “Data source”.

  • Select the “Time Series” format.

  • Select the data provider: “ALM Health Monitoring

  • Select your service type: (ex: "SAP S/4 HANA Cloud")

  • Select the following dimensions:

    • ServiceName

    • ServiceId

    • ServiceType



  • Select the following metrics

    • okStatus




 

Visualisation


Select the "Status History" visualisation with the following settings:

  • Query transformation: Select the "Rename by RegExp" transformation to extract the service name from the query legend as showed below:



 

 

Result


The result will show a table displaying the overall percentage of successful metrics per services.



 

 

Query


From your Grafana instance, create a query for each service name to be displayed in your dashboard:

  • Add a Panel

  • Select your SAP Cloud ALM “Data source”.

  • Select the “Time Series” format.

  • Select the data provider: “ALM Health Monitoring

  • Select your service in the filters.

  • Select the following dimensions:

    • ServiceName

    • ServiceId

    • ServiceType

    • MetricName



  • Select the following metrics

    • okStatus




 

Visualisation


Select the "Status History" visualisation.

 

Result


The result will show a table displaying the overall percentage of successful status for each metrics of the selected service.



 

In the next blog, we will create dashboards for Real User Monitoring use-cases.

 

Thanks for reading.
3 Comments