In modern cloud-native environments, observability is critical to maintaining the health, performance, and reliability of applications. SAP Kyma, as a Kubernetes-based runtime for building extensions and microservices on SAP Business Technology Platform (SAP BTP), provides a comprehensive set of tools and best practices for monitoring and logging. This article introduces the key concepts, components, and techniques used to monitor and log applications running in SAP Kyma, helping developers and operators ensure smooth and efficient operations.
SAP Kyma enables developers to deploy microservices, serverless functions, and event-driven workflows that integrate SAP and third-party systems. As applications grow in complexity and scale, understanding system health, performance bottlenecks, errors, and usage patterns becomes essential. Effective monitoring and logging allow teams to:
SAP Kyma leverages a rich observability stack based on open-source tools natively integrated with Kubernetes:
Prometheus is the primary tool for metrics collection and monitoring in Kyma. It scrapes metrics from services and infrastructure components, storing time-series data that can be queried for alerting and visualization.
Grafana is a dashboard and visualization tool that works with Prometheus to provide real-time and historical views of metrics. Kyma comes with pre-configured dashboards to monitor system components and custom applications.
Loki is a log aggregation system designed to collect, index, and query logs efficiently.
Kiali provides service mesh observability for the Istio service mesh used by Kyma.
Kyma collects logs from all workloads running on the Kubernetes cluster, including:
Logs are collected via a fluentd agent or similar log shipper and stored centrally in Loki. Developers and operators can then search, filter, and analyze logs to troubleshoot issues or audit system behavior.
To fully leverage Kyma’s observability features, developers should:
This proactive approach ensures that extensions and custom code adhere to operational best practices.
Kyma’s event-driven architecture often involves integration with SAP systems such as SAP S/4HANA or SAP Commerce Cloud. Monitoring and logging in Kyma can be correlated with SAP backend system logs and metrics to provide end-to-end observability across the entire business process.
Monitoring and logging are foundational to operating resilient and performant applications in SAP Kyma. By leveraging Kyma’s integrated observability tools—Prometheus, Grafana, Loki, and Kiali—developers and operators can gain deep insights into the behavior of their microservices and serverless functions. This observability not only aids in rapid troubleshooting but also drives continuous improvement and innovation in SAP cloud-native extensions.
Tags: #SAPKyma #Monitoring #Logging #Observability #Prometheus #Grafana #Loki #Kiali #SAPBTP #CloudNative