Version 0.7.1 / 0.10.1 Metrics not working [Windows] #261
-
Hi, I installed Version 0.7.1 as Windows Service because latest release is not working as a Service (Output 1067 error). Sql_exporter.yml :
Powershell Command : Idea behind the project is using Prometheus and Grafana to monitor with Windows_Exporter (Service) and SQL_Exporter (Service) multiple SQL Servers from I/O - CPU, RAM, Disks, etc. to MSSQL Db's and custom table values and queries. SQL Server 14.0.2047.8 Version |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi @NoVa2294, thanks for reporting the issue. I'll investigate the issue sql_exporter not working with Windows on As for the errors, I suggest running the sql_exporter as a standalone binary (not as a service) to get more information about the errors. I need more context here to help. :) |
Beta Was this translation helpful? Give feedback.
-
Hi @burningalchemist, yes I had the same configuration for 0.7.1 / 0.10.1 / 0.11.1 versions but just the 0.7.1 was a success as a running win service. As for the stand alone binary running can you give more details on how to do it, I don't really know how to do that on windows. Thanks! :) |
Beta Was this translation helpful? Give feedback.
-
Hey @NoVa2294, got it. I'll take a look (need to unarchive my windows laptop) today.
or just get to the directory via the Powershell and run This should start the server inside in your Powershell terminal. You can then try to call localhost:9399 and localhost:9399/metrics as well. All the errors will be send to the terminal too. By the way, I just noticed that you're probably using a wrong port to hit SQL Exporter endpoint. The server works on the port 9399 by default, not 1433. |
Beta Was this translation helpful? Give feedback.
-
Hi @NoVa2294, I was able to successfully start and run version New-Service -name "SqlExporterSvc" `
-BinaryPathName "%SQL_EXPORTER_PATH%\sql_exporter.exe --config.file %SQL_EXPORTER_PATH%\sql_exporter.yml" `
-StartupType Automatic `
-DisplayName "Prometheus SQL Exporter" Both (single and double dash variants) were possible before, but it seems that Powershell doesn't like this format anymore and can't interpret the parameter correctly. I'll update the documentation. :) Also, don't forget that you need to replace After that the server starts listening on the port Not a bug. I'll move it to Discussions. 👍 |
Beta Was this translation helpful? Give feedback.
Hi @NoVa2294, I was able to successfully start and run version
0.11.1
on my old 2015 laptop with default settings. I guess you need to check your configuration and let's use double dash in front ofconfig.file
,like below:Both (single and double dash variants) were possible before, but it seems that Powershell doesn't like this format anymore and can't interpret the parameter correctly. I'll update the documentation. :)
Also, don't forget that you need to replace
%SQL_EXPORTER_PATH%
…