Skip to content

Commit c1fcd04

Browse files
authored
Merge pull request #37 from SAP-docs/batching-and-metric-updates
Add CF metrics and batching for UPS users
2 parents 196c0d9 + 1499453 commit c1fcd04

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

docs/ingest-from-cloud-foundry-runtime-f5a7c99.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
# Ingest from Cloud Foundry Runtime
44

5-
Shipping logs from applications deployed on SAP BTP Cloud Foundry can be configured in different ways. Even without any specific application logs, you can analyze your applications based on the automatically issued request logs from the Cloud Foundry router. Further, you can benefit from default contents, such as dashboards, index patterns, and retention settings.
6-
7-
5+
You can configure shipping logs and resource usage metrics from applications deployed on SAP BTP Cloud Foundry in various ways. Even if you don't have specific application logs, you can analyze your applications using the automatically generated request logs from the Cloud Foundry router. Additionally, you benefit from default contents: dashboards, index patterns, and retention settings.
86

97
> ### Note:
108
> You can also [Ingest via OpenTelemetry API Endpoint](ingest-via-opentelemetry-api-endpoint-fdc78af.md).
@@ -14,8 +12,6 @@ Shipping logs from applications deployed on SAP BTP Cloud Foundry can be configu
1412
1513
All configuration steps can be done either using SAP BTP Cockpit or the Cloud Foundry Command Line Interface.
1614

17-
18-
1915
<a name="loiof5a7c993743c4ee79722479371b90b37__section_fbf_yc4_xyb"/>
2016

2117
## Procedures
@@ -100,7 +96,7 @@ For more information about different contexts, tools, options, and best practice
10096
5. Create a user provided service using the following the template filled with the values of the previous step and a user-provided-service-name of your choice:
10197
10298
```
103-
cf cups <user-provided-service-name> -l https://<ingest-username>:<ingest-password>@<ingest-endpoint>/cfsyslog
99+
cf cups <user-provided-service-name> -l https-batch://<ingest-username>:<ingest-password>@<ingest-endpoint>/cfsyslog?drain-type=all
104100
```
105101
106102
6. Proceed with [Bind the Application to the Service Instance](ingest-from-cloud-foundry-runtime-f5a7c99.md#loiof5a7c993743c4ee79722479371b90b37__bind_the_application) and bind to the user provided service.
@@ -112,7 +108,7 @@ For more information about different contexts, tools, options, and best practice
112108
3. Create a User-Provided Service following [Creating User-Provided Service Instances in Cloud Foundry Environment](https://help.sap.com/docs/service-manager/sap-service-manager/creating-user-provided-service-instances-in-cloud-foundry-environment) using `Instance Name` of your choice and the information from the the service key to configure `System Logs Drain URL`:
113109
114110
```
115-
https://<ingest-username>:<ingest-password>@<ingest-endpoint>/cfsyslog
111+
https-batch://<ingest-username>:<ingest-password>@<ingest-endpoint>/cfsyslog?drain-type=all
116112
```
117113
118114
4. Proceed with [Bind the Application to the Service Instance](ingest-from-cloud-foundry-runtime-f5a7c99.md#loiof5a7c993743c4ee79722479371b90b37__bind_the_application) and bind to the user provided service.
@@ -123,5 +119,5 @@ For more information about different contexts, tools, options, and best practice
123119
124120
## Result
125121
126-
The ingested data can be analyzed in OpenSearch Dashboards \(see [Access and Analyze Observability Data](access-and-analyze-observability-data-dad5b01.md)\) based on the `logs-cfsyslog-*` index pattern.
122+
The ingested data can be analyzed in OpenSearch Dashboards \(see [Access and Analyze Observability Data](access-and-analyze-observability-data-dad5b01.md)\) based on the `logs-cfsyslog-*` index pattern for logs and the `metrics-otel-v1-*` index pattern for resource metrics.
127123

0 commit comments

Comments
 (0)