Adding a Monitored Connection
This section describes the add connection feature. Use the Add Connection drawer to bring a SQL Server or Azure SQL database under monitoring without leaving Foglight AI Insights. You can add one database or
import multiple databases for the same Foglight environment.
Prerequisites
- The Add Connection capability is enabled for the Foglight server. It is
disabled by default.
- You have the Foglight AI Insights Administrator role.
- A Foglight MCP server is connected, and an Agent Manager is available for
that server. See Adding MCP Server.
- The Foglight identity used by the server has the Monitoring Administrator
privilege.
- You have the connection and authentication details for the databases you
want to monitor.
Open the Add Connection drawer
- In the Foglight MCP Servers page, select Add connection(s) on the
connected server’s card. Alternatively, select Add connection from the
/add-connection command in the chat. - If the command offers more than one connected environment, select the
environment to use. The selected server appears in the drawer and cannot be changed there. To choose another server, close the drawer and start again.
- Select SQL Server or Azure SQL as the database domain.
Add one database
- Select the single-connection option.
- Enter the connection and authentication details requested for the selected domain. Configure any other options needed for your database.
- Select an Agent Manager for the chosen server.
- Select Add connection(s). Adding the connection also tests it; there is no separate Test connection step.
- Review the result:
- On success, the drawer closes and a notification confirms that monitoring is starting.
- If the database is already monitored, an informational notice appears and no duplicate is created.
- If the add fails, review the inline error, correct the details, and try again.
For SQL Server, the lockbox option specifies where Foglight stores credentials; it does not replace the required database user name and password.
Slow or unconfirmed results
Adding a connection can take several minutes. You can close the drawer while the request continues. After the wait limit, AI Insights checks the outcome for up to 10 minutes while AI Insights remains open. If the outcome is still unknown, check the monitored list before trying again. If you reload or leave AI Insights before the outcome is known, check the monitored list for the result.
For a failure or warning notification, View details reopens the drawer
without restoring passwords.
Import multiple databases
Bulk import is planned for SQL Server and Azure SQL on desktop and tablet;
mobile supports single connections only.
- Select Bulk import for the database domain.
- Use the template for that domain, then upload the completed file or paste the rows. A batch can contain at most 500 rows.
- Review the rows and select those to submit. Choose one Agent Manager for the batch, then submit it.
- Review the progress and results. Each selected row can show Added,
Already monitored, Starting, Unconfirmed, Not submitted, or Failed. Check an unconfirmed row in the monitored list before retrying; a row marked Not submitted is safe to retry.
The drawer can be closed while a batch runs. Reopen it for the same server to see progress or results while they are retained. Bulk files contain passwords; handle them as sensitive information.
Troubleshooting
- Add connection is unavailable: Check that the capability is enabled,
your AI Insights account has the administrator role, and the selected server is connected.
- A permission error appears: Check that the server’s Foglight identity has the Monitoring Administrator privilege. If your sign-in has expired, sign in again.
- The database could not be added: Follow the error’s next step and check the database login, required privileges, reachability, and Agent Manager.
- A bulk file is rejected: Check that the file is readable, uses a supported type, contains no duplicate rows, and has no more than 500 rows.