SQL Performance Investigator (PI) in Foglight enables you to monitor and analyze the performance of selected database platforms in your environment. PI provides in-depth analysis capabilities including session details, execution plans, change tracking, blocking analysis, and historical performance comparison.
This section covers the following key areas:
PI is supported for the following database platforms:
To use PI, a dedicated database repository must be installed to store the collected data.
The PI Repository database must be hosted on Microsoft SQL Server. This is the only supported database platform for the PI Repository itself, regardless of which database platforms you are monitoring with PI.
| Edition | Supported Versions |
|---|---|
| Standard or Enterprise | Microsoft SQL Server 2016, 2017, 2019, 2022, and 2025. Supported on RDS and on Azure SQL Managed Instance |
Additional Notes:
Support to install PI repository on SQL Server Always On Availability Group. For more information, see KB326158.
While PI can monitor various database platforms (Oracle, MySQL, PostgreSQL, etc.), the PI Repository that stores the collected performance data must always be a SQL Server database.
SQL Server Express is not supported due to the 10GB database size limit.
The PI Repository is a dedicated database that stores performance data collected by the Foglight agents. This repository enables:
The PI Repository uses a time-based data aggregation model (time pyramid) to efficiently store and retrieve performance data at different granularities:
| Granularity | Retention Period |
|---|---|
| 1 minute | 6 hours |
| 15 minutes | 3 days |
| 1 hour | 2 weeks |
| 6 hours | 30 days |
| 1 day | 90 days |
| 1 week | 2 years |
By default, PI 1-minute tables are historically preserved for approximately 1 day only. Specifically:
When viewing PI data:
To enable PI from the Databases Dashboard:
Click Enable PI under the Monitoring Agent column for the desired instance.
On the Administration Dashboard, complete these two steps to enable PI:
Verify that the monitoring Agent Manager is attached to a SQL PI repository. Select the Agent Manager on which the SQL PI repository manager should be installed, then click Apply.
In the SQL PI Repository Settings dialog:
To use gMSA (Group Managed Service Account) authentication for connections to the PI Repository, select Local User in the Authentication drop-down. This requires that your Foglight repository and Agent Manager are configured to run as a Windows Service logged on with the gMSA account. The gMSA account requires access to the SQL instance.
The SQL PI is now enabled for the selected instance.
The SQL Performance Investigator view in the Administration dashboard allows you to:
To access the SQL PI administration: