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 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
,/sap/hana/ha/replication
and/sap/nw/availability
. These metrics are collected at a default frequency of 30 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 120 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
: No system replication (standalone mode). -
11
: Error occurred on the connection. -
12
: The secondary system did not connect to the primary system since last restart of the primary system. -
13
: Initial data transfer is in progress. In this state, the secondary system is not usable at all. -
14
: The secondary system is syncing again. For example, after a temporary connection loss or restart of the secondary system. -
15
: Initialization or sync with the primary system is complete and the secondary system is continuously replicating. No data loss occurs in theSYNC
mode.
/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/hana/log/utilisationkb
This metric is supported from version 3.8 of the agent.
/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
DIA
, ICM
, and DISP
./sap/nw/abap/queue/peak
DIA
, ICM
, and DISP
./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/_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/pacemaker
-
0
: No Pacemaker configuration found -
1
: Pacemaker configuration found
This metric is supported from version 3.2 of the agent.
/sap/hana/volumes
Exposes the following information about the mounted SAP HANA volumes: total size of the volume, used storage, available storage, and storage usage percentage.
This metric is supported from version 3.2 of the agent.
/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.
/sap/compute/os/memory/mem_free_kb
/sap/compute/os/memory/mem_available_kb
/sap/compute/os/memory/mem_total_kb
/sap/compute/os/memory/buffers_kb
/sap/compute/os/memory/cached_kb
/sap/compute/os/memory/swap_cached_kb
/sap/compute/os/memory/commit_kb
/sap/compute/os/memory/commit_percent
/sap/compute/os/memory/active_kb
/sap/compute/os/memory/inactive_kb
/sap/compute/os/memory/dirty_kb
/sap/compute/os/memory/shmem_kb
tmpfs
filesystems./sap/compute/os/memory/freemem_total
/sap/compute/os/memory/freemem_used
/sap/compute/os/memory/freemem_free
/sap/compute/os/memory/freemem_shared
/sap/compute/os/memory/freemem_buff/cache
/sap/compute/os/memory/freemem_available
/sap/compute/os/memory/freeswap_total
/sap/compute/os/memory/freeswap_used
/sap/compute/os/memory/freeswap_free
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 .