Co-Authored by: @wolfgang_theilmann and @Benny-Goerzig
Centralizing observability data offers significant advantages by providing a unified view across different organizations, spaces, subaccounts, and even regions.
SAP Cloud Logging provides the ability to "share" a single instance across various application deployment locations. This offers two key benefits:
This document outlines different contexts, tools, options, and best practices for instance sharing.
Sharing an instance basically involves (re)using an existing instance from one location and making it available to multiple applications, spaces, or other locations, without having to create a duplicate instance.
There are two primary methods of instance sharing:
In this approach, the runtime environment (such as Cloud Foundry) or platform (such as BTP) provides APIs to facilitate sharing.
Documentation: CF docs on sharing-instance
Cloud Logging service offers global endpoints, making its APIs accessible from anywhere. To enable access from other locations, you can create a service key from an existing instance and share it with your applications. Cloud Foundry provides the "User-Provided Service Instances" feature to support this approach.
Documentation: User-Provided service instances
In BTP, instance sharing can happen between different source and destination locations. For this guide, we’ll zoom in on the Cloud Foundry runtime and walk through all the possible ways you can share an instance within it.
Within the Cloud Foundry environment, you can share instances in several ways.
CF spaces in the same org
CF spaces in different subaccounts on the same main/extension landscape and region
CF spaces across different subaccounts on different hyperscalers
CF spaces across different subaccounts on different main/extension landscapes
CF spaces across different subaccounts in different regions
Sharing a Cloud Logging instance using CF API, where possible, is straightforward.
cf share-service SERVICE-INSTANCE -s OTHER-SPACE
Then proceed with binding it to CF apps from the OTHER-SPACE.
Please read the limitations and security considerations from CF docs on sharing-instance
Below is a sample script demonstrating how to share and update an instance using a User-Provided Service (UPS).
In this example, we create a central SAP Cloud Logging instance in EU10 (referred to as the Source CF location) and make it available in other location - EU30 (referred to as the Destination CF location) by sharing it through a User-Provided Service.
Using OpenSearch Dashboards, telemetry data (CF logs & CF Container metrics) from all the bound apps can be viewed centrally from the parent instance.
You can distinguish and filter for different locations based on fields like `organization_name` and `organization_id`
Planning actual instantiation and deployment of Cloud Logging service instances should consider the following aspects:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 36 | |
| 36 | |
| 33 | |
| 29 | |
| 29 | |
| 26 | |
| 23 | |
| 21 | |
| 21 | |
| 20 |