Monitoring SAP HANA
With Instana, you can comprehensively monitor your SAP HANA database to gain real-time visibility into its performance. To get started, install and configure the Instana agent. The agent automatically deploys and installs the SAP HANA sensor. Configure the SAP HANA sensor to view SAP HANA metrics in the Instana UI. Instana supports both local and remote monitoring of the SAP HANA database.
Supported information
The SAP HANA sensor supports the following operating systems (OS) and runtimes:
Supported OS
Depending on the type of monitoring required, the Instana agent can be installed on different OS for monitoring SAP HANA databases.
-
Local monitoring (Instana agent is installed on the same host as the SAP HANA database):
- Linux (x86 and IBM PowerPC 64-bit LE)
-
Remote monitoring (Instana agent is installed on a different host and connects remotely to the SAP HANA database):
- AIX
- Linux (x86 and IBM PowerPC 64-bit LE)
- Windows
- IBM i (OS/400 PASE)
- Apple macOS (64 bit - Intel and Apple silicon)
Supported runtime
You can monitor the SAP HANA database only if the Instana agent uses Java 8 runtime.
Java 11 is not supported.
Configuring the Instana agent
To monitor SAP HANA, you need to configure the static or dynamic agent that is used.
Configuring the static agent
- If the agent uses Azul Zulu 1.8, no need to update the
setenv
file. - If the agent runtime uses Eclipse OpenJ9 11, update the
setenv
file to point to a Java 8 runtime.
When you use the static agent, you need to provide the com.sap.cloud.db.jdbc:ngdbc
driver manually.
To monitor the SAP HANA database with the static agent, complete the following steps:
-
Download the
ngdbc-2.22.12.jar
driver from the Maven Central Repository. -
Add the
ngdbc-2.22.12.jar
driver to the<agent-installation-dir>/system/com/sap/cloud/db/jdbc/ngdbc/2.22.12
directory. -
To configure the agent to use the Java 8 runtime, complete the following steps:
You need to perform the following steps only for Instana release 282 and later or if the agent was set up earlier by using Eclipse OpenJ9 11.
-
Go to the
<agent-installation-dir>/bin
directory, and open thesetenv
file. -
Add the line
export JAVA_HOME=<path-to-java-home>
afterUNSET JAVA_HOME
as shown in the following example:unset JAVA_HOME export JAVA_HOME=<path-to-java-home>
-
Save the changes and close the file.
-
Restart the Instana agent.
-
Configuring the dynamic agent
- If the agent uses Azul Zulu 1.8, no need to update the
setenv
file. - If the agent runtime uses Eclipse OpenJ9 11, update the
setenv
file to point to a Java 8 runtime.
To configure the agent to use the Java 8 runtime, complete the following steps:
You need to perform the following steps only for Instana release 282 and later or if the agent was set up earlier by using Eclipse OpenJ9 11.
-
Go to the
<agent-installation-dir>/bin
directory, and open thesetenv
file. -
Add the line
export JAVA_HOME=<path-to-java-home>
afterUNSET JAVA_HOME
as shown in the following example:unset JAVA_HOME export JAVA_HOME=<path-to-java-home>
-
Save the changes and close the file.
-
Restart the Instana agent to apply the changes.
For more information about agent installation prerequisites and supported JDKs, see Installing host agents.
Configuring the SAP HANA sensor
With the SAP HANA sensor, you can monitor the SAP HANA database both locally and remotely. Local monitoring of SAP HANA involves setting up the Instana agent on the same host as your SAP HANA process, while remote monitoring involves setting up the agent on a separate host.
Local monitoring
In local monitoring, the sensor collects both host metrics and HANA database metrics, offering a comprehensive full-stack view of the data.
Depending on the mode in which SAP HANA is run (multiple containers or single container), you can set different username and password combinations in the agent configuration yaml file <instana-agent-dir>/etc/instana/configuration.yaml
to connect to the database.
The configuration parameters for local monitoring are shown in the following example:
# SAP HANA
com.instana.plugin.saphana:
local:
singleContainer:
user: ''
password: ''
multiContainer:
HXE:
user: ''
password: ''
my-test-db:
user: ''
password: ''
The default user is SYSTEM
.
Remote monitoring
The remote monitoring functionality is available for only Instana 277 and later.
In remote monitoring, the Instana SAP HANA sensor monitors SAP HANA databases that are deployed on different hosts than the one hosting the Instana agent. The SAP HANA sensor can monitor more than one database.
The configuration parameters for remote monitoring are shown in the following example:
# SAP HANA
com.instana.plugin.saphana:
remote: # multiple remote configurations are supported
- host: 'remote.host-1.com'
port: '' #sql port
databaseName: ''
user: ''
password: ''
- host: 'remote.host-2.com'
port: '' #sql port
databaseName: ''
user: ''
password: ''
For the single container mode, the database name is blank. For the multi-container mode, you must enter a value for the database name.
Using non-SYSTEM user
If you cannot use the SYSTEM
user for local or remote monitoring, make sure that the user has the following privileges:
CATALOG READ
SELECT ON SCHEMA _SYS_REPO
SELECT ON _SYS_STATISTICS.STATISTICS_CURRENT_ALERTS
SSL Support
For the Instana agent to securely connect to your HANA Database by using the Secure Sockets Layer (SSL) protocol, add the following configuration to the agent configuration file <agent_install_dir>/etc/instana/configuration.yaml
:
Local monitoring
For local monitoring, add the following configuration:
com.instana.plugin.saphana:
local:
multiContainer:
<DB Name>:
user: ''
password: ''
trustStore: '<path to your truststore file location'
trustStorePassword: '<Your truststore password>'
Remote monitoring
For remote monitoring, add the following configuration:
com.instana.plugin.saphana:
remote:
- host: 'remote.host-1.com'
port: '' #sql port
databaseName: ''
user: ''
password: ''
trustStore: '<path to your truststore file location'
trustStorePassword: '<Your truststore password>'
You can use the hostNameInCertificate
property to specify the host name to be used in the certificate. This setting makes sure that the host name that is used by the Instana agent matches the host name that is specified in the
certificate. This setting is relevant in local monitoring environments where the Instana agent uses the loop back address 127.0.0.1
while the certificate uses a fully qualified host name.
Viewing metrics
To view metrics from SAP HANA in infrastructure view, complete the following steps:
- From the navigation menu, select Infrastructure.
- Click an SAP HANA host.
- Click Open Dashboard.
You can see the SAP HANA dashboard with all the tracked configuration and metrics.
Tracked configuration
The SAP HANA sensor collects the following configuration data:
- System ID
- Database Name
- Instance Number
- Version
- Port
- Usage
- Maximum Number of Sessions
- Host Status
Metrics
The following table outlines the frequency of metric collection by the SAP HANA sensor:
Metrics | Collected frequency |
---|---|
Total CPU Utilization | 5 seconds |
CPU Time | 5 seconds |
Workload | 5 seconds |
Workload Rate (per min) | 5 seconds |
Requests | 5 seconds |
HANA Memory Usage | 5 seconds |
Host Memory Usage | 5 seconds |
Heap Memory Usage | 5 seconds |
Virtual Memory | 5 seconds |
Swap Memory Usage | 5 seconds |
Disk Usage Summary | 5 seconds |
Disk Usage Percentage | 5 seconds |
Disk Usage by Type | 5 seconds |
Sessions | 5 seconds |
Connections | 5 seconds |
Connected Users and Applications | 5 seconds |
Threads | 5 seconds |
Job Worker Threads | 5 seconds |
SQL Executor Threads | 5 seconds |
SQL Plan Cache Statistics | 20 seconds |
Service Details | 1 minute |
Garbage Collection Statistics | 1 minute |
Expensive Statements | 1 minute |
Alerts | 1 minute |
Service Network I/O Statistics | 1 minute |
System Events | 1 minute |
Active Statements | 2 minutes |
Transaction Statistics | 2 minutes |
Aggregated Cache Information | 2 minutes |
Blocked Transactions | 2 minutes |
Scheduler Jobs | 15 minutes |
Lock Wait Statistics | 15 minutes |
Job Progress | 15 minutes |
Backup Progress | 30 minutes |
Archive Log Backup | 1 hour |
User Locks | 1 hour |
I/O Statistics | 1 hour |
Table Size | 24 hours |
To see SQL Plan Cache Statistics metrics, set the plan_cache_statistics_enabled
field to true
in the agent configuration file.
Health signatures
The SAP HANA sensor generates built-in events for various scenarios. For more information, see Built-in Events Reference.