on
14 Jul 2025
01:08 PM
- edited on
07 Aug 2025
10:15 AM
by
jonghpark
This troubleshooting article should help you resolve the most common issues for SQL extensions
As SQL extension fast checks only attempt to verify connectivity to the configured database, this issue will typically be related to either network issues/timeouts or authorization issues with the account that was configured in the monitoring configuration.
The resolution of this issue will be dependent on the error returned by the fast-check, however, double-checking the hostname, username and password are all valid is a good place to start. You can see below how to resolve different connection issues.
There’s a whole host of reasons why the extension might be unable to connect to the database. Below is a list of the most common ones and ways to investigate them.
In all cases, review the datasource logs on your ActiveGate server and look for connection exceptions.
Double check that your host, port, database name and username, and password are correct.
Troubleshooting steps:
Connection issues can manifest in a multitude of ways, specific to each database vendor. Look for error codes in the connection for exception messages and see driver documentation for the particular error (linked below).
This is a common issue with SQL-based extensions. There are two main reasons why this will occur:
Look at your extension configuration and review the list of selected feature sets.
If this happens you will see an “Empty result for query” message in the datasource logs, along with the query itself. Copy the query that returned an empty result from the extension.yaml file and run it manually as the user in the monitoring configuration to determine if the query still returns an empty result.(link to article: Query Behind a Metric)
If the query returns no results it is likely that permissions to the proper table(s) are not granted to the configured extension user or it can occur if a customer has left feature sets enabled for features that they don't have implemented, such as always-on SQL servers in MS SQL, if the SQL server is not configured for high availability then the query for that data will be empty.
List of permissions required by various DB vendors listed in Extension details in the Hub:
Keywords: restart, crash, resource consumption
Sometimes it happens that the extension correctly connects to the database and starts collecting data that can be seen in the UI on dashboards or in Data Explorer, but there are holes or unexpected gaps in the data.
The most common reason for this situation is restarting Extension Framework components, i.e.: the Java-DataSource, Extension Execution Controller or Active Gate. To confirm this, check the logs of these components. You can find the reason for the restart in the logs, most often they are:
An alternative to viewing logs may be the analysis of Self-Monitoring metrics for:
Database documentation to read about error codes:
(used in further descriptions, could be customized!):
If none of the solutions above has worked for you and you are still experiencing issues with the SQL extension you are trying to configure there's always a chance that there is a problem with the extension itself or the underlying data source.
In that case feel free to open a support ticket specifying:
Hi,
I'm doing similar configuration with microsoft sql server extension to monitor Azure SQLMI agent jobs. Configuration status is seen OK , but the logs show only these 2 warnings repeatedly and the DB metrics is not been collected it seems. I'm not able to see any DB information in the data collected.
"Polling finished with issues for endpoints: sqlmidevuks****-sl-development.720e9a6d****.database.windows.net:1433/ SL**CardPayment"
"While polling for endpoint sqlmidevuks****-sl-development.720e9a6d****.database.windows.net:1433/ SL**CardPayment query have failed: instance, database"
A user definied managed identity is present for the active gate which is given all the db datareader and VIEW SERVER state permission. This managed identity is given as the user in the extension monitoring configuration.
Can anyone suggest if the approach is rite or any alternative to use ? any valid format to give the connection string with managed identity