To start monitoring SAP HANA with Foglight, perform the following installation instructions in the given order:
To configure the monitoring of an SAP HANA system, an identical user must be created on the SYSTEMDB and on each tenant database for which monitoring is desired. The user requires specific privileges, given below. The username and password must be identical on all databases, both the SYSTEMDB and all tenant databases.
Create an ordinary database user on each database in the SAP HANA system as follows:
CREATE USER <username> PASSWORD <password> NO FORCE_FIRST_PASSWORD_CHANGE;
GRANT CATALOG READ TO <username>;
GRANT SELECT ON SCHEMA _SYS_STATISTICS TO <username>;
Some features of the Foglight for SAP Hana depend on resource tracking within SAP HANA. These include SQL Query Plan memory monitoring and Expensive Statement tracking. The following steps are necessary to enable this functionality.
Set the global [resource_tracking] properties ’enable_tracking’ and ‘memory_tracking’ to ‘on’.
CPU consumption estimation is on by default (for all SAP HANA versions greater than SAP HANA 1.0 SPS 11). Check that the global [resource_tracking] property ‘cpu_time_measurement_mode’ is still set to ‘on’.
To enable expensive statement tracking, set the global [expensive_statement] property ’enable’ to ’true’.
The following SQL commands show how these settings can be changed globally:
ALTER SYSTEM ALTER CONFIGURATION ('global.ini', 'SYSTEM') SET ('resource_tracking', 'enable_tracking') = 'on';
ALTER SYSTEM ALTER CONFIGURATION ('global.ini', 'SYSTEM') SET ('resource_tracking', 'memory_tracking') = 'on';
ALTER SYSTEM ALTER CONFIGURATION ('global.ini', 'SYSTEM') SET ('resource_tracking', 'cpu_time_measurement_mode') = 'on';
ALTER SYSTEM ALTER CONFIGURATION ('global.ini', 'SYSTEM') SET ('expensive_statement', 'enable') = 'true';
Optionally change the following parameters from their defaults to customize the thresholds that define which statements are considered expensive:
For SAP HANA express edition, execute the following to enable collection of SQL Plan statistics:
ALTER SYSTEM ALTER CONFIGURATION ('indexserver.ini','SYSTEM') SET('sql', 'plan_cache_statistics_enabled') = 'True';
The Agent Status dashboard can be used to create new agents and configure and manage existing agents. To access the page from the navigation pane, select Administration > Agents > Agent Status.
To create a new agent instance:
To modify the properties of an existing agent, skip to step 3, deactivate the agent, update the configuration, and then reactivate it.
Below is a list of the configurable properties of the Foglight for SAP HANA agent and an explanation of each property.

The agent requires a connection to the SYSTEMDB database to collect system properties and metrics.
Note that Foglight for SAP HANA currently supports database connections using only username and password authentication. The SAP HANA Cartridge does not support certificate-based database connections at this time.
If the SAP HANA instance is set up to allow connections via certificate-based authentication, ensure that the sslEnforce parameter in the communication section of the global.ini configuration file is set to false, as it is by default. This enables clients utilizing username/password authentication to continue to connect.
An arbitrarily chosen name for the monitored system. It is used exclusively to differentiate two or more SAP HANA Systems with the same SID. The default value may be used when there is only one system with the given SID, and only one agent monitoring the system.
The collection period fields in the agent properties set the sample frequencies and are in seconds. Any collection can be turned off by setting its period to zero. The default collection periods vary based on the type and volatility of data collected.