Time Series Data Ingestion Monitoring

Overview

Description

The monitoring-dataingestion-sap application facilitates monitoring the health of various components and microservices of the ingestion pipeline. This application is meant only for the monitoring usage by the Development Operations and Developer on Duty team. This is not meant for the end-users. The monitoring APIs can be broadly classified in the following categories:

  1. Kafka: Provides deeper insights on Kafka topics, messages, and all relevant metadata.

  2. Spark: Monitors context specific and aggregated health of spark jobs.

  3. Cold store writer: Provides insights to the number of messages already synced, yet to be synced, or expired in terms of archival timeseries data to cold store.

  4. Data transfer engine: Monitors ingestion delay monitor runners. Provides monitoring capabilities for the configured tenants that have opted for cloud-delay monitoring.

  5. Cassandra error store: Provides wrapper of Cassandra cql to give REST interface on top of Cassandra error store.

Artifacts

This component consists of the following artifacts:

Component Artifacts
Name Description BCP Component
monitoring-dataingestion-sap This application is meant only for monitoring usage by the Development Operations team. This is not meant for end-users. This application facilitates the monitoring of spark job, coldstore writer, kafka, and so on. IOT-BSV-BDI
Minimum Hardware and Infrastructure Requirements
Artifact Requirements
monitoring-dataingestion-sap Memory 2GB

Documentation

Operations

Availability Checks

The following table gives you an Overview of the general purpose of the various availability checks, followed by a list of links that point directly to the check results for the various artifacts and locations:

General Overview of the Purpose of Availability Checks
Check Purpose
L3 Direct ping against the application. Shows whether the application is up and running.
L3+ Ping against the application via the app router. Can reveal app router-related problems.
L4 Requests some data from the application via the app router. Involves HANA interaction. Shows issues with the SAP HANA database.
L5 Shows problems with tenant onboarding in the business partner during the last hour.
Check Results
Artifact Landscape URL
monitoring-dataingestion-sap EU10

L3: Monitor

L3+: Monitor

L4: n/a

L5: n/a

monitoring-dataingestion-sap US10

L3: Monitor

L3+: Monitor

L4: n/a

L5: n/a

Kibana

Authorization (Cloud Access Manager (CAM) profile): CP IoTAE MoD/DoD Auditor Production

From the Kibana dashboard, set up a filter based on a condition like the following example:

{
  "query": {
    "wildcard": {
      "component_name": {
        "value": "monitoring-dataingestion-sap*"
      }
    }
  }
}
Kibana Entry Points
Landscape Entry Point
EU10

Dashboard Start Page

HTTP 5xx Errors

US10

Dashboard Start Page

HTTP 5xx Errors

Dynatrace

Dynatrace Performance Monitor

Dynatrace Performance Monitor
Landscapte Entry Point
EU10

Dashboard Start Page

US10

n/a

Grafana

Grafana Database Monitor
Landscapte Entry Point
EU10

Monitor

US10

n/a

Application Logs Available to Customers

n/a

Miscellaneous

n/a

Others

You can access the Data Ingestion dashboard via this https://<tenant-name>.iot-sap.<domain>/di-monitor/index.html. For example, the URL for the EU10 landscape is https://sap-iotaemonitoring.iot-sap.cfapps.eu10.hana.ondemand.com/di-monitor/index.html.

This dashboard describes the following information:

  • Coldstore writer summary

  • Offset lags by partition

  • Spark job summary

Login: This application is designed to work only with the credentials of tenant name mentioned in the application’s env called MONITORING_TENANT. The user must have access to monitoring role collection of this monitoring tenant. In the example URL mentioned in this section belongs to EU10 live landscape. The name of the configured MONITORING_TENANT in the application’s env is sap-iotaemonitoring.

Troubleshooting

Availability

If the Availability check is undergoing maintenance, wait until end of maintenance and continue with the monitoring.

  • If the SAP Cloud Platform Availability Service is not accessible, report the issue to the Cloud Engineer on Duty considering there could be an issue in SAP Cloud Platform (SCP) Availability Service.

  • If status of evaluation is "Up" (again) and SPC incident has been automatically closed, do not take any further action (end).
  • <<info about wiki link to clarified>>
