mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-23 04:59:04 +02:00
collector: bound MI probe queries in Build with a timeout (#2657)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
1302cf6899
commit
465fccbe69
@@ -322,7 +322,7 @@ func (c *Collector) buildWorkerProcessWMI(miSession *mi.Session) error {
|
||||
|
||||
var workerProcesses []WorkerProcess
|
||||
|
||||
if err = miSession.Query(&workerProcesses, mi.NamespaceRootWebAdministration, miQuery, 0); err != nil {
|
||||
if err = miSession.Query(&workerProcesses, mi.NamespaceRootWebAdministration, miQuery, mi.BuildQueryTimeout); err != nil {
|
||||
c.logger.LogAttrs(context.Background(), slog.LevelDebug,
|
||||
`root\WebAdministration isn't available, reading IIS application pool names from the w3wp command line only`,
|
||||
slog.Any("err", err),
|
||||
|
||||
Reference in New Issue
Block a user