Unable to Disable TLS / Use TLS 1.0 with SQL Exporter for MSSQL 2008 R2 SP1 #715
-
We're using SQL Exporter to collect metrics from an on-premises Microsoft SQL Server 2008 R2 SP1 instance. Our setup:
However, SQL Exporter still fails to connect.
It appears the encrypt=disable parameter is not working as expected, or the underlying driver still tries to enforce TLS. We would like SQL Exporter to support connections to SQL Server using:
Tried both encrypt=false and encrypt=disable We suspect this may be related to the behavior of the underlying driver used by SQL Exporter when connecting to MSSQL. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @nmhieu054, Thanks for reaching me out. 👍 Let's try to debug it together, as it would be a bit problematic for me to find the access to MSSQL2008 to reproduce the issue. The driver used for connections is https://github.com/microsoft/go-mssqldb. In the sql_exporter code we don't do any custom connection handling, so it all comes from the underlying driver. That should reduce our scope. The first thing attracted my attention in your config is missing According to the driver docs, we indeed should use Another idea I usually suggest for debugging is if you could try to connect to the database using UPD: Also, try to add |
Beta Was this translation helpful? Give feedback.
-
@nmhieu054, I'll turn the issue into a discussion, since it's not something related to the sql_exporter directly, but I'm happy to support you further. |
Beta Was this translation helpful? Give feedback.
Hey @nmhieu054,
Thanks for reaching me out. 👍 Let's try to debug it together, as it would be a bit problematic for me to find the access to MSSQL2008 to reproduce the issue.
The driver used for connections is https://github.com/microsoft/go-mssqldb. In the sql_exporter code we don't do any custom connection handling, so it all comes from the underlying driver. That should reduce our scope.
The first thing attracted my attention in your config is missing
?
after the dbname which delimits the connection parameters from the rest of DSN (you use&
instead which allows us to add more, but?
is required).According to the driver docs, we indeed should use
encrypt=disable
parameter to disable en…