Stay organized with collectionsSave and categorize content based on your preferences.
Google Cloud's Agent for SAP provides support for monitoring your SAP workloads
running on Compute Engine instances and it helps you run SAP systems efficiently on Google Cloud.
You must install Google Cloud's Agent for SAP on all VMs that run any SAP
system. This agent collects and sends all the required information that SAP
mandates to the SAP Host Agent. For more information, seeSAP Note 2469354.
To collect the underlying infrastructure and application metrics that are used
for observability, you must enable additional features for the
Agent for SAP.
This document describes how to enable these features in Agent for SAP.
Checklist for Agent for SAP
The following checklist summarizes the tasks you need to perform to ensure
that the Agent for SAP is set up properly for observability:
Install and configure Agent for SAP
Install and configure Google Cloud's Agent for SAP on each Compute Engine VM that you want to monitor. Agent for SAP is packaged with the following "for SAP" public OS images:
Version 3.5of Agent for SAP contains all features that are required to set up observability for SAP.
If the agent was previously installed, we recommend that you update it to the latest version.
To view annotations for the occurrences ofpredefined SAP events, you need
version 3.7 or later of the agent.
In the agent's configuration file, the following parameters must be set totrue.
If you installed the agent after February 14, 2024, these flags are set totrueby default and no change is required.
discovery_configuration.enable_workload_discovery
discovery_configuration.enable_discovery
If you installed the agent before February 14, 2024, or if you've
disabled the system's discovery feature, run the following commands:
Enable Agent for SAP's Process Monitoring metric collection
In the agent's configuration file, thecollection_configuration.collect_process_metricsparameter must be set totrue. To enable the feature, run the following command:
Edit thehana_monitoring_configurationsection
in the agent's configuration file to provide the HANA instance name,
SID, host, port, user, and password (either using Secret or anhdbuserstorekey).
Note that the specified HANA user must have read access to the tables
being queried by thedefault queries.
Validate the setup for Workload Manager observability
You can validate if you have the correct Google Cloud setup for using the
Workload Manager observability service by running the agent'sstatuscommand. This command is supported from version 3.7 of the agent.
To validate the Google Cloud setup, complete the following steps:
Establish an SSH connection with your Compute Engine instance.
Run the following command:
sudo/usr/bin/google_cloud_sap_agentstatus
If your Google Cloud setup for using the Workload Manager
observability service is correct, then the output includes the following.
Your configuration might have values other than thedefaultones.
Agent Status:
Installed version: 3.7-....
...
Systemd Service Enabled: True
Systemd Service Running: True
Cloud API Full Scopes: True
Configuration File: /etc/google-cloud-sap-agent/configuration.json
Configuration Valid: True
...
----------------------------------------------------------------------------
Process Metrics: Enabled
Status: Fully Functional
IAM Permissions: All granted
Configuration:
collect_process_metrics: true (configuration file)
process_metrics_frequency: 30 (default)
process_metrics_to_skip: [] (default)
slow_process_metrics_frequency: 120 (default)
...
----------------------------------------------------------------------------
HANA Monitoring Metrics: Enabled
Status: Fully Functional
IAM Permissions: All granted
Configuration:
connection_timeout: 120 (default)
enabled: true (configuration file)
execution_threads: 10 (default)
max_connect_retries: 1 (default)
query_timeout_sec: 300 (default)
sample_interval_sec: 300 (default)
send_query_response_time: false (default)
...
----------------------------------------------------------------------------
System Discovery: Enabled
Status: Fully Functional
IAM Permissions: All granted
Configuration:
enable_discovery: true (default)
enable_workload_discovery: true (default)
sap_instances_update_frequency: 60 (default)
system_discovery_update_frequency: 14400 (default)
...
If your output conveys that some setup is missing, then review the
information provided in the preceding sections, perform the required actions,
and then re-run thestatuscommand to re-validate the setup.
Example configuration file
Once you've enabled the features for observability, Agent for SAP's configuration
file looks similar to the following:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Configure Agent for SAP for metrics collection\n\n| **Preview**\n|\n|\n| This product or feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA products and features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nGoogle Cloud's Agent for SAP provides support for monitoring your SAP workloads\nrunning on Compute Engine instances and it helps you run SAP systems efficiently on Google Cloud.\nYou must install Google Cloud's Agent for SAP on all VMs that run any SAP\nsystem. This agent collects and sends all the required information that SAP\nmandates to the SAP Host Agent. For more information, see\n[SAP Note 2469354](https://launchpad.support.sap.com/#/notes/2469354).\n\nTo collect the underlying infrastructure and application metrics that are used\nfor observability, you must enable additional features for the\nAgent for SAP.\n\nThis document describes how to enable these features in Agent for SAP.\n\nChecklist for Agent for SAP\n---------------------------\n\nThe following checklist summarizes the tasks you need to perform to ensure\nthat the Agent for SAP is set up properly for observability:\n\n\n\u003cbr /\u003e\n\nValidate the setup for Workload Manager observability\n-----------------------------------------------------\n\nYou can validate if you have the correct Google Cloud setup for using the\nWorkload Manager observability service by running the agent's\n`status` command. This command is supported from version 3.7 of the agent.\n\nTo validate the Google Cloud setup, complete the following steps:\n\n1. Establish an SSH connection with your Compute Engine instance.\n2. Run the following command:\n\n sudo /usr/bin/google_cloud_sap_agent status\n\n If your Google Cloud setup for using the Workload Manager\n observability service is correct, then the output includes the following.\n Your configuration might have values other than the **`default`** ones. \n\n ```\n Agent Status:\n Installed version: 3.7-....\n ...\n Systemd Service Enabled: True\n Systemd Service Running: True\n Cloud API Full Scopes: True\n Configuration File: /etc/google-cloud-sap-agent/configuration.json\n Configuration Valid: True\n ...\n ----------------------------------------------------------------------------\n Process Metrics: Enabled\n Status: Fully Functional\n IAM Permissions: All granted\n Configuration:\n collect_process_metrics: true (configuration file)\n process_metrics_frequency: 30 (default)\n process_metrics_to_skip: [] (default)\n slow_process_metrics_frequency: 120 (default)\n ...\n ----------------------------------------------------------------------------\n HANA Monitoring Metrics: Enabled\n Status: Fully Functional\n IAM Permissions: All granted\n Configuration:\n connection_timeout: 120 (default)\n enabled: true (configuration file)\n execution_threads: 10 (default)\n max_connect_retries: 1 (default)\n query_timeout_sec: 300 (default)\n sample_interval_sec: 300 (default)\n send_query_response_time: false (default)\n ...\n ----------------------------------------------------------------------------\n System Discovery: Enabled\n Status: Fully Functional\n IAM Permissions: All granted\n Configuration:\n enable_discovery: true (default)\n enable_workload_discovery: true (default)\n sap_instances_update_frequency: 60 (default)\n system_discovery_update_frequency: 14400 (default)\n ...\n ```\n3. If your output conveys that some setup is missing, then review the\n information provided in the preceding sections, perform the required actions,\n and then re-run the `status` command to re-validate the setup.\n\nExample configuration file\n--------------------------\n\nOnce you've enabled the features for observability, Agent for SAP's configuration\nfile looks similar to the following: \n\n```json\n {\n \"provide_sap_host_agent_metrics\": true,\n \"bare_metal\": false,\n \"log_level\": \"INFO\",\n \"log_to_cloud\": true,\n \"collection_configuration\": {\n \"collect_workload_validation_metrics\": true,\n \"collect_process_metrics\": true\n },\n \"discovery_configuration\": {\n \"enable_workload_discovery\": true,\n \"enable_discovery\": true\n },\n \"hana_monitoring_configuration\": {\n \"enabled\": true,\n \"hana_instances\": [\n {\n \"name\": \"local\",\n \"sid\": \"DEH\",\n \"host\": \"localhost\",\n \"port\": \"30015\",\n \"user\": \"system\",\n \"secret_name\": \"password-secret-name\"\n }\n ]\n }\n }\n \n```\n\nWhat's next\n-----------\n\n- Learn how to [observe an SAP workload](/workload-manager/docs/observe/sap/view-dashboards)."]]