If you're using version 2 of Google Cloud's Agent for SAP, then we recommend that you switch to the latest version of the agent as soon as possible. For information about how to update Google Cloud's Agent for SAP, see Update Google Cloud's Agent for SAP .
This planning guide focuses solely on the Process Monitoring metrics collection feature of Google Cloud's Agent for SAP. For information about the agent and all its features, see Google Cloud's Agent for SAP planning guide .
On Linux, Google Cloud's Agent for SAP can help you monitor the processes in your SAP applications and their runtime states. This is delivered through the collection of Process Monitoring metrics , which you can enable after installing the agent on your Compute Engine VM instances or Bare Metal Solution servers.
The information collected in the Process Monitoring metrics helps you troubleshoot the issues related to your SAP system. In case of issues, with the help of Process Monitoring metrics, Cloud Customer Care can help you reach a resolution more efficiently. The data collected using Process Monitoring metrics provide observability for your SAP HANA high-availability cluster configurations.
For information about how to configure Google Cloud's Agent for SAP to collect the Process Monitoring metrics, see Configure Process Monitoring metrics collection .
Types of Process Monitoring metrics
From version 2.6 of Google Cloud's Agent for SAP, the Process Monitoring metrics collected by the agent are referred to as follows:
- Fast-changing
metrics: This includes
sap/hana/availability
,sap/hana/ha/availability
, andsap/nw/availability
. These metrics are collected at a default frequency of 5 seconds. This collection frequency can be updated using the configuration parameterprocess_metrics_frequency
. - Slow-changing
metrics: Process Monitoring metrics other than the
fast-changing ones are referred to as slow-changing. These metrics are
collected at a default frequency of 30 seconds. This collection frequency can
updated using the configuration parameter
slow_process_metrics_frequency
.
Cloud Monitoring pricing
The Process monitoring metrics that Google Cloud's Agent for SAP collects and sends to Monitoring are classified by Monitoring as chargeable metrics and priced by ingested volume.
The frequency at which the agent queries your SAP systems to collect the Process Monitoring metrics affects the volume of metrics that get sent to Monitoring.
Process Monitoring metrics are fast-changing metrics that are collected every 5 seconds by default.
For more information about Monitoring pricing, see Google Cloud Observability pricing .
Sample cost estimate
To see a sample cost estimate for the collection of the Process Monitoring metrics using Google Cloud's Agent for SAP, see Pricing example for metrics charged by bytes ingested .
Process Monitoring metrics
The following table describes the Process Monitoring metrics collected
by Google Cloud's Agent for SAP. The metric strings in this table must be prefixed with workload.googleapis.com/
. This prefix has been omitted from the entries in
the following table.
sap/hana/service
-
0
: Service is not running -
1
: Service is running
sap/hana/ha/replication
-
0
: Error occurred. -
10
: Replication is off (standalone mode). -
12
: Replication is active. The current node is the secondary node. -
15
: Replication is active. Initialization or sync with the primary is complete and the secondary is continuously replicating.
sap/hana/availability
-
0
: One or more processes are not active -
1
: All processes are active
sap/hana/ha/availability
-
0
: Unknown state -
1
: Current node is secondary -
2
: Primary node has error -
3
: Primary node is online but replication is not fully functional -
4
: Primary node is online with replication running
sap/hana/query/state
select * from dummy
.
The value 0 indicates success. Any other value indicates failures.sap/hana/query/overalltime
query/state
is 0
. This is the overall
time taken by the query, including client side time and server side time,
in microseconds.sap/hana/query/servertime
query/state
is 0
. This is the time taken
by the server to process the query, in microseconds.sap/cluster/failcounts
crm_mon
reports the number of failed
actions.sap/cluster/nodes
-
-10
: Unknown -
-1
: Unclean state -
0
: Shutdown -
1
: Standby -
2
: Online
sap/cluster/resources
-
-10
: Unknown -
0
: Failed -
1
: Stopped -
2
: Starting -
3
: Resource is in one of the following steady states:Master
,Slave
, orStarted
sap/nw/availability
-
0
: Unknown state -
1
: Current node is active or up
sap/nw/service
-
0
: Service is not running -
1
: Service is running
sap/nw/icm/rcode
sap/nw/icm/rtime
sap/nw/ms/rcode
sap/nw/ms/rtime
sap/nw/ms/wp
sap/nw/abap/proc/busy
sap/nw/abap/proc/count
sap/nw/abap/queue/current
sap/nw/abap/queue/peak
sap/nw/abap/sessions
sap/nw/abap/rfc
sap/nw/enq/locks/usercountowner
sap/mntmode
maintenancemode = TRUE
). The value of this metric is
used to suppress the
alerts for the systems that are unavailable during planned maintenance. To notify the agent if a particular SID is undergoing planned maintenance, run the following command:
google_cloud_sap_agent maintenance \ --enable = TRUE or FALSE \ --sid = SID
sap/service/is-failed
0
represents a failure.sap/service/is-disabled
pacemaker
, corosync
, sapconf
, saptune
, and sapinit
services are not enabled.sap/hana/cpu/utilization
sap/nw/cpu/utilization
sap/control/cpu/utilization
sap/hana/memory/utilization
sap/nw/memory/utilization
sap/control/memory/utilization
sap/hana/iops/reads
sap/hana/iops/writes
sap/nw/iops/reads
sap/nw/iops/writes
sap/infra/migration
sap/agent/health
- The value
true
indicates that the agent is active and running. - The value
false
indicates that the agent is not running.
sap/agent/cpu/utilization
sap/agent/memory/utilization
sap/networkstats/rtt
This metric contains TCP connection information related to your SAP HANA
system. This metric is collected for sockets of SAP HANA hdbnameserver
process using the ss
utility.
sap/networkstats/rcv_rtt
This metric contains TCP connection information related to your SAP HANA
system. This metric is collected for sockets of SAP HANA hdbnameserver
process using the ss
utility.
sap/networkstats/rto
This metric contains TCP connection information related to your SAP HANA
system. This metric is collected for sockets of SAP HANA hdbnameserver
process using the ss
utility.
sap/networkstats/bytes_acked
This metric contains TCP connection information related to your SAP HANA
system. This metric is collected for sockets of SAP HANA hdbnameserver
process using the ss
utility.
sap/networkstats/bytes_received
This metric contains TCP connection information related to your SAP HANA
system. This metric is collected for sockets of SAP HANA hdbnameserver
process using the ss
utility.
sap/networkstats/lastsnd
This metric contains TCP connection information related to your SAP HANA
system. This metric is collected for sockets of SAP HANA hdbnameserver
process using the ss
utility.
sap/networkstats/lastrcv
This metric contains TCP connection information related to your SAP HANA
system. This metric is collected for sockets of SAP HANA hdbnameserver
process using the ss
utility.
Viewing metrics in Monitoring
Google Cloud provides custom dashboards that help you visualize the
Process Monitoring metrics collected by Google Cloud's Agent for SAP. See the dashboards/google-cloud-agent-for-sap
directory in the GoogleCloudPlatform/monitoring-dashboard-samples
repository on GitHub.
For information about these dashboards, including installation instructions, see View the collected metrics .
For information about finding metrics data in Monitoring and configuring alert notifications, see Metrics in Monitoring .