Skip to content

Version 0.7.1 / 0.10.1 Metrics not working [Windows] #261

Closed Answered by burningalchemist
NoVa2294 asked this question in Q&A
Discussion options

You must be logged in to vote

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 of config.file,like below:

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 %SQL_EXPORTER_PATH%

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by burningalchemist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #259 on June 08, 2023 19:42.