Recommended Actions for Availability Errors
Check Root Cause Solution
L3 If any of the application is down, both L3 and L3+ checks will also be down.

Go to SAP Cloud Platform Cockpit

  1. Search for the application monitoring-dataingestion-sap.

  2. Check if the status of the application is started.

  3. If the status is started, trigger an HTTP GET request to the ping API https://monitoring-dataingestion-sap.<<domain>>/Ping and the expected response is Pong.

    1. If the response is Pong, the application is up and running. Wait for another two minutes and check if IoTAE_AWS-Live-EU10_monitoring-dataingestion-sap_L3 is still down. Report the issue to the Cloud Engineer on Duty considering there could be an issue in SAP Cloud Platform (SCP) Availability Service.

    2. If the response is not Pong, wait for two minutes and check if the availability check status is up again.

      If the two minute wait check fails and the IoTAE_AWS-Live-EU10_monitoring-dataingestion-sap_L3 check continues to be down, restart the monitoring-dataingestion-sap application from SCP Cloud Platform Cockpit.

  4. Wait for 5 minutes for the application to get successfully restarted. Repeat step (2) through (3) for confirmation.

  5. If the IoTAE_AWS-Live-EU10_monitoring-dataingestion-sap_L3 check continues to be down, inform the Cloud Engineer on Duty to inform that SAP Leonardo IoT service is down.

L3+  

Go to SAP Cloud Platform Cockpit

  1. Search for the application monitoring-dataingestion-sap.

  2. Check if the status of the application is started.

  3. If the status is started, trigger an HTTP GET request to the ping API https://monitoring-dataingestion-sap.<<domain>>/Ping and the expected response is Pong.

    1. If the response is Pong, the application is up and running. Wait for another two minutes and check if IoTAE_AWS-Live-EU10_monitoring-dataingestion-sap_L3+ is still down. Report the issue to the Cloud Engineer on Duty considering there could be an issue in SAP Cloud Platform (SCP) Availability Service.

    2. If the response is not Pong, wait for two minutes and check if the availability check status is up again.

      If the two minute wait check fails and the IoTAE_AWS-Live-EU10_monitoring-dataingestion-sap_L3+ check continues to be down, restart the monitoring-dataingestion-sap application from SCP Cloud Platform Cockpit.

  4. Wait for 5 minutes for the application to get successfully restarted. Repeat step (2) through (3) for confirmation.

  5. If the IoTAE_AWS-Live-EU10_monitoring-dataingestion-sap_L3+ check continues to be down, inform the Cloud Engineer on Duty to inform that SAP Leonardo IoT service is down.

L4   As this application is primarily responsible for monitoring the status of Data Ingestion application, the information about the available L4 check is added to data ingestion application’s availability check and recommended action item. One of the L4 check running from this application and mentioned in the data ingestion section is IoTAE_AWS-Live-EU10_monitoring-dataingestion-sap_Sparkjob_L4.

HTTP Errors

The following table presents a list of error-related HTTP status codes, the typical root causes, and the recommended actions for solving the issue.

Recommended Actions for Solving HTTP Errors
Status Code Root Cause Solution
400 n/a n/a
401 n/a n/a
403 n/a n/a
404 n/a n/a
429 n/a n/a
500 n/a Check the request logs and analyze the stack trace in Dynatrace or kibana dashboard to find the root cause. Based on the analysis, ensure to take necessary action such as logging a BCP ticket in the relevant application component.
502 n/a n/a
902 n/a n/a

General Metrics

The following table presents a list of common metrics for this component with a threshold value indicating critical system load, along with a recommended action as well as the preferred monitoring tool, where applicable.

General Component Metrics
Metric Tool Threshold Action
CPU Usage Dynatrace n/a n/a
Memory Usage Dynatrace n/a n/a
No. of Requests/Time Dynatrace n/a n/a
Avg. Response Time Dynatrace n/a n/a
Incoming Byte Rate n/a n/a n/a
Outgoing Byte Rate n/a n/a n/a

Kafka Consumer/Producer

Consumer: <tenant>.sap.v1.iot.processed_timeseries

Additional Metrics

n/a

Miscellaneous

n/a