VM Extension Manager lets you automate installation and configuration management for version 3.16 (latest) of Google Cloud's Agent for SAP across a fleet of Compute Engine virtual machine (VM) instances. This document shows you how to create, update, and delete global or zonal VM extension policies at the Google Cloud project level, or at the organization and folder levels (available in Preview).
For general VM Extension Manager concepts and hierarchy scopes, see About VM Extension Manager. To install and configure the agent on an individual Compute Engine instance by using a package manager, see Install Google Cloud's Agent for SAP on a Compute Engine instance.
VM extension policy limitations
Managing Google Cloud's Agent for SAP with VM Extension Manager has the following limitations:
- VM Extension Manager installs the latest available version of Google Cloud's Agent for SAP and automatically updates the agent as new versions become available. VM Extension Manager doesn't support version pinning for Google Cloud's Agent for SAP.
- VM Extension Manager supports organization-scoped and folder-scoped policies only through the Google Cloud CLI and the Compute Engine REST API, not the Google Cloud console.
For general VM Extension Manager limitations, see Limitations.
Before you begin
Before you install Google Cloud's Agent for SAP on your VM fleet, verify that you meet the following prerequisites for each target Google Cloud project that hosts your SAP VMs:
- You've verified that your VM operating system (OS) version is certified by SAP and supported by VM Extension Manager. For more information, see the following resources:
- You've set up VM Extension Manager.
- You've granted the required Identity and Access Management (IAM) roles for the agent.
- You've enabled access to Google Cloud APIs.
- You've reviewed Google Cloud's Agent for SAP pricing. VM Extension Manager is available at no additional cost, but running Google Cloud's Agent for SAP might incur charges for Cloud Monitoring and Cloud Logging usage.
Set up VM Extension Manager
In each target Google Cloud project, complete the prerequisites in the Before you begin section of the VM Extension Manager documentation. Verify that you also have the required IAM permissions for your target hierarchy scope (organization, folder, or Google Cloud project) as described in Install VM extensions by creating extension policies and Manage VM extensions by using extension policies.
Required IAM roles for the agent
To access Google Cloud resources, Google Cloud's Agent for SAP uses the service account attached to the VM hosting the agent.
To ensure that this service account has the necessary permissions to let Google Cloud's Agent for SAP send metrics to the SAP Host Agent, ask your administrator to grant the service account the following IAM roles on each target Google Cloud project that hosts your SAP VMs (including descendant Google Cloud projects that are targeted by organization-scoped or folder-scoped policies):
- Compute Viewer
(
roles/compute.viewer): to collect metrics from the Compute Engine instance that hosts your SAP system. - (Recommended)
Logs Writer
(
roles/logging.logWriter): to send agent logs to Logging. - Monitoring Viewer
(
roles/monitoring.viewer): to view the metrics collected in Monitoring. - Workload Manager Insights Writer
(
roles/workloadmanager.insightWriter): to write the collected metrics to the Workload Manager data warehouse.
For more information about granting roles, see Manage access to projects, folders, and organizations.
These predefined roles contain the permissions required to let Google Cloud's Agent for SAP send metrics to the SAP Host Agent. Your administrator might also be able to give the service account these permissions with custom roles or other predefined roles.
Enable access to Google Cloud APIs
Compute Engine recommends configuring your compute instances to allow all access scopes to all Cloud APIs and using only the IAM permissions of the instance service account to control access to Google Cloud resources. For more information, see Create a VM that uses a user-managed service account.
If you limit access to the Cloud APIs, then Google Cloud's Agent for SAP requires the following minimum access scopes on the host Compute Engine instance:
- Cloud Platform: Enabled
- Compute Engine: Read-only
- Stackdriver Monitoring API: Read-only
If you're running SAP applications on a compute instance that doesn't have an external IP address, then you need to enable Private Google Access on the subnet of the compute instance so that Google Cloud's Agent for SAP can access Google APIs and services. To enable Private Google Access on a subnet, see Configure Private Google Access.
Install and configure the agent by creating a global policy
Create a global VM extension policy to install and configure the latest version of Google Cloud's Agent for SAP across all zones in an organization, folder, or Google Cloud project. For information about global policy behavior, rollout plans, conflict resolution, and policy priority, see Global VM extension policies, Rollout plans for global policies, and Policy priority and conflict resolution.
Install and configure the agent across all zones in an organization
To install and configure Google Cloud's Agent for SAP across all zones in your
organization, run the
gcloud preview compute global-vm-extension-policies create command
with the --extensions=google-cloud-sap-extension flag:
gcloud preview compute global-vm-extension-policies create POLICY_NAME \
--organization=organizations/ORGANIZATION_ID \
--extensions=google-cloud-sap-extension \
--config-from-file=google-cloud-sap-extension="CONFIG_FILE_PATH" \
--inclusion-labels=KEY_1=VALUE_1 \
--rollout-predefined-plan=ROLLOUT_PLAN
Replace the following:
POLICY_NAME: a name for the global VM extension policy.ORGANIZATION_ID: the ID of your organization.CONFIG_FILE_PATH: the local path to your Agent for SAP JSON configuration file on the machine where you run the gcloud CLI. Omit the--config-from-fileflag to use the default configuration. Don't include plaintext passwords in the configuration. For secure authentication options, see Agent configuration reference. For supported JSON parameters, see Configuration parameters.KEY_1=VALUE_1: a comma-separated list of label key-value pairs that identify your SAP VMs. A VM must match all labels in a single--inclusion-labelsflag (logicalAND); specify the flag multiple times to match any selector (logicalOR). If you omit this flag, the policy installs Google Cloud's Agent for SAP and its configuration on all VMs across every descendant Google Cloud project in the organization.ROLLOUT_PLAN: the predefined rollout plan for the policy. Specifyslow_rollout(recommended) orfast_rollout.
For required IAM permissions, all flag descriptions (including
--priority, --rollout-custom-plan, and --rollout-conflict-behavior), and
REST API instructions, see
Install VM extensions across all zones in an organization.
Install and configure the agent across all zones in a folder
To install and configure Google Cloud's Agent for SAP across all zones in your
folder, run the
gcloud preview compute global-vm-extension-policies create command
with the --extensions=google-cloud-sap-extension flag:
gcloud preview compute global-vm-extension-policies create POLICY_NAME \
--folder=folders/FOLDER_ID \
--extensions=google-cloud-sap-extension \
--config-from-file=google-cloud-sap-extension="CONFIG_FILE_PATH" \
--inclusion-labels=KEY_1=VALUE_1 \
--rollout-predefined-plan=ROLLOUT_PLAN
Replace the following:
POLICY_NAME: a name for the global VM extension policy.FOLDER_ID: the ID of your folder.CONFIG_FILE_PATH: the local path to your Agent for SAP JSON configuration file. Omit the--config-from-fileflag to use the default configuration. Don't include plaintext passwords in the configuration. For secure authentication options, see Agent configuration reference. For supported JSON parameters, see Configuration parameters.KEY_1=VALUE_1: a comma-separated list of label key-value pairs that identify your SAP VMs. A VM must match all labels in a single--inclusion-labelsflag (logicalAND); specify the flag multiple times to match any selector (logicalOR). If you omit this flag, the policy installs Google Cloud's Agent for SAP and its configuration on all VMs across every descendant Google Cloud project in the folder.ROLLOUT_PLAN: the predefined rollout plan for the policy. Specifyslow_rollout(recommended) orfast_rollout.
For required IAM permissions, all flag descriptions, and REST API instructions, see Install VM extensions across all zones in a folder.
Install and configure the agent across all zones in a Google Cloud project
To install and configure Google Cloud's Agent for SAP across all zones in your Google Cloud project, select one of the following options:
Console
In the Google Cloud console, go to the VM extension policies page:
Click Create.
Enter values in the Name, Description (optional), and Priority fields.
In the Scope section, select Global rollout.
In the Manage extensions section, click Add extension, and then do the following:
- From the Extension list, select Google Cloud's Extension for SAP.
- Verify that the Version field is set to Latest version.
- Optional: In the Configuration file content field, enter your JSON configuration for Google Cloud's Agent for SAP. Don't include plaintext passwords in the configuration. For secure authentication options, see Agent configuration reference. For supported parameters, see Configuration parameters.
- Click Done.
In the Rollout field, select Slow rollout (recommended) or Fast rollout.
Optional: In the Target VM instances section, click Add labels, enter the label pairs that identify your SAP VMs, and click Done.
Click Create.
For required IAM permissions and instructions for custom rollout plans, see Install VM extensions across all zones in a project.
gcloud
Run the
gcloud compute global-vm-extension-policies create command
with the --extensions=google-cloud-sap-extension flag:
gcloud compute global-vm-extension-policies create POLICY_NAME \
--project=PROJECT_ID \
--extensions=google-cloud-sap-extension \
--config-from-file=google-cloud-sap-extension="CONFIG_FILE_PATH" \
--inclusion-labels=KEY_1=VALUE_1 \
--rollout-predefined-plan=ROLLOUT_PLAN
Replace the following:
POLICY_NAME: a name for the global VM extension policy.PROJECT_ID: the ID of your Google Cloud project.CONFIG_FILE_PATH: the local path to your Agent for SAP JSON configuration file. Omit the--config-from-fileflag to use the default configuration. Don't include plaintext passwords in the configuration. For secure authentication options, see Agent configuration reference. For supported JSON parameters, see Configuration parameters.KEY_1=VALUE_1: a comma-separated list of label key-value pairs that identify your SAP VMs. A VM must match all labels in a single--inclusion-labelsflag (logicalAND); specify the flag multiple times to match any selector (logicalOR). If you omit this flag, the policy installs Google Cloud's Agent for SAP and its configuration on all VMs in the Google Cloud project.ROLLOUT_PLAN: the predefined rollout plan for the policy. Specifyslow_rollout(recommended) orfast_rollout.
For required IAM permissions, all flag descriptions, and REST API instructions, see Install VM extensions across all zones in a project.
Install and configure the agent by creating a zonal policy
Create a zonal VM extension policy to install and configure the latest version of Google Cloud's Agent for SAP on VMs in a specific zone. For conceptual details and priority rules, see Zonal VM extension policies and Policy priority and conflict resolution.
Install and configure the agent in a zone across an organization
To install and configure Google Cloud's Agent for SAP in a specific zone across your
organization, run the
gcloud preview compute zone-vm-extension-policies create command
with the --extensions=google-cloud-sap-extension flag:
gcloud preview compute zone-vm-extension-policies create POLICY_NAME \
--organization=organizations/ORGANIZATION_ID \
--zone=ZONE \
--extensions=google-cloud-sap-extension \
--config-from-file=google-cloud-sap-extension="CONFIG_FILE_PATH" \
--inclusion-labels=KEY_1=VALUE_1
Replace the following:
POLICY_NAME: a name for the zonal VM extension policy.ORGANIZATION_ID: the ID of your organization.ZONE: the zone where the policy applies, such asus-central1-a.CONFIG_FILE_PATH: the local path to your Agent for SAP JSON configuration file. Omit the--config-from-fileflag to use the default configuration. Don't include plaintext passwords in the configuration. For secure authentication options, see Agent configuration reference. For supported JSON parameters, see Configuration parameters.KEY_1=VALUE_1: a comma-separated list of label key-value pairs that identify your SAP VMs. A VM must match all labels in a single--inclusion-labelsflag (logicalAND); specify the flag multiple times to match any selector (logicalOR). If you omit this flag, the policy installs Google Cloud's Agent for SAP and its configuration on all VMs in the specified zone across every descendant Google Cloud project in the organization.
For required IAM permissions, all flag descriptions, and REST API instructions, see Install VM extensions in a zone across an organization.
Install and configure the agent in a zone across a folder
To install and configure Google Cloud's Agent for SAP in a specific zone across your
folder, run the
gcloud preview compute zone-vm-extension-policies create command
with the --extensions=google-cloud-sap-extension flag:
gcloud preview compute zone-vm-extension-policies create POLICY_NAME \
--folder=folders/FOLDER_ID \
--zone=ZONE \
--extensions=google-cloud-sap-extension \
--config-from-file=google-cloud-sap-extension="CONFIG_FILE_PATH" \
--inclusion-labels=KEY_1=VALUE_1
Replace the following:
POLICY_NAME: a name for the zonal VM extension policy.FOLDER_ID: the ID of your folder.ZONE: the zone where the policy applies, such asus-central1-a.CONFIG_FILE_PATH: the local path to your Agent for SAP JSON configuration file. Omit the--config-from-fileflag to use the default configuration. Don't include plaintext passwords in the configuration. For secure authentication options, see Agent configuration reference. For supported JSON parameters, see Configuration parameters.KEY_1=VALUE_1: a comma-separated list of label key-value pairs that identify your SAP VMs. A VM must match all labels in a single--inclusion-labelsflag (logicalAND); specify the flag multiple times to match any selector (logicalOR). If you omit this flag, the policy installs Google Cloud's Agent for SAP and its configuration on all VMs in the specified zone across every descendant Google Cloud project in the folder.
For required IAM permissions, all flag descriptions, and REST API instructions, see Install VM extensions in a zone across a folder.
Install and configure the agent in a zone in a Google Cloud project
To install and configure Google Cloud's Agent for SAP in a specific zone in your Google Cloud project, select one of the following options:
Console
In the Google Cloud console, go to the VM extension policies page:
Click Create.
Enter values in the Name, Description (optional), and Priority fields.
In the Scope section, select Zonal rollout, and then select the Region and Zone.
In the Manage extensions section, click Add extension, and then do the following:
- From the Extension list, select Google Cloud's Extension for SAP.
- Verify that the Version field is set to Latest version.
- Optional: In the Configuration file content field, enter your JSON configuration for Google Cloud's Agent for SAP. Don't include plaintext passwords in the configuration. For secure authentication options, see Agent configuration reference. For supported parameters, see Configuration parameters.
- Click Done.
Optional: In the Target VM instances section, click Add labels, enter the label pairs that identify your SAP VMs, and click Done.
Click Create.
For required IAM permissions, see Install VM extensions in a zone in a project.
gcloud
Run the
gcloud compute zone-vm-extension-policies create command
with the --extensions=google-cloud-sap-extension flag:
gcloud compute zone-vm-extension-policies create POLICY_NAME \
--project=PROJECT_ID \
--zone=ZONE \
--extensions=google-cloud-sap-extension \
--config-from-file=google-cloud-sap-extension="CONFIG_FILE_PATH" \
--inclusion-labels=KEY_1=VALUE_1
Replace the following:
POLICY_NAME: a name for the zonal VM extension policy.PROJECT_ID: the ID of your Google Cloud project.ZONE: the zone where the policy applies, such asus-central1-a.CONFIG_FILE_PATH: the local path to your Agent for SAP JSON configuration file. Omit the--config-from-fileflag to use the default configuration. Don't include plaintext passwords in the configuration. For secure authentication options, see Agent configuration reference. For supported JSON parameters, see Configuration parameters.KEY_1=VALUE_1: a comma-separated list of label key-value pairs that identify your SAP VMs. A VM must match all labels in a single--inclusion-labelsflag (logicalAND); specify the flag multiple times to match any selector (logicalOR). If you omit this flag, the policy installs Google Cloud's Agent for SAP and its configuration on all VMs in the specified zone.
For required IAM permissions, all flag descriptions, and REST API instructions, see Install VM extensions in a zone in a project.
Verify the installation
After you create a global or zonal VM extension policy, verify that the policy
rollout succeeds and that the google-cloud-sap-extension extension is active
on your target VMs. For instructions, see
View VM extension details and status.
Agent configuration reference
You can provide a custom JSON configuration file when you create or update a VM extension policy for Google Cloud's Agent for SAP.
Default configuration file
The following snippet is an example of the default configuration of version 3.16 (latest) of Google Cloud's Agent for SAP:
{ "provide_sap_host_agent_metrics": true, "bare_metal": , "log_level": "INFO", "log_to_cloud": true, "collection_configuration": { "collect_workload_validation_metrics": true, "collect_process_metrics": false }, "discovery_configuration": { "enable_discovery": true, "enable_workload_discovery": true }, "hana_monitoring_configuration": { "enabled": false } }
To view feature-specific example configuration files, see the configuration guide for that feature.
Configuration parameters
The following table describes the configuration parameters for Google Cloud's Agent for SAP running on a Compute Engine VM, including the parameters related to the collection of metrics. For information about the configuration parameters related to the Backint feature of the agent, see Configuration parameters.
| Parameters | |
|---|---|
provide_sap_host_agent_metrics |
To enable the collection of the metrics required by the
SAP Host Agent, specify |
bare_metal |
When the agent is installed on a Bare Metal Solution server, specify
|
log_level |
To set the logging level of the agent, set the required value. The available log levels are as follows:
Default is |
log_to_cloud |
To redirect the agent's logs to
Cloud Logging, specify
|
cloud_properties.project_id |
If your SAP system is running on a Bare Metal Solution server, then
specify the project ID of the Google Cloud project that you are
using with Bare Metal Solution. |
cloud_properties.instance_name
|
If your SAP system is running on a Compute Engine instance, then specify the name that compute instance. The agent automatically detects the compute instance name upon installation. If your SAP system is running on a Bare Metal Solution server, then specify the name of that server. |
cloud_properties.region |
If your SAP system is running on a Bare Metal Solution server,
then specify the region where you've deployed the Bare Metal Solution server. |
cloud_properties.zone |
When the agent runs on a compute instance, by default, the agent uses the zone where the compute instance is deployed. |
cloud_properties.image |
Specify the OS image name of the instance. |
cloud_properties.numeric_project_id |
Specify the numeric ID of the Google Cloud project where the SAP system
is running. |
discovery_configuration.enable_workload_discovery |
To let the agent collect the names and versions of the SAP products
running on the host, specify For more information, see the agent's codebase in the
|
discovery_configuration.enable_discovery |
To send to Cloud Logging the information that the agent collects about
the SAP products running on the host, specify If you specify the value |
collection_configuration.collect_process_metrics |
To enable Process Monitoring metrics collection, specify |
collection_configuration.process_metrics_frequency |
From version 2.6, this parameter determines the collection frequency of the
fast-changing Process Monitoring metrics,
in seconds. Fast-changing Process Monitoring metrics are: The default value for this parameter is
All other (slow-changing) Process Monitoring metrics are collected at a
default frequency of 120 seconds. To change the collection frequency of
the slow-changing Process Monitoring metrics, use the parameter
|
collection_configuration.slow_process_metrics_frequency |
Specify the collection frequency of the slow-changing Process Monitoring metrics, in seconds. The default value for this parameter is |
collection_configuration.process_metrics_to_skip |
Specify the
Process Monitoring metrics
that you don't want the agent to collect. This parameter accepts a
comma-separated value of Process Monitoring metric names. For example:
|
collection_configuration.hana_metrics_config.hana_db_user |
Specify the database user account that the agent uses to query
SAP HANA. Default is |
collection_configuration.hana_metrics_config.hana_db_password |
Specify the plain text password for the database user account that the agent uses to query SAP HANA. Instead of specifying a plain text password, we recommend that you use one of the following options:
For SAP HANA authentication, the agent uses the following order of
preference: if specified, the |
collection_configuration.hana_metrics_config.hana_db_password_secret_name |
To securely provide the password for the database user account that the agent uses to query SAP HANA, specify the name of the secret that contains the security credentials for the database user account. The agent collects the SAP HANA related metrics only when you specify
either For SAP HANA authentication, the agent uses the following order of
preference: if specified, the |
collection_configuration.hana_metrics_config.hdbuserstore_key
|
To securely connect to an SAP HANA system, specify a
Secure user store ( To use an
This configuration parameter is supported from version 3.3 of the agent. For SAP HANA authentication, the agent uses the following order of
preference: if specified, the |
collection_configuration.hana_metrics_config.sid |
Specify the SID of your SAP HANA instance.
If you're using an |
collection_configuration.collect_workload_validation_metrics |
To enable Workload Manager evaluation metrics collection,
specify |
collection_configuration.workload_validation_metrics_frequency |
The collection frequency of the Workload Manager
evaluation metrics in seconds. The default value is If you need to modify the collection frequency of the
Workload Manager metrics, then add the
|
collection_configuration.workload_validation_collection_definition.fetch_latest_config |
Optional. The default value is |
collection_configuration.workload_validation_db_metrics_config.hana_db_user |
Specify the user account that is used to query the SAP HANA instance. The user account must have the read permission to the SAP HANA database. |
collection_configuration.workload_validation_db_metrics_config.hana_db_password |
Specify the password for the user account that is used to query the SAP HANA instance. For SAP HANA authentication, the agent uses the following order of
preference: if specified, the |
collection_configuration.workload_validation_db_metrics_config.hana_db_password_secret_name |
Specify the name of the secret in Secret Manager that stores the user account's password. Alternatively, you can specify the For SAP HANA authentication, the agent uses the following order of
preference: if specified, the |
collection_configuration.workload_validation_db_metrics_config.hdbuserstore_key
|
To securely connect to an SAP HANA system, specify a
Secure user store ( To use an
This configuration parameter is supported from version 3.3 of the agent. If you specify For SAP HANA authentication, the agent uses the following order of
preference: if specified, the |
collection_configuration.workload_validation_db_metrics_config.sid |
Specify the SID of your SAP HANA instance. |
collection_configuration.workload_validation_db_metrics_config.hostname |
Specify the identifier for the machine, either local or remote, that hosts your SAP HANA instance. The following are the supported values:
|
collection_configuration.workload_validation_db_metrics_config.port |
Specify the port on which your SAP HANA instance accepts queries. For
the first or only tenant database instance, the port is
|
collection_configuration.workload_validation_db_metrics_frequency |
The collection frequency of the SAP HANA database metrics, in seconds,
for Workload Manager evaluation.
Default is |
hana_monitoring_configuration.enabled |
Optional. To enable Google Cloud's Agent for SAP to collect the SAP HANA
monitoring metrics, specify hana_monitoring_configuration.enabled: true.
|
hana_monitoring_configuration.sample_interval_sec |
Optional. Specify the sample interval, in seconds, which determines the frequency at which Google Cloud's Agent for SAP queries your SAP HANA instances to collect the SAP HANA monitoring metrics. The default value is 300 seconds. For each query defined in the configuration file of
Google Cloud's Agent for SAP, you can overwrite the global sample interval
by specifying the required interval to the parameter
|
hana_monitoring_configuration.query_timeout_sec |
Optional. Specify the timeout for each query made to the SAP HANA instances. The default value is 300 seconds. |
hana_monitoring_configuration.execution_threads |
Optional. Specify the number of threads used to send queries to the SAP HANA instances. Each query runs on its own thread. The default value is 10. |
hana_monitoring_configuration.send_query_response_time |
Optional. Specify |
hana_monitoring_configuration.hana_instances.name |
Specify the name identifier for your SAP HANA instance. |
hana_monitoring_configuration.hana_instances.sid |
Specify the SID of your SAP HANA instance. This string is added as a label to all the metrics resulting from querying your SAP HANA instances. |
hana_monitoring_configuration.hana_instances.host |
Specify the identifier for the machine, either local or remote, that hosts your SAP HANA instance. The following are the supported values:
|
hana_monitoring_configuration.hana_instances.port |
Specify the port on which your SAP HANA instance accepts queries. For
the first or only tenant database instance, the port is
|
hana_monitoring_configuration.hana_instances.user |
Specify the user account that is used to query the SAP HANA instance. Make sure that this user has the privilege to read the monitoring views in your SAP HANA database. If this privilege is not granted, then the SAP HANA monitoring metrics related to the monitoring views contain no data. |
hana_monitoring_configuration.hana_instances.password |
Optional. Specify the password, as plain text, that authenticates the user account for querying the SAP HANA instance. For authentication, you must specify one of the following:
For SAP HANA authentication, the agent uses the following order of
preference: if specified, the |
hana_monitoring_configuration.hana_instances.secret_name |
Optional. Specify the name of the secret in Secret Manager that stores the user account's password. For SAP HANA authentication, the agent uses the following order of
preference: if specified, the |
hana_monitoring_configuration.hana_instances.hdbuserstore_key
|
To securely connect to an SAP HANA system, specify a
Secure user store ( To use an
This configuration parameter is supported from version 3.3 of the agent. If you specify |
hana_monitoring_configuration.hana_instances.is_local
|
For monitoring HA systems, specify The default value for this parameter is This parameter is supported from version 3.7 of the agent. |
hana_monitoring_configuration.hana_instances.instance_num
|
Specify the instance number that you've set for your SAP HANA instance. This information is required for the agent to discover your SAP HANA instance. This parameter is supported from version 3.7 of the agent. |
hana_monitoring_configuration.hana_instances.queries_to_run.run_all
|
Optional. Specify |
hana_monitoring_configuration.hana_instances.queries_to_run.query_name
|
Optional. Specify the queries that you want to run on the specified SAP HANA instance. If you're running a multi-tenant SAP HANA database, then you can set up
tenant specific monitoring by using this configuration parameter. In the
following example configuration, two queries are run on
"hana_instances": [
{
"name": "HANA_TENANT_1,
"queries_to_run": {
"query_name": ["QUERY_NAME_1", "QUERY_NAME_2"]
}
},
{
"name": "HANA_TENANT_2,
"queries_to_run": {
"run_all": true
}
}
...
] |
hana_monitoring_configuration.hana_instances.enable_ssl |
Optional. Specifies whether or not SSL is enabled in your SAP HANA
instance. The default value is |
hana_monitoring_configuration.hana_instances.host_name_in_certificate |
If you specify |
hana_monitoring_configuration.hana_instances.tls_root_ca_file |
If you specify |
hana_monitoring_configuration.queries.enabled |
Optional. To enable a SQL query for all your SAP HANA instances,
specify the value |
hana_monitoring_configuration.queries.name |
If you have defined custom queries in your configuration file, then you must specify a unique name for each custom query. The query name must be unique because it is used to build the metric's default URL in Monitoring. |
hana_monitoring_configuration.queries.run_on |
Optional. Specify this parameter if you're monitoring an SAP HANA HA
system and want to run the SAP HANA monitoring queries on either the
primary or the secondary node. Supported values: This parameter is supported from version 3.7 of the agent. Also, to run the queries on the secondary node, make sure that your HA system is deployed with the Active/Active (Read Enabled) configuration. |
hana_monitoring_configuration.queries.sql |
Specify the SQL statement that the agent issues to your SAP HANA instances. The SQL statement must conform to the SQL syntax defined by SAP in SAP HANA SQL and System Views Reference. |
hana_monitoring_configuration.queries.sample_interval_sec |
Optional. Specify the sample interval for the SQL query. This overrides the global sample interval. The value must be 5 seconds or longer. |
hana_monitoring_configuration.queries.columns.name |
Specify a name that uniquely identifies each column. The column name must be unique because it is used to build the metric's default URL in Monitoring. |
hana_monitoring_configuration.queries.columns.metric_type |
For handling by Monitoring, specify one of the following
metric types: Metrics of type |
hana_monitoring_configuration.queries.columns.value_type |
For handling by Monitoring, specify a data type that is supported by the metric type. The supported data types are as follows: |
hana_monitoring_configuration.queries.columns.name_override |
Optional. For handling by Monitoring, specify the path that you want to show in the metric URL instead of the query and column names. For example:
|
Modify the agent configuration by updating a VM extension policy
To change how a policy configures Google Cloud's Agent for SAP or which VMs the
policy targets, update the policy's JSON configuration or label selectors. Don't
include plaintext passwords in the configuration. For secure authentication
options and supported JSON parameters, see
Agent configuration reference and
Configuration parameters. Because
gcloud CLI updates replace the full policy definition, include the
--extensions=google-cloud-sap-extension flag and all existing policy flags,
such as --inclusion-labels, --priority, and --description. If you omit the
--inclusion-labels flag, the updated policy removes existing label selectors
and applies to all VMs in the target scope.
Update organization-scoped and folder-scoped policies
To update an organization-scoped or folder-scoped policy, use the
gcloud preview compute global-vm-extension-policies update command
(for global policies) or the
gcloud preview compute zone-vm-extension-policies update command
(for zonal policies). Include the --organization or --folder flag, the
--zone flag (for zonal policies), the
--extensions=google-cloud-sap-extension flag, the
--config-from-file=google-cloud-sap-extension="CONFIG_FILE_PATH"
flag, and any existing policy flags such as --inclusion-labels and
--priority. Replace CONFIG_FILE_PATH with the local
path to your Agent for SAP JSON configuration file. Don't include
plaintext passwords in the configuration. For secure authentication options, see
Agent configuration reference.
For required IAM permissions, complete commands, and REST API instructions, see the VM Extension Manager documentation:
- Modify VM extensions across all zones in an organization
- Modify VM extensions across all zones in a folder
- Modify VM extensions in a zone across an organization
- Modify VM extensions in a zone across a folder
Update Google Cloud project-scoped policies
To update a Google Cloud project-scoped policy, select one of the following options:
Console
In the Google Cloud console, go to the VM extension policies page:
Click the Global policies or Zonal policies tab, and then click the name of the policy that you want to update.
On the Extension policy details page, click Edit.
In the Manage extensions section, to expand the extension settings, click Google Cloud's Extension for SAP.
In the Configuration file content field, enter your updated JSON configuration. Don't include plaintext passwords in the configuration. For secure authentication options and supported parameters, see Agent configuration reference and Configuration parameters.
Click Done, and then click Save.
gcloud
Use the
gcloud compute global-vm-extension-policies update command
(for global policies) or the
gcloud compute zone-vm-extension-policies update command
(for zonal policies) with the --extensions=google-cloud-sap-extension
flag, the
--config-from-file=google-cloud-sap-extension="CONFIG_FILE_PATH"
flag, and any existing policy flags such as --inclusion-labels and
--priority. Replace CONFIG_FILE_PATH with the
local path to your Agent for SAP JSON configuration file. Don't
include plaintext passwords in the configuration. For secure authentication
options, see Agent configuration reference.
For required IAM permissions, complete commands, and REST API instructions, see the VM Extension Manager documentation:
Include or exclude zones in a global policy
You can control which zones a global policy targets in the following ways:
- Include zones added after rollout. To apply an existing global policy to
zones that become available after rollout, restart the rollout by using the
--rollout-retry-uuidflag. Specify a universally unique identifier (UUID) and keep all existing policy fields unchanged. Use thegcloud preview compute global-vm-extension-policies updatecommand for organization-scoped and folder-scoped policies (Preview) or thegcloud compute global-vm-extension-policies updatecommand for Google Cloud project-scoped policies. Exclude specific zones. To exclude specific zones, specify a custom rollout plan that lists only the target zones when you create the global policy. Pass the
--rollout-custom-planflag instead of the--rollout-predefined-planflag to thegcloud preview compute global-vm-extension-policies createcommand for organization-scoped and folder-scoped policies or to thegcloud compute global-vm-extension-policies createcommand for Google Cloud project-scoped policies. Include the same--rollout-custom-planflag on subsequent updates so the policy doesn't roll out to omitted zones.When you update an existing global policy, the
--rollout-custom-planflag limits only the zones that receive that rollout. An update rollout doesn't remove existing replicated zonal policies or uninstall Google Cloud's Agent for SAP from omitted zones. To exclude zones where a global policy has already rolled out, delete the global policy and recreate it with the custom rollout plan.
For full instructions, see Retry a rollout, Rollout plans for global policies, and Modify extensions by updating a VM extension policy.
Uninstall the agent by deleting a VM extension policy
To uninstall Google Cloud's Agent for SAP from your VM fleet, delete the VM
extension policy that manages the agent. If another active, lower-priority
policy at any hierarchy level still applies to a VM and declares the
google-cloud-sap-extension extension, then Google Cloud's Agent for SAP remains
installed on that VM.
Delete organization-scoped and folder-scoped policies
To delete an organization-scoped or folder-scoped policy, use the
gcloud preview compute global-vm-extension-policies delete command
(for global policies) or the
gcloud preview compute zone-vm-extension-policies delete command
(for zonal policies) with the --organization or --folder flag, plus the
--zone flag (for zonal policies). For required IAM permissions,
complete commands, and REST API instructions, see the
VM Extension Manager documentation:
- Uninstall VM extensions across all zones in an organization
- Uninstall VM extensions across all zones in a folder
- Uninstall VM extensions in a zone across an organization
- Uninstall VM extensions in a zone across a folder
Delete Google Cloud project-scoped policies
To delete a Google Cloud project-scoped policy, select one of the following options:
Console
In the Google Cloud console, go to the VM extension policies page:
Click the Global policies or Zonal policies tab, and then click the name of the policy that manages Google Cloud's Agent for SAP.
On the Extension policy details page, click Delete. In the confirmation dialog, if you're deleting a global policy, enter the policy name, and then click Delete.
gcloud
Use the
gcloud compute global-vm-extension-policies delete command
(for global policies) or the
gcloud compute zone-vm-extension-policies delete command
(for zonal policies). For required IAM permissions, complete
commands, and REST API instructions, see the
VM Extension Manager documentation:
Troubleshooting
For information about diagnosing and resolving issues that you might encounter when you install and configure Google Cloud's Agent for SAP, see Google Cloud's Agent for SAP troubleshooting guide.
Get support
If you need help resolving problems with Google Cloud's Agent for SAP, then collect all available diagnostic information and contact Cloud Customer Care. For information about contacting Customer Care, see Getting support for SAP on Google Cloud.
What's next
- To inspect rollout progress and extension health status, see View VM extension details and status.
- To diagnose failed rollouts, check running guest processes, or inspect guest agent debug logs, see Troubleshoot VM extensions.
- To build Monitoring dashboards and set up alerts for agent health, CPU, and memory usage, see Monitor VM extensions.
- To query historical enforcement events and audit installation or crash records in Logging, see View VM extension logs.