Improve visibility of windows_exporter configuration errors #5860
Labels
enhancement
New feature or request
frozen-due-to-age
Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
Request
Currently it is possible to configure
windows_exporter
incorrectly and the Agent will not log any errors or report unhealthy otherwise. For example in static mode:the agent won't report any issues to the user. However, the
where_clause
is not valid query syntax due to use of backticks instead of single quotes.The underlying windows_exporter has an option to configure logger and the Agent is passing a logger to it.
A failed service query should return an error which is logged here on error level.
However, somehow the log lines do not appear as reported by some users.
Use case
As a user, when I provide invalid service query to windows_exporter, I'd like to receive feedback and error message to help me correct the query.
The text was updated successfully, but these errors were encountered: