MSSQL Exporter - Negative Serial Number Errors #730
-
Describe the bug To Reproduce
Expected behavior Configuration Additional context
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @jmbecker, thanks for reporting the issue. As this problem originates from the Microsoft side (in our case it's the way the certificate is generated), it won't be solved by Golang, indeed. Generally, it's a violation of RFC 5280 section 4.1.2.2, which states that
sql_exporter uses official The issue was accepted and fixed by the Microsoft team and has been reflected in the update - https://learn.microsoft.com/en-us/troubleshoot/sql/releases/sqlserver-2022/cumulativeupdate18#3867855. So I guess you might need to check for a new image with the fix applied. Also, one of the solutions suggested by the community is to generate a new certificate and make sure the negative numbers aren't used (microsoft/mssql-docker#895 (comment)). If none of the above works for you, the Given the fact that the problem was confirmed and solved by Microsoft, I don't plan to make any changes to the code. Moreover, it won't have any effect on Grafana Alloy installations as they use sql_exporter as an external library, so the runtime settings have to be handled there. Since it's not a bug of sql_exporter, I'll move it to discussions. But I'm happy to assist you further in solving your problem, please let me know. 👍 |
Beta Was this translation helpful? Give feedback.
Hey @jmbecker, thanks for reporting the issue.
As this problem originates from the Microsoft side (in our case it's the way the certificate is generated), it won't be solved by Golang, indeed. Generally, it's a violation of RFC 5280 section 4.1.2.2, which states that
sql_exporter uses official
microsoft/go-mssql
driver, so the connection handling (including TLS) happens there, it's nothing custom on our end.The issue was accepted and fixed by the Microsoft team and has been reflected in the update - https://learn.microsoft.com/en-us/troubleshoot/sql/releases/sqlserver-2022/cumulativeupdate18#3867855. S…